#include <PyDataStore.h>
|
| DataStore (const Py::String &name="", bool owned=false) |
| Constructor with parameters: More...
|
|
virtual | ~DataStore () |
| Destructor: More...
|
|
virtual Py::Object | repr () |
|
virtual Py::Object | getattr (const char *name) |
|
Py::Object | value (const Py::Tuple &args) |
|
Py::Object | assign (const Py::Tuple &args) |
|
Py::Object | reference_count (const Py::Tuple &) |
|
Py::Object | c_value (const Py::Tuple &) const |
|
void | c_assign (const Py::Tuple &, const Py::Object &rhs) |
|
|
Py::Object | py_book (const Py::Tuple &args, const Py::Dict &kws) |
|
Py::Object | py_fill (const Py::Tuple &args, const Py::Dict &kws) |
| fill some already registered node with data More...
|
|
Py::Object | py_get (const Py::Tuple &args, const Py::Dict &kws) |
| retrieve a data-node from a registered node/folder More...
|
|
|
void | book (const std::string &nodeName, const std::string &path) |
|
void | book (const std::string &nodeName, const std::list< std::string > &path) |
| register a node with the store More...
|
|
template<typename Data > |
void | fill (const std::string &name, const std::list< std::string > &dataPath, const Data &data) |
| fill some already registered node with data More...
|
|
template<typename Data > |
void | fill (const std::string &name, const std::string &dataPath, const Data &data) |
| fill some already registered node with data More...
|
|
Definition at line 120 of file PyDataStore.h.
◆ DataStore()
Py::DataStore::DataStore |
( |
const Py::String & |
name = "" , |
|
|
bool |
owned = false |
|
) |
| |
Constructor with parameters:
◆ ~DataStore()
virtual Py::DataStore::~DataStore |
( |
| ) |
|
|
virtual |
◆ assign()
◆ book() [1/2]
void Py::DataStore::book |
( |
const std::string & |
nodeName, |
|
|
const std::list< std::string > & |
path |
|
) |
| |
register a node with the store
◆ book() [2/2]
void Py::DataStore::book |
( |
const std::string & |
nodeName, |
|
|
const std::string & |
path |
|
) |
| |
C++ API register a node with the store
◆ bucket()
◆ c_assign()
◆ c_value()
◆ fill() [1/2]
template<typename Data >
void Py::DataStore::fill |
( |
const std::string & |
name, |
|
|
const std::list< std::string > & |
dataPath, |
|
|
const Data & |
data |
|
) |
| |
|
inline |
fill some already registered node with data
Definition at line 182 of file PyDataStore.h.
188 for ( std::list<std::string>::const_iterator
201 throw Py::KeyError(
"no such key["
203 +
"] registered in Py::DataStore !!" );
◆ fill() [2/2]
template<typename Data >
void Py::DataStore::fill |
( |
const std::string & |
name, |
|
|
const std::string & |
dataPath, |
|
|
const Data & |
data |
|
) |
| |
|
inline |
fill some already registered node with data
Definition at line 216 of file PyDataStore.h.
220 std::list<std::string>
path;
◆ getattr()
virtual Py::Object Py::DataStore::getattr |
( |
const char * |
name | ) |
|
|
virtual |
◆ init_type()
static void Py::DataStore::init_type |
( |
void |
| ) |
|
|
static |
python registration of this type
◆ py_book()
python-API register a node in the store and some path to some optional data
◆ py_fill()
fill some already registered node with data
◆ py_get()
retrieve a data-node from a registered node/folder
◆ reference_count()
◆ repr()
virtual Py::Object Py::DataStore::repr |
( |
| ) |
|
|
virtual |
◆ tokenize() [1/2]
Py::Tuple Py::DataStore::tokenize |
( |
const Py::Object & |
obj, |
|
|
const std::string & |
delimiter = "/" |
|
) |
| const |
|
private |
helper method to tokenize a Py::Object
◆ tokenize() [2/2]
template<typename T >
void Py::DataStore::tokenize |
( |
const std::string & |
in, |
|
|
std::list< T > & |
tokens, |
|
|
const std::string & |
delimiters = "/" |
|
) |
| const |
|
inlineprivate |
helper method to tokenize stuff
Definition at line 236 of file PyDataStore.h.
241 std::string::size_type lastPos = in.find_first_not_of(delimiters, 0);
243 std::string::size_type
pos = in.find_first_of(delimiters, lastPos);
245 while ( std::string::npos !=
pos || std::string::npos != lastPos ) {
247 tokens.push_back(
T( in.substr(lastPos,
pos - lastPos) ) );
249 lastPos = in.find_first_not_of(delimiters,
pos);
251 pos = in.find_first_of(delimiters, lastPos);
◆ value()
◆ m_name
Py::String Py::DataStore::m_name |
|
private |
◆ m_store
Py::Dict Py::DataStore::m_store |
|
private |
The documentation for this class was generated from the following file: