|
DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Describes changes inside a class returned by the notification mechanism. More...
#include <Change.hpp>
Public Member Functions | |
| const std::string & | get_class_name () const |
| Get name of class which objects were modified. | |
| const std::vector< std::string > & | get_modified_objs () const |
| Return vector of identies of modified objects. | |
| const std::vector< std::string > & | get_created_objs () const |
| Return vector of identies of created objects. | |
| const std::vector< std::string > & | get_removed_objs () const |
| Return vector of identies of removed objects. | |
Static Public Member Functions | |
| static void | add (std::vector< ConfigurationChange * > &changes, const std::string &class_name, const std::string &obj_id, const char action) |
| Helper method to add object to the vector of existing changes. | |
| static void | clear (std::vector< ConfigurationChange * > &changes) |
| Helper method to clear vector of changes (pointers). | |
Private Member Functions | |
| ConfigurationChange (const ConfigurationChange &) | |
| ConfigurationChange & | operator= (const ConfigurationChange &) |
| ConfigurationChange (const std::string &name) | |
Private Attributes | |
| std::string | m_class_name |
| std::vector< std::string > | m_modified |
| std::vector< std::string > | m_created |
| std::vector< std::string > | m_removed |
Friends | |
| class | Configuration |
| class | ConfigurationImpl |
Describes changes inside a class returned by the notification mechanism.
All changes received by the notification mechanism after commit of database modification are passed to subscribed client in one go. This is more preferred way than passing changes for each class or object in a separate callback. In the latter case user need to be sure at some moment that (s)he read all changes, keep changes already read, etc.
The changes are passed to a client as a vector of objects of this class. For each class there are three vectors of object identities:
Definition at line 42 of file Change.hpp.
|
private |
|
inlineprivate |
Definition at line 108 of file Change.hpp.
|
static |
Helper method to add object to the vector of existing changes.
Note that this is the only method available to create new changes description since the constructor is private.
The method adds object described by the 'class_name' and 'obj_name' to the changes. New ConfigurationChange object is created if required.
| changes | description of existing changes |
| class_name | name of the object's class |
| obj_id | object's id |
| action | requested action:
|
Definition at line 1768 of file Configuration.cpp.
|
static |
Helper method to clear vector of changes (pointers).
Destroy ConfigurationChange objects referenced by the container.
| changes | description of existing changes |
Definition at line 1796 of file Configuration.cpp.
|
inline |
|
inline |
Return vector of identies of created objects.
Definition at line 61 of file Change.hpp.
|
inline |
Return vector of identies of modified objects.
Definition at line 56 of file Change.hpp.
|
inline |
Return vector of identies of removed objects.
Definition at line 66 of file Change.hpp.
|
private |
|
friend |
Definition at line 44 of file Change.hpp.
|
friend |
Definition at line 45 of file Change.hpp.
|
private |
Definition at line 113 of file Change.hpp.
|
private |
Definition at line 116 of file Change.hpp.
|
private |
Definition at line 115 of file Change.hpp.
|
private |
Definition at line 117 of file Change.hpp.