Class ParameterTree

Nested Relationships

Nested Types

Class Documentation

class ParameterTree

Public Functions

ParameterTree()
ParameterTree(const std::string &name)
~ParameterTree()
const std::string &Text() const
void SetText(const std::string &text)
const std::string &Name() const
void SetName(const std::string &name)
void Clear()
void ReplaceVariables(const std::unordered_map<std::string, std::string> &vars, bool error_on_unknown_vars = true)
void RegisterInt32(const std::string &name, int32_t *param)
void RegisterInt64(const std::string &name, int64_t *param)
void RegisterFloat(const std::string &name, float *param)
void RegisterDouble(const std::string &name, double *param)
void RegisterBool(const std::string &name, bool *param)
void RegisterString(const std::string &name, std::string *param)
void SetRegisteredParams()
int32_t GetInt32Req(const std::string &name) const
int64_t GetInt64Req(const std::string &name) const
uint64_t GetUInt64Req(const std::string &name) const
double GetDoubleReq(const std::string &name) const
float GetFloatReq(const std::string &name) const
std::string GetStringReq(const std::string &name) const
bool GetBoolReq(const std::string &name) const
int32_t GetInt32Or(const std::string &name, int32_t defaultValue) const
int64_t GetInt64Or(const std::string &name, int64_t defaultValue) const
uint64_t GetUInt64Or(const std::string &name, uint64_t defaultValue) const
std::string GetStringOr(const std::string &name, const std::string &defaultValue) const
double GetDoubleOr(const std::string &name, double defaultValue) const
float GetFloatOr(const std::string &name, float defaultValue) const
bool GetBoolOr(const std::string &name, bool defaultValue) const
std::vector<std::string> GetFileListReq(const std::string &name) const
std::vector<std::string> GetFileListOptional(const std::string &name) const
std::vector<std::string> GetStringListReq(const std::string &name, const std::string &sep = " ") const
std::vector<std::string> GetStringListOptional(const std::string &name, const std::string &sep = " ") const
std::shared_ptr<ParameterTree> GetChildReq(const std::string &name) const
std::shared_ptr<ParameterTree> GetChildOrEmpty(const std::string &name) const
std::vector<std::shared_ptr<ParameterTree>> GetChildren(const std::string &name) const
const std::vector<std::shared_ptr<ParameterTree>> &GetChildren() const
void ReadBinary(const void *&current)
void AddParam(const std::string &name, const std::string &text)
template<typename T>
void AddParam(const std::string &name, const T &obj)
void SetParam(const std::string &name, const std::string &text)
template<typename T>
void SetParam(const std::string &name, const T &obj)
void AddChild(std::shared_ptr<ParameterTree> child)
std::string ToString() const
bool HasChild(const std::string &name) const
bool HasParam(const std::string &name) const
std::shared_ptr<ParameterTree> Clone() const
void Merge(const ParameterTree &other)

Public Static Functions

std::shared_ptr<ParameterTree> FromBinaryReader(const void *&current)