34 #include "vtkCommonCoreModule.h" 37 #include "vtkSetGet.h" 47 #define vtkExtraExtendedTemplateMacro(call) \ 48 vtkExtendedTemplateMacro(call); \ 49 vtkTemplateMacroCase(VTK_VARIANT, vtkVariant, call) 52 #define vtkExtendedArrayIteratorTemplateMacro(call) \ 53 vtkArrayIteratorTemplateMacro(call); \ 54 vtkArrayIteratorTemplateMacroCase(VTK_VARIANT, vtkVariant, call); 187 bool IsValid()
const;
192 bool IsString()
const;
197 bool IsUnicodeString()
const;
202 bool IsNumeric()
const;
207 bool IsFloat()
const;
212 bool IsDouble()
const;
222 bool IsUnsignedChar()
const;
227 bool IsSignedChar()
const;
232 bool IsShort()
const;
237 bool IsUnsignedShort()
const;
247 bool IsUnsignedInt()
const;
257 bool IsUnsignedLong()
const;
262 bool Is__Int64()
const;
267 bool IsUnsigned__Int64()
const;
272 bool IsLongLong()
const;
277 bool IsUnsignedLongLong()
const;
282 bool IsVTKObject()
const;
287 bool IsArray()
const;
292 unsigned int GetType()
const;
297 const char* GetTypeAsString()
const;
319 float ToFloat(
bool *valid)
const;
321 return this->ToFloat(
nullptr); };
322 double ToDouble(
bool *valid)
const;
324 return this->ToDouble(
nullptr); };
325 char ToChar(
bool *valid)
const;
327 return this->ToChar(
nullptr); };
328 unsigned char ToUnsignedChar(
bool *valid)
const;
330 return this->ToUnsignedChar(
nullptr); };
331 signed char ToSignedChar(
bool *valid)
const;
333 return this->ToSignedChar(
nullptr); };
334 short ToShort(
bool *valid)
const;
336 return this->ToShort(
nullptr); };
337 unsigned short ToUnsignedShort(
bool *valid)
const;
339 return this->ToUnsignedShort(
nullptr); };
340 int ToInt(
bool *valid)
const;
342 return this->ToInt(
nullptr); };
343 unsigned int ToUnsignedInt(
bool *valid)
const;
345 return this->ToUnsignedInt(
nullptr); };
346 long ToLong(
bool *valid)
const;
348 return this->ToLong(
nullptr); };
349 unsigned long ToUnsignedLong(
bool *valid)
const;
351 return this->ToUnsignedLong(
nullptr); };
352 long long ToLongLong(
bool *valid)
const;
354 return this->ToLongLong(
nullptr); };
355 unsigned long long ToUnsignedLongLong(
bool *valid)
const;
357 return this->ToUnsignedLongLong(
nullptr); };
358 vtkTypeInt64 ToTypeInt64(
bool *valid)
const;
360 return this->ToTypeInt64(
nullptr); };
361 vtkTypeUInt64 ToTypeUInt64(
bool *valid)
const;
363 return this->ToTypeUInt64(
nullptr); };
431 template <
typename T>
432 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.