XLE  v0.02.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
Utility::ParameterBox Class Reference

Classes

class  Iterator
 
class  ParameterName
 

Public Types

typedef uint32 ParameterNameHash
 
using TypeDesc = ImpliedTyping::TypeDesc
 

Public Member Functions

void SetParameter (const utf8 name[], const void *data, const TypeDesc &type)
 
void SetParameter (const utf8 name[], const char *stringDataBegin, const char *stringDataEnd)
 
void SetParameter (const utf8 name[], const char *stringDataBegin)
 
void SetParameter (const utf8 name[], const std::string &stringData)
 
template<typename Type >
void SetParameter (const utf8 name[], Type value)
 
template<typename Type >
std::pair< bool, Type > GetParameter (ParameterName name) const
 
template<typename Type >
Type GetParameter (ParameterName name, const Type &def) const
 
bool GetParameter (ParameterName name, void *dest, const TypeDesc &destType) const
 
bool HasParameter (ParameterName name) const
 
TypeDesc GetParameterType (ParameterName name) const
 
template<typename CharType >
std::basic_string< CharType > GetString (ParameterName name) const
 
template<typename CharType >
bool GetString (ParameterName name, CharType dest[], size_t destCount) const
 
uint64 GetHash () const
 
uint64 GetParameterNamesHash () const
 
uint64 CalculateFilteredHashValue (const ParameterBox &source) const
 
bool AreParameterNamesEqual (const ParameterBox &other) const
 
void MergeIn (const ParameterBox &source)
 
Iterator Begin () const
 
Iterator At (size_t index) const
 
size_t GetCount () const
 
template<typename CharType >
void Serialize (OutputStreamFormatter &stream) const
 
template<typename Stream >
void Serialize (Stream &serializer) const
 
 ParameterBox (std::initializer_list< std::pair< const utf8 *, const char * >>)
 
template<typename CharType >
 ParameterBox (InputStreamFormatter< CharType > &stream, const void *defaultValue=nullptr, const ImpliedTyping::TypeDesc &defaultValueType=ImpliedTyping::TypeDesc(ImpliedTyping::TypeCat::Void, 0u))
 
 ParameterBox (ParameterBox &&moveFrom)
 
ParameterBoxoperator= (ParameterBox &&moveFrom)
 

Static Public Member Functions

static ParameterNameHash MakeParameterNameHash (const std::basic_string< utf8 > &name)
 
static ParameterNameHash MakeParameterNameHash (const utf8 name[])
 
static ParameterNameHash MakeParameterNameHash (const char name[])
 

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