![]() |
#include <fluidx/DatastoreDescriptor.hpp>
Public Types | |
typedef std::list< DatastoreItemDescriptor * > | DatastoreDescription_t |
Public Member Functions | |
DatastoreDescriptor ()=default | |
~DatastoreDescriptor () | |
DatastoreDescription_t & | items () |
const DatastoreDescription_t & | items () const |
bool | appendItem (DatastoreItemDescriptor *Item) |
bool | isItemExist (const std::string &ItemID) const |
DatastoreDescription_t | getItems (const openfluid::core::UnitsClass_t &UnitClass) const |
DatastoreDescription_t | getItems (const openfluid::core::UnitsClass_t &UnitClass, openfluid::core::UnstructuredValue::UnstructuredType Type) const |
void | moveItem (unsigned int From, unsigned int To) |
void | insertItem (openfluid::fluidx::DatastoreItemDescriptor *Item, unsigned int Position) |
void | removeItem (unsigned int Position) |
std::list< std::string > | getItemsIDs () const |
openfluid::fluidx::DatastoreItemDescriptor * | item (const std::string &ItemID) |
Gets the item of the datastore matching the given ID. More... | |
typedef std::list<DatastoreItemDescriptor*> openfluid::fluidx::DatastoreDescriptor::DatastoreDescription_t |
|
default |
|
inline |
bool openfluid::fluidx::DatastoreDescriptor::appendItem | ( | DatastoreItemDescriptor * | Item | ) |
DatastoreDescription_t openfluid::fluidx::DatastoreDescriptor::getItems | ( | const openfluid::core::UnitsClass_t & | UnitClass | ) | const |
DatastoreDescription_t openfluid::fluidx::DatastoreDescriptor::getItems | ( | const openfluid::core::UnitsClass_t & | UnitClass, |
openfluid::core::UnstructuredValue::UnstructuredType | Type | ||
) | const |
std::list<std::string> openfluid::fluidx::DatastoreDescriptor::getItemsIDs | ( | ) | const |
void openfluid::fluidx::DatastoreDescriptor::insertItem | ( | openfluid::fluidx::DatastoreItemDescriptor * | Item, |
unsigned int | Position | ||
) |
Insert an Item before the given position (positions starts at index 0)
[in] | Item | the DatastoreItemDescriptor to insert |
[in] | Position | the position, should be between zero and list size - 1. To insert an Item at the end of the list, use appendItem instead. |
openfluid::base::FrameworkException | if Position is out of range |
bool openfluid::fluidx::DatastoreDescriptor::isItemExist | ( | const std::string & | ItemID | ) | const |
openfluid::fluidx::DatastoreItemDescriptor* openfluid::fluidx::DatastoreDescriptor::item | ( | const std::string & | ItemID | ) |
Gets the item of the datastore matching the given ID.
ItemID | ID of the expected item. |
DatastoreDescription_t& openfluid::fluidx::DatastoreDescriptor::items | ( | ) |
const DatastoreDescription_t& openfluid::fluidx::DatastoreDescriptor::items | ( | ) | const |
void openfluid::fluidx::DatastoreDescriptor::moveItem | ( | unsigned int | From, |
unsigned int | To | ||
) |
Move the Item located at the given From position to the To position (positions starts at index 0)
From | |
To |
openfluid::base::FrameworkException | a position is out of range |
void openfluid::fluidx::DatastoreDescriptor::removeItem | ( | unsigned int | Position | ) |
Remove from the list the Item located at the given Position (positions starts at index 0). This doesn't delete the DatastoreItemDescriptor pointer.
[in] | Position | the position |
openfluid::base::FrameworkException | if Position is out of range |