Public Member Functions
openfluid::core::DatastoreItem Class Reference

Item of a Datastore, giving information about an additional resource. More...

List of all members.

Public Member Functions

 DatastoreItem (std::string ID, std::string PrefixPath, std::string RelativePath, UnstructuredValue::UnstructuredType Type, std::string UnitClass="")
 Creates a new resource item.
 ~DatastoreItem ()
 Destroys the resource and its associated value.
std::string getID () const
std::string getPrefixPath () const
 Returns the prefix path of the resource.
std::string getRelativePath () const
 Returns the path of the resource, relative to prefix path.
std::string getUnitClass () const
UnstructuredValuegetValue ()
 Gets the associated value of the resource.
const UnstructuredValuegetValue () const
 Gets the associated value of the resource.

Detailed Description

Item of a Datastore, giving information about an additional resource.


Constructor & Destructor Documentation

openfluid::core::DatastoreItem::DatastoreItem ( std::string  ID,
std::string  PrefixPath,
std::string  RelativePath,
UnstructuredValue::UnstructuredType  Type,
std::string  UnitClass = "" 
)

Creates a new resource item.

Tries to create a new resource item and its associated UnstructuredValue, depending on the given type.

Parameters:
IdThe ID of the item.
PrefixPathThe prefix path of the item, usually the IN directory of the project.
RelativePathThe relative path of the item from the PrefixPath
TypeThe type of the item.
UnitClass(optional) The associated unit class of the item.
Exceptions:
openfluid::base::OFExceptionif the given type is unknown.

Destroys the resource and its associated value.


Member Function Documentation

Returns the prefix path of the resource.

Returns the path of the resource, relative to prefix path.

Gets the associated value of the resource.

Gets the associated value of the resource.


Generated using Doxygen 1.7.6.1
Creative Commons License Creative Commons By-NC-ND license