ngscopeclient 0.1-dev+51fbda87c
Public Member Functions | Protected Types | Protected Attributes | List of all members
PreferenceCategory Class Reference
Inheritance diagram for PreferenceCategory:
Inheritance graph
[legend]
Collaboration diagram for PreferenceCategory:
Collaboration graph
[legend]

Public Member Functions

 PreferenceCategory (std::string identifier)
 
PreferenceGetLeaf (const std::string &path)
 
const PreferenceGetLeaf (const std::string &path) const
 
virtual void ToYAML (YAML::Node &node) const
 
virtual void FromYAML (const YAML::Node &node)
 
virtual PreferenceGetLeaf (const internal::PreferencePath &path)
 
void AddPreference (Preference pref)
 
void AddPreference (impl::PreferenceBuilder &&pref)
 
PreferenceCategoryAddCategory (std::string identifier)
 
map_type & GetChildren ()
 
const seq_type & GetOrdering () const
 
virtual bool IsVisible () const
 
- Public Member Functions inherited from internal::PreferenceTreeNodeBase
 PreferenceTreeNodeBase (PreferenceTreeNodeType type, std::string identifier)
 
 PreferenceTreeNodeBase (const PreferenceTreeNodeBase &)=delete
 
 PreferenceTreeNodeBase (PreferenceTreeNodeBase &&)=default
 
PreferenceTreeNodeBaseoperator= (const PreferenceTreeNodeBase &)=delete
 
PreferenceTreeNodeBaseoperator= (PreferenceTreeNodeBase &&)=default
 
virtual void ToYAML (YAML::Node &node) const =0
 
virtual void FromYAML (const YAML::Node &node)=0
 
virtual PreferenceGetLeaf (const PreferencePath &path)=0
 
virtual bool IsVisible () const =0
 
const std::string & GetIdentifier () const
 
PreferenceTreeNodeType GetType () const
 
bool IsCategory () const
 
bool IsPreference () const
 
PreferenceCategoryAsCategory ()
 
PreferenceAsPreference ()
 

Protected Types

using map_type = std::map< std::string, std::unique_ptr< internal::PreferenceTreeNodeBase > >
 
using seq_type = std::vector< std::string >
 

Protected Attributes

map_type m_children
 
seq_type m_ordering
 
- Protected Attributes inherited from internal::PreferenceTreeNodeBase
std::string m_identifier
 
PreferenceTreeNodeType m_type
 

Member Function Documentation

◆ FromYAML()

void PreferenceCategory::FromYAML ( const YAML::Node &  node)
virtual

◆ GetLeaf()

Preference & PreferenceCategory::GetLeaf ( const internal::PreferencePath path)
virtual

◆ IsVisible()

bool PreferenceCategory::IsVisible ( ) const
virtual

◆ ToYAML()

void PreferenceCategory::ToYAML ( YAML::Node &  node) const
virtual

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