41 template <
class TUnsetable>
42 const TUnsetable&
getUnset() {
ODA_ASSERT(0 &&
"Unknown type. Add getUnset for it.");
static TUnsetable unsettled = 0;
return unsettled; }
45 template <>
inline const long&
getUnset<long>() {
return Consts::OdLongUnset; }
46 template <>
inline const int&
getUnset<int>() {
return Consts::OdIntUnset; }
48 template <>
inline const OdAnsiString&
getUnset<OdAnsiString>() {
static OdAnsiString stringUnset = Consts::OdStringUnset;
return stringUnset; }
57 inline bool isUnset(
const OdAnsiString &
value) {
return value.getLength() == Consts::OdStringUnsetLength &&
value.compare(Consts::OdStringUnset) == 0; }
58 inline bool isUnset(
const char *
value) {
return strlen(
value) == Consts::OdStringUnsetLength && strcmp(
value, Consts::OdStringUnset) == 0; }
60 template <
class TInner>
62 template <
class TInner>
64 template <
class TKey,
class TValue>
67 template<
class TUnsetable>
static FIRSTDLL_EXPORT_STATIC const OdGUID kNull
GLsizei const GLfloat * value
const OdAnsiString & getUnset< OdAnsiString >()
const OdGUID & getUnset< OdGUID >()
const int & getUnset< int >()
void initUnset(TUnsetable &value)
bool isUnset(const OdBcf::OdBcfFileAttributesGroup &value)
const long & getUnset< long >()
const TUnsetable & getUnset()
const OdString & getUnset< OdString >()
const double & getUnset< double >()