95 #define CREATE_TEXT_CHILD(pParent, Name, Value) \
97 if(OdResult pParent##Res = OdBcf::Utils::createTextChild(pParent, Name, Value)) \
99 return pParent##Res; \
111 #define CREATE_CONSTRUCTED_CHILD(pParent, Name, Value) \
113 if(OdResult pParent##Res = OdBcf::Utils::createConstructedChild(pParent, Name, Value)) \
115 return pParent##Res; \
118 #define VALIDATE_SIMPLE_FIELD(Field) \
120 if(OdBcf::Utils::isUnset(Field)) \
125 #define VALIDATE_UNREQUIRED_CONSTRUCTED_FIELD(Field) \
127 if(!OdBcf::Utils::isUnset(Field)) \
129 if(Field->validate() == false) \
135 #define VALIDATE_REQUIRED_CONSTRUCTED_FIELD(Field) \
137 if(!OdBcf::Utils::isUnset(Field)) \
139 if(Field->validate() == false) \
149 #define VALIDATE_UNREQUIRED_CONSTRUCTED_COLLECTION(Collection) \
151 for(const auto& element : Collection) \
153 VALIDATE_UNREQUIRED_CONSTRUCTED_FIELD(element); \
156 #define VALIDATE_REQUIRED_CONSTRUCTED_COLLECTION(Collection) \
158 VALIDATE_UNREQUIRED_CONSTRUCTED_COLLECTION(Collection); \
159 if(Collection.size() == 0) \
GLuint const GLchar * name
GLsizei const GLfloat * value
bool parseBool(const OdString &value)
const OdString & boolToString(bool value)
OdBcfTimeStampPtr getCurrentTime()
BCF_EXPORT int createDir(const OdString &dir)
BCF_EXPORT OdString formatDir(const OdString &dir)
OdResult createConstructedChild(TiXmlElement *pParent, const char *name, const OdBcfElement *pValue)
OdResult createTextChild(TiXmlElement *pParent, const char *name, const char *value)
OdSmartPtr< OdBcfTimeStamp > OdBcfTimeStampPtr