34 #include "vtkCommonCoreModule.h" 36 #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) 186 bool IsValid()
const;
191 bool IsString()
const;
196 bool IsUnicodeString()
const;
201 bool IsNumeric()
const;
206 bool IsFloat()
const;
211 bool IsDouble()
const;
221 bool IsUnsignedChar()
const;
226 bool IsSignedChar()
const;
231 bool IsShort()
const;
236 bool IsUnsignedShort()
const;
246 bool IsUnsignedInt()
const;
256 bool IsUnsignedLong()
const;
261 bool Is__Int64()
const;
266 bool IsUnsigned__Int64()
const;
271 bool IsLongLong()
const;
276 bool IsUnsignedLongLong()
const;
281 bool IsVTKObject()
const;
286 bool IsArray()
const;
291 unsigned int GetType()
const;
296 const char* GetTypeAsString()
const;
318 float ToFloat(
bool* valid)
const;
320 double ToDouble(
bool* valid)
const;
322 char ToChar(
bool* valid)
const;
324 unsigned char ToUnsignedChar(
bool* valid)
const;
326 signed char ToSignedChar(
bool* valid)
const;
328 short ToShort(
bool* valid)
const;
330 unsigned short ToUnsignedShort(
bool* valid)
const;
332 int ToInt(
bool* valid)
const;
334 unsigned int ToUnsignedInt(
bool* valid)
const;
336 long ToLong(
bool* valid)
const;
338 unsigned long ToUnsignedLong(
bool* valid)
const;
340 long long ToLongLong(
bool* valid)
const;
342 unsigned long long ToUnsignedLongLong(
bool* valid)
const;
344 vtkTypeInt64 ToTypeInt64(
bool* valid)
const;
346 vtkTypeUInt64 ToTypeUInt64(
bool* valid)
const;
414 template <
typename T>
415 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)
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
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.