40 #include "vtkCommonCoreModule.h"
43 #include "vtkSetGet.h"
52 #define vtkExtraExtendedTemplateMacro(call) \
53 vtkExtendedTemplateMacro(call); \
54 vtkTemplateMacroCase(VTK_VARIANT, vtkVariant, call)
57 #define vtkExtendedArrayIteratorTemplateMacro(call) \
58 vtkArrayIteratorTemplateMacro(call); \
59 vtkArrayIteratorTemplateMacroCase(VTK_VARIANT, vtkVariant, call);
197 bool IsValid()
const;
202 bool IsString()
const;
207 bool IsUnicodeString()
const;
212 bool IsNumeric()
const;
217 bool IsFloat()
const;
222 bool IsDouble()
const;
232 bool IsUnsignedChar()
const;
237 bool IsSignedChar()
const;
242 bool IsShort()
const;
247 bool IsUnsignedShort()
const;
257 bool IsUnsignedInt()
const;
267 bool IsUnsignedLong()
const;
272 bool Is__Int64()
const;
277 bool IsUnsigned__Int64()
const;
282 bool IsLongLong()
const;
287 bool IsUnsignedLongLong()
const;
292 bool IsVTKObject()
const;
297 bool IsArray()
const;
302 unsigned int GetType()
const;
307 const char* GetTypeAsString()
const;
329 float ToFloat(
bool *valid)
const;
331 return this->ToFloat(0); };
332 double ToDouble(
bool *valid)
const;
334 return this->ToDouble(0); };
335 char ToChar(
bool *valid)
const;
337 return this->ToChar(0); };
338 unsigned char ToUnsignedChar(
bool *valid)
const;
340 return this->ToUnsignedChar(0); };
341 signed char ToSignedChar(
bool *valid)
const;
343 return this->ToSignedChar(0); };
344 short ToShort(
bool *valid)
const;
346 return this->ToShort(0); };
347 unsigned short ToUnsignedShort(
bool *valid)
const;
349 return this->ToUnsignedShort(0); };
350 int ToInt(
bool *valid)
const;
352 return this->ToInt(0); };
353 unsigned int ToUnsignedInt(
bool *valid)
const;
355 return this->ToUnsignedInt(0); };
356 long ToLong(
bool *valid)
const;
358 return this->ToLong(0); };
359 unsigned long ToUnsignedLong(
bool *valid)
const;
361 return this->ToUnsignedLong(0); };
362 long long ToLongLong(
bool *valid)
const;
364 return this->ToLongLong(0); };
365 unsigned long long ToUnsignedLongLong(
bool *valid)
const;
367 return this->ToUnsignedLongLong(0); };
368 vtkTypeInt64 ToTypeInt64(
bool *valid)
const;
370 return this->ToTypeInt64(0); };
371 vtkTypeUInt64 ToTypeUInt64(
bool *valid)
const;
373 return this->ToTypeUInt64(0); };
441 template <
typename T>
442 T ToNumeric(
bool *valid, T* vtkNotUsed(ignored))
const;
unsigned int ToUnsignedInt() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
Wrapper around std::string to keep symbols short.
VTKCOMMONCORE_EXPORT bool operator>=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
bool IsInt(ADIOS_DATATYPES ta)
VTKCOMMONCORE_EXPORT bool operator<=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
Abstract superclass for all arrays.
unsigned long long ToUnsignedLongLong() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
float ToFloat() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
char ToChar() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
double ToDouble() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
VTKCOMMONCORE_EXPORT bool operator<(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkVariant &val)
VTKCOMMONCORE_EXPORT bool operator>(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
unsigned char UnsignedChar
A atomic type representing the union of many types.
unsigned char ToUnsignedChar() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
vtkObjectBase * VTKObject
const std::string & ToString(TransportMethod)
unsigned short UnsignedShort
short ToShort() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
vtkUnicodeString * UnicodeString
vtkTypeInt64 ToTypeInt64() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
unsigned long UnsignedLong
abstract base class for most VTK objects
vtkTypeUInt64 ToTypeUInt64() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
int ToInt() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
VTKCOMMONCORE_EXPORT bool operator!=(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
VTKCOMMONCORE_EXPORT bool operator==(const vtkUnicodeString &lhs, const vtkUnicodeString &rhs)
unsigned long long UnsignedLongLong
unsigned long ToUnsignedLong() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
unsigned short ToUnsignedShort() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
signed char ToSignedChar() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
long long ToLongLong() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
long ToLong() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type...
String class that stores Unicode text.