#include <core/DatastoreItem.hpp>
Item of a Datastore, giving information about an additional resource.
openfluid::core::DatastoreItem::DatastoreItem |
( |
const std::string & |
ID, |
|
|
const std::string & |
PrefixPath, |
|
|
const std::string & |
RelativePath, |
|
|
UnstructuredValue::UnstructuredType |
Type, |
|
|
const std::string & |
UnitsClass = "" |
|
) |
| |
Creates a new resource item.
Tries to create a new resource item and its associated UnstructuredValue, depending on the given type.
- Parameters
-
ID | The ID of the item. |
PrefixPath | The prefix path of the item, usually the IN directory of the project. |
RelativePath | The relative path of the item from the PrefixPath |
Type | The type of the item. |
UnitsClass | (optional) The associated unit class of the item. |
- Exceptions
-
openfluid::core::DatastoreItem::~DatastoreItem |
( |
| ) |
|
Destroys the resource and its associated value.
std::string openfluid::core::DatastoreItem::getID |
( |
| ) |
const |
std::string openfluid::core::DatastoreItem::getPrefixPath |
( |
| ) |
const |
Returns the prefix path of the resource.
std::string openfluid::core::DatastoreItem::getRelativePath |
( |
| ) |
const |
Returns the path of the resource, relative to prefix path.
std::string openfluid::core::DatastoreItem::getUnitClass |
( |
| ) |
const |
|
inline |
std::string openfluid::core::DatastoreItem::getUnitsClass |
( |
| ) |
const |
Gets the associated value of the resource.
Gets the associated value of the resource.
The documentation for this class was generated from the following file: