34 #include "vtkCommonCoreModule.h"
37 #include "vtkSetGet.h"
46 #define vtkExtraExtendedTemplateMacro(call) \
47 vtkExtendedTemplateMacro(call); \
48 vtkTemplateMacroCase(VTK_VARIANT, vtkVariant, call)
51 #define vtkExtendedArrayIteratorTemplateMacro(call) \
52 vtkArrayIteratorTemplateMacro(call); \
53 vtkArrayIteratorTemplateMacroCase(VTK_VARIANT, vtkVariant, call);
191 bool IsValid()
const;
196 bool IsString()
const;
201 bool IsUnicodeString()
const;
206 bool IsNumeric()
const;
211 bool IsFloat()
const;
216 bool IsDouble()
const;
226 bool IsUnsignedChar()
const;
231 bool IsSignedChar()
const;
236 bool IsShort()
const;
241 bool IsUnsignedShort()
const;
251 bool IsUnsignedInt()
const;
261 bool IsUnsignedLong()
const;
266 bool Is__Int64()
const;
271 bool IsUnsigned__Int64()
const;
276 bool IsLongLong()
const;
281 bool IsUnsignedLongLong()
const;
286 bool IsVTKObject()
const;
291 bool IsArray()
const;
296 unsigned int GetType()
const;
301 const char* GetTypeAsString()
const;
323 float ToFloat(
bool *valid)
const;
325 return this->ToFloat(0); };
326 double ToDouble(
bool *valid)
const;
328 return this->ToDouble(0); };
329 char ToChar(
bool *valid)
const;
331 return this->ToChar(0); };
332 unsigned char ToUnsignedChar(
bool *valid)
const;
334 return this->ToUnsignedChar(0); };
335 signed char ToSignedChar(
bool *valid)
const;
337 return this->ToSignedChar(0); };
338 short ToShort(
bool *valid)
const;
340 return this->ToShort(0); };
341 unsigned short ToUnsignedShort(
bool *valid)
const;
343 return this->ToUnsignedShort(0); };
344 int ToInt(
bool *valid)
const;
346 return this->ToInt(0); };
347 unsigned int ToUnsignedInt(
bool *valid)
const;
349 return this->ToUnsignedInt(0); };
350 long ToLong(
bool *valid)
const;
352 return this->ToLong(0); };
353 unsigned long ToUnsignedLong(
bool *valid)
const;
355 return this->ToUnsignedLong(0); };
356 long long ToLongLong(
bool *valid)
const;
358 return this->ToLongLong(0); };
359 unsigned long long ToUnsignedLongLong(
bool *valid)
const;
361 return this->ToUnsignedLongLong(0); };
362 vtkTypeInt64 ToTypeInt64(
bool *valid)
const;
364 return this->ToTypeInt64(0); };
365 vtkTypeUInt64 ToTypeUInt64(
bool *valid)
const;
367 return this->ToTypeUInt64(0); };
435 template <
typename T>
436 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 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 ostream & operator<<(ostream &os, const vtkIndent &o)
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.