
Container class for holding information about additional resources relating to a project. More...
Public Types | |
| typedef std::map< std::string, DatastoreItem * > | DataItemsById_t |
| Map indexing DatastoreItems by ID. | |
Public Member Functions | |
| Datastore () | |
| Creates an empty datastore. | |
| ~Datastore () | |
| Destroys all items of the datastore. | |
| DataItemsById_t | getItems () |
| Gets all items of the datastore. | |
| const DataItemsById_t | getItems () const |
| Gets all items of the datastore. | |
| DatastoreItem * | getItem (std::string ItemID) |
| Gets the item of the datastore matching the given ID. | |
| void | addItem (DatastoreItem *Item) |
| Adds an item to the datastore. | |
Container class for holding information about additional resources relating to a project.
| typedef std::map<std::string, DatastoreItem*> openfluid::core::Datastore::DataItemsById_t |
Map indexing DatastoreItems by ID.
Creates an empty datastore.
Destroys all items of the datastore.
| void openfluid::core::Datastore::addItem | ( | DatastoreItem * | Item | ) |
Adds an item to the datastore.
If an item already exists with the ID of the given Item, it is deleted before adding.
| Item | The item to add. |
| DatastoreItem* openfluid::core::Datastore::getItem | ( | std::string | ItemID | ) |
Gets the item of the datastore matching the given ID.
| ItemID | ID of the expected item. |
Gets all items of the datastore.
| const DataItemsById_t openfluid::core::Datastore::getItems | ( | ) | const |
Gets all items of the datastore.
Creative Commons By-NC-ND license