40 #include "vtkCommonCoreModule.h" 43 #include "vtkSetGet.h" 53 #define vtkExtraExtendedTemplateMacro(call) \ 54 vtkExtendedTemplateMacro(call); \ 55 vtkTemplateMacroCase(VTK_VARIANT, vtkVariant, call) 58 #define vtkExtendedArrayIteratorTemplateMacro(call) \ 59 vtkArrayIteratorTemplateMacro(call); \ 60 vtkArrayIteratorTemplateMacroCase(VTK_VARIANT, vtkVariant, call); 193 bool IsValid()
const;
198 bool IsString()
const;
203 bool IsUnicodeString()
const;
208 bool IsNumeric()
const;
213 bool IsFloat()
const;
218 bool IsDouble()
const;
228 bool IsUnsignedChar()
const;
233 bool IsSignedChar()
const;
238 bool IsShort()
const;
243 bool IsUnsignedShort()
const;
253 bool IsUnsignedInt()
const;
263 bool IsUnsignedLong()
const;
268 bool Is__Int64()
const;
273 bool IsUnsigned__Int64()
const;
278 bool IsLongLong()
const;
283 bool IsUnsignedLongLong()
const;
288 bool IsVTKObject()
const;
293 bool IsArray()
const;
298 unsigned int GetType()
const;
303 const char* GetTypeAsString()
const;
325 float ToFloat(
bool *valid)
const;
327 return this->ToFloat(
nullptr); };
328 double ToDouble(
bool *valid)
const;
330 return this->ToDouble(
nullptr); };
331 char ToChar(
bool *valid)
const;
333 return this->ToChar(
nullptr); };
334 unsigned char ToUnsignedChar(
bool *valid)
const;
336 return this->ToUnsignedChar(
nullptr); };
337 signed char ToSignedChar(
bool *valid)
const;
339 return this->ToSignedChar(
nullptr); };
340 short ToShort(
bool *valid)
const;
342 return this->ToShort(
nullptr); };
343 unsigned short ToUnsignedShort(
bool *valid)
const;
345 return this->ToUnsignedShort(
nullptr); };
346 int ToInt(
bool *valid)
const;
348 return this->ToInt(
nullptr); };
349 unsigned int ToUnsignedInt(
bool *valid)
const;
351 return this->ToUnsignedInt(
nullptr); };
352 long ToLong(
bool *valid)
const;
354 return this->ToLong(
nullptr); };
355 unsigned long ToUnsignedLong(
bool *valid)
const;
357 return this->ToUnsignedLong(
nullptr); };
358 long long ToLongLong(
bool *valid)
const;
360 return this->ToLongLong(
nullptr); };
361 unsigned long long ToUnsignedLongLong(
bool *valid)
const;
363 return this->ToUnsignedLongLong(
nullptr); };
364 vtkTypeInt64 ToTypeInt64(
bool *valid)
const;
366 return this->ToTypeInt64(
nullptr); };
367 vtkTypeUInt64 ToTypeUInt64(
bool *valid)
const;
369 return this->ToTypeUInt64(
nullptr); };
437 template <
typename T>
438 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.