A value in the configuration. More...
#include <TsValue.h>
Data Structures | |
struct | Name |
Hold a child item name in a table for fast lookup. More... | |
Public Member Functions | |
ValueItem () | |
Default constructor. | |
ValueItem (ValueType type) | |
Construct empty item of a specific type. | |
ValueType | getType () const |
Get item type. | |
Protected Types | |
typedef std::vector< ValueIndex > | ChildGroup |
Container for children of this item. | |
typedef std::vector< Name > | NameGroup |
Container for child names. | |
Protected Attributes | |
ValueType | _type |
Type of value. | |
ValueIndex | _parent |
Table index of parent value. | |
ConstBuffer | _text |
Text of value (if scalar). | |
ConstBuffer | _name |
Local name of value, if available. | |
size_t | _local_index |
Index among siblings. | |
int | _srcLine |
Source line. | |
int | _srcColumn |
Source column. | |
ChildGroup | _children |
Child items of this item. | |
Path | _path |
Path if present. | |
NameGroup | _names |
Child names, if appropriate. | |
Friends | |
class | ts::config::Value |
class | ValueTable |
A value in the configuration.
This is used in a global table so it handles all types of Values. Members that are not used for scalars are designed to be NULL
pointers in that case.
Definition at line 205 of file TsValue.h.
typedef std::vector<ValueIndex> ts::config::detail::ValueItem::ChildGroup [protected] |
typedef std::vector<Name> ts::config::detail::ValueItem::NameGroup [protected] |
ts::config::detail::ValueItem::ValueItem | ( | ) | [inline] |
ts::config::detail::ValueItem::ValueItem | ( | ValueType | type | ) | [inline] |
ValueType ts::config::detail::ValueItem::getType | ( | ) | const [inline] |
friend class ts::config::Value [friend] |
friend class ValueTable [friend] |
ChildGroup ts::config::detail::ValueItem::_children [protected] |
Child items of this item.
Definition at line 230 of file TsValue.h.
Referenced by ts::config::Value::childCount(), ts::config::detail::ValueTable::make(), and ts::config::Value::operator[]().
size_t ts::config::detail::ValueItem::_local_index [protected] |
Index among siblings.
Definition at line 223 of file TsValue.h.
Referenced by ts::config::Value::getIndex(), and ts::config::detail::ValueTable::make().
ConstBuffer ts::config::detail::ValueItem::_name [protected] |
Local name of value, if available.
Definition at line 222 of file TsValue.h.
Referenced by ts::config::Value::getName(), and ts::config::detail::ValueTable::make().
NameGroup ts::config::detail::ValueItem::_names [protected] |
ValueIndex ts::config::detail::ValueItem::_parent [protected] |
Table index of parent value.
Definition at line 220 of file TsValue.h.
Referenced by ts::config::detail::ValueTable::make().
Path ts::config::detail::ValueItem::_path [protected] |
int ts::config::detail::ValueItem::_srcColumn [protected] |
Source column.
Definition at line 225 of file TsValue.h.
Referenced by ts::config::Value::getSourceColumn(), ts::config::Value::setSource(), and ts::config::Value::setSourceColumn().
int ts::config::detail::ValueItem::_srcLine [protected] |
Source line.
Definition at line 224 of file TsValue.h.
Referenced by ts::config::Value::getSourceLine(), ts::config::Value::setSource(), and ts::config::Value::setSourceLine().
ConstBuffer ts::config::detail::ValueItem::_text [protected] |
Text of value (if scalar).
Definition at line 221 of file TsValue.h.
Referenced by ts::config::Value::setText().
ValueType ts::config::detail::ValueItem::_type [protected] |
Type of value.
Definition at line 219 of file TsValue.h.
Referenced by getType(), and ts::config::detail::ValueTable::make().