51 template <
class TUnsetable>
52 const TUnsetable&
getUnset() {
ODA_ASSERT(0 &&
"Unknown type. Add getUnset for it.");
static TUnsetable unsettled = 0;
return unsettled; }
64 template <>
inline const long&
getUnset<long>() {
return Consts::OdLongUnset; }
70 template <>
inline const int&
getUnset<int>() {
return Consts::OdIntUnset; }
86 template <>
inline const OdAnsiString&
getUnset<OdAnsiString>() {
static OdAnsiString stringUnset = Consts::OdStringUnset;
return stringUnset; }
140 inline bool isUnset(
const OdAnsiString &
value) {
return value.getLength() == Consts::OdStringUnsetLength &&
value.compare(Consts::OdStringUnset) == 0; }
146 inline bool isUnset(
const char *
value) {
return strlen(
value) == Consts::OdStringUnsetLength && strcmp(
value, Consts::OdStringUnset) == 0; }
160 template <
class TInner>
167 template <
class TInner>
174 template <
class TKey,
class TValue>
181 template<
class TUnsetable>
static FIRSTDLL_EXPORT_STATIC const OdGUID kNull
GLsizei const GLfloat * value
const TUnsetable & getUnset()
const OdString & getUnset< OdString >()
const long & getUnset< long >()
void initUnset(TUnsetable &value)
const double & getUnset< double >()
bool isUnset(const OdBcf::OdBcfFileAttributesGroup &value)
const int & getUnset< int >()
const OdGUID & getUnset< OdGUID >()
const OdAnsiString & getUnset< OdAnsiString >()