fast::AttributeObject class

Base classes

class Object
Base class for all FAST objects.

Derived classes

class ProcessObject
Abstract base class for all process objects.
class Window
Abstract base class for windows.

Public functions

void loadAttributes() virtual
auto getAttribute(std::string id) -> std::shared_ptr<Attribute>
auto getAttributes() -> std::unordered_map<std::string, std::shared_ptr<Attribute>>
void setAttributes(std::vector<std::shared_ptr<Attribute>> attributes)
auto getNameOfClass() const -> std::string pure virtual

Protected functions

void createFloatAttribute(std::string id, std::string name, std::string description, float initialValue)
void createIntegerAttribute(std::string id, std::string name, std::string description, int initialValue)
void createBooleanAttribute(std::string id, std::string name, std::string description, bool initialValue)
void createStringAttribute(std::string id, std::string name, std::string description, std::string initialValue)
auto getFloatAttribute(std::string id) -> float
auto getIntegerAttribute(std::string id) -> int
auto getBooleanAttribute(std::string id) -> bool
auto getStringAttribute(std::string id) -> std::string
auto getFloatListAttribute(std::string id) -> std::vector<float>
auto getIntegerListAttribute(std::string id) -> std::vector<int>
auto getBooleanListAttribute(std::string id) -> std::vector<bool>
auto getStringListAttribute(std::string id) -> std::vector<std::string>

Protected variables

std::unordered_map<std::string, std::shared_ptr<Attribute>> mAttributes