All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
openfluid::fluidx::AdvancedDatastoreDescriptor Class Reference

#include <fluidx/AdvancedDatastoreDescriptor.hpp>

List of all members.

Public Member Functions

 AdvancedDatastoreDescriptor (openfluid::fluidx::DatastoreDescriptor &DatastoreDesc)
 ~AdvancedDatastoreDescriptor ()
const std::list
< openfluid::fluidx::DatastoreItemDescriptor * > & 
getItems () const
std::list
< openfluid::fluidx::DatastoreItemDescriptor * > 
getItems (const std::string &UnitClass) const
std::list
< openfluid::fluidx::DatastoreItemDescriptor * > 
getItems (const std::string &UnitClass, openfluid::core::UnstructuredValue::UnstructuredType Type) const
void moveItem (unsigned int From, unsigned int To)
void appendItem (openfluid::fluidx::DatastoreItemDescriptor *Item)
void insertItem (openfluid::fluidx::DatastoreItemDescriptor *Item, unsigned int Position)
void removeItem (unsigned int Position)
std::list< std::string > getItemsIDs () const
bool isItemAlreadyExist (std::string ItemID) const
openfluid::fluidx::DatastoreItemDescriptorgetItem (const std::string &ItemID)
 Gets the item of the datastore matching the given ID.

Constructor & Destructor Documentation


Member Function Documentation

Gets the item of the datastore matching the given ID.

Parameters:
ItemIDID of the expected item.
Returns:
The item with the given ID, or 0 if not found.

Insert an Item before the given position (positions starts at index 0)

Parameters:
[in]Itemthe DatastoreItemDescriptor to insert
[in]Positionthe position, should be between zero and list size - 1. To insert an Item at the end of the list, use appendItem instead.
Exceptions:
openfluid::base::OFExceptionif Position is out of range
void openfluid::fluidx::AdvancedDatastoreDescriptor::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)

Parameters:
From
To
Exceptions:
openfluid::base::OFExceptiona position is out of range

Remove from the list the Item located at the given Position (positions starts at index 0). This doesn't delete the DatastoreItemDescriptor pointer.

Parameters:
[in]Positionthe position
Exceptions:
openfluid::base::OFExceptionif Position is out of range

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines