inkcpp
Loading...
Searching...
No Matches
InkValue Struct Reference

Repserentation of a ink variable. More...

#include <inkcpp.h>

Public Types

enum  Type {
  ValueTypeNone , ValueTypeBool , ValueTypeUint32 , ValueTypeInt32 ,
  ValueTypeString , ValueTypeFloat , ValueTypeList
}
 indicates which type is contained in the value More...
 

Public Attributes

union { 
 
   int   bool_v 
 contains value if type == ValueTypeBool
 
   uint32_t   uint32_v 
 contains value if type == ValueTypeUint32
 
   int32_t   int32_v 
 contains value if type == ValueTypeInt32
 
   const char *   string_v 
 contains value if type == ValueTypeString
 
   float   float_v 
 contains value if type == ValueTypeFloat
 
   HInkList *   list_v 
 contains value if type == ValueTypeList
 
};  
 
enum InkValue::Type type
 indicates type contained in value
 

Detailed Description

Repserentation of a ink variable.

The concret type contained is noted in type, please use this information to access the corresponding field of the union

Attention
a InkValue of type ValueTypeNone dose not contain any value! It is use e.g. at ink_globals_get()

Member Enumeration Documentation

◆ Type

indicates which type is contained in the value

Enumerator
ValueTypeNone 

the Value does not contain any value

ValueTypeBool 

a boolean

ValueTypeUint32 

a unsigned integer

ValueTypeInt32 

a signed integer

ValueTypeString 

a string

ValueTypeFloat 

a floating point number

ValueTypeList 

a ink list


The documentation for this struct was generated from the following file: