Tramway SDK
Functions | Variables
tram::Settings Namespace Reference

Functions

void Register (ValuePtr ptr, name_t name)
 
void Register (Value value, name_t name)
 
Value Get (name_t name)
 
void Set (name_t name, Value value)
 
void Parse (const char **argv, int argc)
 
void Save (const char *file)
 
void Load (const char *file)
 

Variables

Hashmap< ValuePtrall_settings ("settings map", 200)
 

Function Documentation

◆ Get()

Value tram::Settings::Get ( name_t  name)

◆ Load()

void tram::Settings::Load ( const char *  file)

◆ Parse()

void tram::Settings::Parse ( const char **  argv,
int  argc 
)

◆ Register() [1/2]

void tram::Settings::Register ( Value  value,
name_t  name 
)

◆ Register() [2/2]

void tram::Settings::Register ( ValuePtr  ptr,
name_t  name 
)

◆ Save()

void tram::Settings::Save ( const char *  file)

◆ Set()

void tram::Settings::Set ( name_t  name,
Value  value 
)

Variable Documentation

◆ all_settings

Hashmap< ValuePtr > tram::Settings::all_settings("settings map", 200) ( "settings map"  ,
200   
)