18 #ifndef MTEMPLATE_ITEM_H
19 #define MTEMPLATE_ITEM_H
23 #ifdef MTEMPLATE_EXPORTS
24 #define MTEMPLATE_API __declspec(dllexport)
26 #define MTEMPLATE_API __declspec(dllimport)
30 #ifndef MTEMPLATE_EXPORTS
43 #pragma warning(disable: 4251)
81 kTemplateItemFramesRange
85 MTemplateItem(
const std::string& _name,
const std::string& _description,
const std::string& _extendedDescription,
86 const std::string& defaultValue,
bool _isActivable,
bool _applySubstitution,
bool _isMandatory);
89 std::string getName();
90 std::string getDescription();
91 std::string getExtendedDescription();
92 std::string getDefaultValue();
93 bool getDefaultActivatorValue();
94 bool getIsActivable();
95 bool getApplySubstitution();
96 bool getIsMandatory();
99 void setName(
const std::string& _name);
100 void setDescription(
const std::string& _description);
101 void setExtendedDescription(
const std::string& _extendedDescription);
102 void setIsActivable(
bool _isActivable);
103 void setApplySubstitution(
bool _applySubstitution);
104 void setIsMandatory(
bool _isMandatory);
105 void setType(
int _type);
106 void setDefaultValue(
const std::string& _defaultValue);
107 void setDefaultActivatorValue(
bool _defaultValue);
110 static void deallocateItemList(std::vector<MTemplateItem*>* list);
114 std::string defaultValue;
116 std::string description;
117 std::string extendedDescription;
119 bool applySubstitution;
121 bool defaultActivatorValue;
123 virtual void encodeTree(
void* pt, std::string(*encodeFunc)(
const std::string &),
int encoding,
void* fields, std::vector<std::string>* filters);
Class that instantiate an item group holder class used to group template items in specific groups...
Class holding a template field item.