97#define CREATE_TEXT_CHILD(pParent, Name, Value) \
99if(OdResult pParent##Res = OdBcf::Utils::createTextChild(pParent, Name, Value)) \
101 return pParent##Res; \
113#define CREATE_CONSTRUCTED_CHILD(pParent, Name, Value) \
115if(OdResult pParent##Res = OdBcf::Utils::createConstructedChild(pParent, Name, Value)) \
117 return pParent##Res; \
120#define VALIDATE_SIMPLE_FIELD(Field) \
122if(OdBcf::Utils::isUnset(Field)) \
127#define VALIDATE_UNREQUIRED_CONSTRUCTED_FIELD(Field) \
129if(!OdBcf::Utils::isUnset(Field)) \
131 if(Field->validate() == false) \
137#define VALIDATE_REQUIRED_CONSTRUCTED_FIELD(Field) \
139if(!OdBcf::Utils::isUnset(Field)) \
141 if(Field->validate() == false) \
151#define VALIDATE_UNREQUIRED_CONSTRUCTED_COLLECTION(Collection) \
153for(const auto& element : Collection) \
155 VALIDATE_UNREQUIRED_CONSTRUCTED_FIELD(element); \
158#define VALIDATE_REQUIRED_CONSTRUCTED_COLLECTION(Collection) \
160VALIDATE_UNREQUIRED_CONSTRUCTED_COLLECTION(Collection); \
161if(Collection.size() == 0) \
GLuint const GLchar * name
GLsizei const GLfloat * value
const OdString & boolToString(bool value)
bool parseBool(const OdString &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