OPTPiX SpriteStudio SDK
Loading...
Searching...
No Matches
spritestudio6::SsValue Class Reference

#include <ssvalue.h>

Public Types

enum  {
  unkown , string_type , int_type , float_type ,
  boolean_type , hash_type , array_type
}
 

Public Member Functions

 SsValue ()
 
 SsValue (bool b)
 
 SsValue (int n, char *org=0)
 
 SsValue (float n, char *org=0)
 
 SsValue (SsString &str)
 
 SsValue (const char *str)
 
 SsValue (SsArray &n)
 
 SsValue (SsHash &n)
 
 SsValue (const SsValue &x)
 
SsValueoperator= (const SsValue &x)
 
void release ()
 
virtual ~SsValue ()
 
template<typename T>
bool is () const
 
template<typename T>
const T & get () const
 
template<typename T>
T & get ()
 
const SsValueoperator[] (const std::string &key) const
 
bool IsExistHashkey (const std::string &key) const
 
template<>
const SsStringget () const
 
template<>
SsStringget ()
 
template<>
const int & get () const
 
template<>
int & get ()
 
template<>
const float & get () const
 
template<>
float & get ()
 
template<>
const bool & get () const
 
template<>
bool & get ()
 
template<>
const SsArrayget () const
 
template<>
SsArrayget ()
 
template<>
const SsHashget () const
 
template<>
SsHashget ()
 
template<>
bool is () const
 
template<>
bool is () const
 
template<>
bool is () const
 
template<>
bool is () const
 
template<>
bool is () const
 
template<>
bool is () const
 

Public Attributes

int type
 
SsString name
 
SsString org_txt
 
union { 
 
   SsString *   _str 
 
   int   _int 
 
   float   _float 
 
   bool   _bool 
 
   SsArray *   _array 
 
   SsHash *   _hash 
 
};  
 
int _int_temp
 
float _float_temp
 
bool _bool_temp
 
 SPRITESTUDIO6SDK_SERIALIZE_BLOCK
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
unkown 
string_type 
int_type 
float_type 
boolean_type 
hash_type 
array_type 

Constructor & Destructor Documentation

◆ SsValue() [1/9]

spritestudio6::SsValue::SsValue ( )
inline

◆ SsValue() [2/9]

spritestudio6::SsValue::SsValue ( bool b)
inlineexplicit

◆ SsValue() [3/9]

spritestudio6::SsValue::SsValue ( int n,
char * org = 0 )
inlineexplicit

◆ SsValue() [4/9]

spritestudio6::SsValue::SsValue ( float n,
char * org = 0 )
inlineexplicit

◆ SsValue() [5/9]

spritestudio6::SsValue::SsValue ( SsString & str)
inlineexplicit

◆ SsValue() [6/9]

spritestudio6::SsValue::SsValue ( const char * str)
inlineexplicit

◆ SsValue() [7/9]

spritestudio6::SsValue::SsValue ( SsArray & n)
inlineexplicit

◆ SsValue() [8/9]

spritestudio6::SsValue::SsValue ( SsHash & n)
inlineexplicit

◆ SsValue() [9/9]

spritestudio6::SsValue::SsValue ( const SsValue & x)
inline

◆ ~SsValue()

virtual spritestudio6::SsValue::~SsValue ( )
inlinevirtual

Member Function Documentation

◆ get() [1/14]

template<typename T>
T & spritestudio6::SsValue::get ( )

◆ get() [2/14]

template<>
SsString & spritestudio6::SsValue::get ( )
inline

◆ get() [3/14]

template<>
int & spritestudio6::SsValue::get ( )
inline

◆ get() [4/14]

template<>
float & spritestudio6::SsValue::get ( )
inline

◆ get() [5/14]

template<>
bool & spritestudio6::SsValue::get ( )
inline

◆ get() [6/14]

template<>
SsArray & spritestudio6::SsValue::get ( )
inline

◆ get() [7/14]

template<>
SsHash & spritestudio6::SsValue::get ( )
inline

◆ get() [8/14]

template<typename T>
const T & spritestudio6::SsValue::get ( ) const

◆ get() [9/14]

template<>
const SsString & spritestudio6::SsValue::get ( ) const
inline

◆ get() [10/14]

template<>
const int & spritestudio6::SsValue::get ( ) const
inline

◆ get() [11/14]

template<>
const float & spritestudio6::SsValue::get ( ) const
inline

◆ get() [12/14]

template<>
const bool & spritestudio6::SsValue::get ( ) const
inline

◆ get() [13/14]

template<>
const SsArray & spritestudio6::SsValue::get ( ) const
inline

◆ get() [14/14]

template<>
const SsHash & spritestudio6::SsValue::get ( ) const
inline

◆ is() [1/7]

template<typename T>
bool spritestudio6::SsValue::is ( ) const

◆ is() [2/7]

template<>
bool spritestudio6::SsValue::is ( ) const
inline

◆ is() [3/7]

template<>
bool spritestudio6::SsValue::is ( ) const
inline

◆ is() [4/7]

template<>
bool spritestudio6::SsValue::is ( ) const
inline

◆ is() [5/7]

template<>
bool spritestudio6::SsValue::is ( ) const
inline

◆ is() [6/7]

template<>
bool spritestudio6::SsValue::is ( ) const
inline

◆ is() [7/7]

template<>
bool spritestudio6::SsValue::is ( ) const
inline

◆ IsExistHashkey()

bool spritestudio6::SsValue::IsExistHashkey ( const std::string & key) const
inline

◆ operator=()

SsValue & spritestudio6::SsValue::operator= ( const SsValue & x)
inline

◆ operator[]()

const SsValue & spritestudio6::SsValue::operator[] ( const std::string & key) const
inline

◆ release()

void spritestudio6::SsValue::release ( )
inline

Member Data Documentation

◆ [union]

union { ... } spritestudio6::SsValue

◆ _array

SsArray* spritestudio6::SsValue::_array

◆ _bool

bool spritestudio6::SsValue::_bool

◆ _bool_temp

bool spritestudio6::SsValue::_bool_temp

◆ _float

float spritestudio6::SsValue::_float

◆ _float_temp

float spritestudio6::SsValue::_float_temp

◆ _hash

SsHash* spritestudio6::SsValue::_hash

◆ _int

int spritestudio6::SsValue::_int

◆ _int_temp

int spritestudio6::SsValue::_int_temp

◆ _str

SsString* spritestudio6::SsValue::_str

◆ name

SsString spritestudio6::SsValue::name

◆ org_txt

SsString spritestudio6::SsValue::org_txt

◆ SPRITESTUDIO6SDK_SERIALIZE_BLOCK

spritestudio6::SsValue::SPRITESTUDIO6SDK_SERIALIZE_BLOCK
Initial value:
{
SsValueSeriarizer( ar , *this ,"" )
void SsValueSeriarizer(ISsXmlArchiver *ar, SsValue &v, const std::string key)
Definition ssvalue.cpp:11

◆ type

int spritestudio6::SsValue::type

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