CFx SDK Documentation 2024 SP0
|
Functions | |
bool | isUnset (const OdBcf::OdBcfFileAttributesGroup &value) |
template<class TUnsetable > | |
const TUnsetable & | getUnset () |
template<> | |
const double & | getUnset< double > () |
template<> | |
const long & | getUnset< long > () |
template<> | |
const int & | getUnset< int > () |
template<> | |
const OdString & | getUnset< OdString > () |
template<> | |
const OdAnsiString & | getUnset< OdAnsiString > () |
template<> | |
const OdGUID & | getUnset< OdGUID > () |
bool | isUnset (const bool &value) |
bool | isUnset (const float &value) |
bool | isUnset (const double &value) |
bool | isUnset (const long value) |
bool | isUnset (const int value) |
bool | isUnset (const OdString &value) |
bool | isUnset (const OdAnsiString &value) |
bool | isUnset (const char *value) |
bool | isUnset (const OdGUID &value) |
template<class TInner > | |
bool | isUnset (const OdSmartPtr< TInner > &value) |
template<class TInner > | |
bool | isUnset (const OdArray< TInner > &value) |
template<class TKey , class TValue > | |
bool | isUnset (const std::map< TKey, TValue > &value) |
template<class TUnsetable > | |
void | initUnset (TUnsetable &value) |
bool | parseBool (const OdString &value) |
const OdString & | boolToString (bool value) |
BCF_EXPORT OdString | formatDir (const OdString &dir) |
BCF_EXPORT int | createDir (const OdString &dir) |
OdBcfTimeStampPtr | getCurrentTime () |
OdResult | createTextChild (TiXmlElement *pParent, const char *name, const char *value) |
OdResult | createConstructedChild (TiXmlElement *pParent, const char *name, const OdBcfElement *pValue) |
Contains declarations related to utilities related to working with BCF files content.
const OdString & OdBcf::Utils::boolToString | ( | bool | value | ) |
Converts a boolean value to a string.
value | [in] A boolean value to be converted. |
OdResult OdBcf::Utils::createConstructedChild | ( | TiXmlElement * | pParent, |
const char * | name, | ||
const OdBcfElement * | pValue | ||
) |
Adds a newly constructed child to a specified XML structure.
pParent | [in] A raw pointer to the parent of the new element. |
name | [in] A string that contains the name of the new element. |
pValue | [in] A raw pointer to an <link OdBcf::OdBcfElement, object> that is responsible for creating of the new element value. |
BCF_EXPORT int OdBcf::Utils::createDir | ( | const OdString & | dir | ) |
Creates an empty directory.
dir | [in] A string that contains the path to the new directory. |
OdResult OdBcf::Utils::createTextChild | ( | TiXmlElement * | pParent, |
const char * | name, | ||
const char * | value | ||
) |
Adds a new text child to a specified XML structure.
pParent | [in] A raw pointer to the parent of the new element. |
name | [in] A string that contains the name of the new element. |
value | [in] A string that contains the value of the new element. |
BCF_EXPORT OdString OdBcf::Utils::formatDir | ( | const OdString & | dir | ) |
Formats a specified path to a file according to the curren`t platform.
dir | [in] A string containing the path to the file. |
OdBcfTimeStampPtr OdBcf::Utils::getCurrentTime | ( | ) |
Retrieves the local time and the system time zone.
const TUnsetable & OdBcf::Utils::getUnset | ( | ) |
A template function that returns an undefined value for those BCF datatypes that do not have an implemented getUnset() function.
Definition at line 52 of file BcfUnset.h.
|
inline |
A template function that returns an undefined value for the double datatype.
Definition at line 58 of file BcfUnset.h.
|
inline |
A template function that returns an undefined value for the int datatype.
Definition at line 70 of file BcfUnset.h.
|
inline |
A template function that returns an undefined value for the long datatype.
Definition at line 64 of file BcfUnset.h.
|
inline |
A template function that returns an undefined value for the <exref target="https://docs.opendesign.com/tkernel/OdAnsiString.html">OdAnsiString</exref> datatype.
Definition at line 86 of file BcfUnset.h.
|
inline |
A template function that returns an undefined value for the <exref target="https://docs.opendesign.com/tkernel/OdGUID.html">OdGUID</exref> datatype.
Definition at line 94 of file BcfUnset.h.
|
inline |
A template function that returns an undefined value for the <exref target="https://docs.opendesign.com/tkernel/OdString.html">OdString</exref> datatype.
Definition at line 78 of file BcfUnset.h.
void OdBcf::Utils::initUnset | ( | TUnsetable & | value | ) |
A function that initializes a passed value as an unset (undefined) one.
value | [out] A placeholder for the value to be initialized. |
Definition at line 182 of file BcfUnset.h.
|
inline |
A function that defines whether a specified boolean value is not set (undefined).
Definition at line 100 of file BcfUnset.h.
|
inline |
A function that defines whether a string value, represented as a null-terminated array of chars, is not set (undefined).
Definition at line 146 of file BcfUnset.h.
|
inline |
A function that defines whether a specified double value is not set (undefined).
Definition at line 112 of file BcfUnset.h.
|
inline |
A function that defines whether a specified float value is not set (undefined).
Definition at line 106 of file BcfUnset.h.
|
inline |
A function that defines whether a specified unsigned integer value is not set (undefined).
Definition at line 124 of file BcfUnset.h.
|
inline |
A function that defines whether a specified long value is not set (undefined).
Definition at line 118 of file BcfUnset.h.
|
inline |
A function that defines whether a specified <exref target="https://docs.opendesign.com/tkernel/OdAnsiString.html">OdAnsiString</exref> value is not set (undefined).
Definition at line 140 of file BcfUnset.h.
|
inline |
A function that defines whether an array of smart pointers is not set (undefined).
Definition at line 168 of file BcfUnset.h.
|
inline |
Definition at line 69 of file BcfFileAttributesGroup.h.
|
inline |
A function that defines whether a specified <exref target="https://docs.opendesign.com/tkernel/OdGUID.html">OdGUID</exref> value is not set (undefined).
Definition at line 154 of file BcfUnset.h.
|
inline |
A function that defines whether a smart pointer is not set (undefined).
Definition at line 161 of file BcfUnset.h.
|
inline |
A function that defines whether a specified <exref target="https://docs.opendesign.com/tkernel/OdString.html">OdString</exref> value is not set (undefined).
Definition at line 132 of file BcfUnset.h.
|
inline |
A function that defines whether an STL map object is not set (undefined).
Definition at line 175 of file BcfUnset.h.
bool OdBcf::Utils::parseBool | ( | const OdString & | value | ) |
Checks if the specified string is equal to the "true" or "1".
value | [in] A string probably containing a boolean value. |