Topologic  0.8.9
Public Member Functions | Protected Member Functions | List of all members
Topologic::Attributes::AttributeFactory Class Referenceabstract

A public abstract factory class to create an Attribute. This class should be inherited when new Attribute classes are implemented. More...

#include <AttributeFactory.h>

Inheritance diagram for Topologic::Attributes::AttributeFactory:
Topologic::Attributes::DoubleAttributeFactory Topologic::Attributes::IntAttributeFactory Topologic::Attributes::StringAttributeFactory

Public Member Functions

virtual AttributeCreate (String^ key, Object^ value) override
 Creates an Attribute from a key and a value. More...
 
virtual bool CheckType (Type^ type) override
 Checks the type of the value. More...
 

Protected Member Functions

virtual bool CheckType (const std::shared_ptr< TopologicCore::Attribute > &kpUtilitiesAttribute) override
 
virtual Object ^ CreateValue (const std::shared_ptr< TopologicCore::Attribute > &kpUtilitiesAttribute) override
 

Detailed Description

A public abstract factory class to create an Attribute. This class should be inherited when new Attribute classes are implemented.

Member Function Documentation

◆ CheckType()

virtual bool Topologic::Attributes::AttributeFactory::CheckType ( Type^  type)
pure virtual

Checks the type of the value.

Parameters
typeThe type
Returns
True if the value is of the correct type, otherwise false

Implemented in Topologic::Attributes::DoubleAttributeFactory, Topologic::Attributes::IntAttributeFactory, and Topologic::Attributes::StringAttributeFactory.

◆ Create()

virtual Attribute ^ Topologic::Attributes::AttributeFactory::Create ( String^  key,
Object^  value 
)
pure virtual

Creates an Attribute from a key and a value.

Parameters
keyA key
valueA value
Returns
The created Attribute

Implemented in Topologic::Attributes::DoubleAttributeFactory, Topologic::Attributes::IntAttributeFactory, and Topologic::Attributes::StringAttributeFactory.


The documentation for this class was generated from the following file: