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); 192 bool IsValid()
const;
197 bool IsString()
const;
202 bool IsUnicodeString()
const;
207 bool IsNumeric()
const;
212 bool IsFloat()
const;
217 bool IsDouble()
const;
227 bool IsUnsignedChar()
const;
232 bool IsSignedChar()
const;
237 bool IsShort()
const;
242 bool IsUnsignedShort()
const;
252 bool IsUnsignedInt()
const;
262 bool IsUnsignedLong()
const;
267 bool Is__Int64()
const;
272 bool IsUnsigned__Int64()
const;
277 bool IsLongLong()
const;
282 bool IsUnsignedLongLong()
const;
287 bool IsVTKObject()
const;
292 bool IsArray()
const;
297 unsigned int GetType()
const;
302 const char* GetTypeAsString()
const;
324 float ToFloat(
bool *valid)
const;
326 return this->ToFloat(
nullptr); };
327 double ToDouble(
bool *valid)
const;
329 return this->ToDouble(
nullptr); };
330 char ToChar(
bool *valid)
const;
332 return this->ToChar(
nullptr); };
333 unsigned char ToUnsignedChar(
bool *valid)
const;
335 return this->ToUnsignedChar(
nullptr); };
336 signed char ToSignedChar(
bool *valid)
const;
338 return this->ToSignedChar(
nullptr); };
339 short ToShort(
bool *valid)
const;
341 return this->ToShort(
nullptr); };
342 unsigned short ToUnsignedShort(
bool *valid)
const;
344 return this->ToUnsignedShort(
nullptr); };
345 int ToInt(
bool *valid)
const;
347 return this->ToInt(
nullptr); };
348 unsigned int ToUnsignedInt(
bool *valid)
const;
350 return this->ToUnsignedInt(
nullptr); };
351 long ToLong(
bool *valid)
const;
353 return this->ToLong(
nullptr); };
354 unsigned long ToUnsignedLong(
bool *valid)
const;
356 return this->ToUnsignedLong(
nullptr); };
357 long long ToLongLong(
bool *valid)
const;
359 return this->ToLongLong(
nullptr); };
360 unsigned long long ToUnsignedLongLong(
bool *valid)
const;
362 return this->ToUnsignedLongLong(
nullptr); };
363 vtkTypeInt64 ToTypeInt64(
bool *valid)
const;
365 return this->ToTypeInt64(
nullptr); };
366 vtkTypeUInt64 ToTypeUInt64(
bool *valid)
const;
368 return this->ToTypeUInt64(
nullptr); };
436 template <
typename T>
437 T ToNumeric(
bool *valid, T* vtkNotUsed(ignored))
const;
signed char ToSignedChar() 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.
int ToInt() 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.
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 short ToUnsignedShort() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type.
vtkTypeInt64 ToTypeInt64() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type.
short ToShort() 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.
vtkObjectBase * VTKObject
const std::string & ToString(TransportMethod)
unsigned short UnsignedShort
long ToLong() 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.
unsigned long long ToUnsignedLongLong() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type.
vtkUnicodeString * UnicodeString
unsigned long UnsignedLong
abstract base class for most VTK objects
unsigned int ToUnsignedInt() 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 long long UnsignedLongLong
unsigned long ToUnsignedLong() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type.
vtkTypeUInt64 ToTypeUInt64() 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.
unsigned char ToUnsignedChar() const
Convert the variant to a numeric type: If it holds a numeric, cast to the appropriate type.
String class that stores Unicode text.