114#define CREATE_TEXT_CHILD(pParent, Name, Value) \
116if(OdResult pParent##Res = OdBcf::Utils::createTextChild(pParent, Name, Value)) \
118 return pParent##Res; \
130#define CREATE_CONSTRUCTED_CHILD(pParent, Name, Value) \
132if(OdResult pParent##Res = OdBcf::Utils::createConstructedChild(pParent, Name, Value)) \
134 return pParent##Res; \
137#define VALIDATE_SIMPLE_FIELD(Field) \
139if(OdBcf::Utils::isUnset(Field)) \
144#define VALIDATE_REQUIRED_NON_EMPTY_STRING_FIELD(Field) \
146if(OdBcf::Utils::isUnset(Field) || !OdBcf::Utils::validateNonEmptyString(Field)) \
151#define VALIDATE_UNREQUIRED_NON_EMPTY_STRING_FIELD(Field) \
153if(!OdBcf::Utils::isUnset(Field)) \
155 if(!OdBcf::Utils::validateNonEmptyString(Field)) \
161#define VALIDATE_UNREQUIRED_CONSTRUCTED_FIELD(Field) \
163if(!OdBcf::Utils::isUnset(Field)) \
165 if(Field->validate() == false) \
171#define VALIDATE_REQUIRED_CONSTRUCTED_FIELD(Field) \
173if(!OdBcf::Utils::isUnset(Field)) \
175 if(Field->validate() == false) \
185#define VALIDATE_UNREQUIRED_CONSTRUCTED_COLLECTION(Collection) \
187for(const auto& element : Collection) \
189 VALIDATE_UNREQUIRED_CONSTRUCTED_FIELD(element); \
192#define VALIDATE_REQUIRED_CONSTRUCTED_COLLECTION(Collection) \
194VALIDATE_UNREQUIRED_CONSTRUCTED_COLLECTION(Collection); \
195if(Collection.size() == 0) \
GLuint const GLchar * name
GLsizei const GLfloat * value
bool validateNonEmptyString(const OdString &str)
const OdString & boolToString(bool value)
bool parseBool(const OdString &value)
OdResult createConstructedChild(TiXmlElement *pParent, const char *name, const OdBcf::OdBcfElement *pValue)
OdBcfTimeStampPtr getCurrentTime()
BCF_EXPORT int createDir(const OdString &dir)
bool validateColorString(const OdString &str)
BCF_EXPORT OdString formatDir(const OdString &dir)
OdResult createTextChild(TiXmlElement *pParent, const char *name, const char *value)
OdSmartPtr< OdBcfTimeStamp > OdBcfTimeStampPtr