47 "unit_implementation";
61 const std::string& hdbFile,
63 const std::string& unitName) :
64 hdbFile_(hdbFile), id_(id), unitName_(unitName), parent_(NULL) {
78 : hdbFile_(
""), id_(0), unitName_(
""), parent_(NULL) {
165 const string procName =
"UnitImplementationLocation::loadState";
177 __FILE__, __LINE__, procName, exception.
errorMessage());
static std::vector< std::string > hdbPaths(bool libraryPathsOnly=false)
std::string errorMessage() const
static std::string directoryOfPath(const std::string fileName)
static std::string findFileInSearchPaths(const std::vector< std::string > &searchPaths, const std::string &file)
static std::string expandTilde(const std::string &stringWithTilde)
std::string sourceIDF() const
ObjectState * saveState() const
static const std::string OSNAME_UNIT_IMPLEMENTATION
ObjectState name for unit implementation.
virtual std::string hdbFile() const
virtual std::string unitName() const
std::string hdbFileOriginal() const
static const std::string OSKEY_ID
ObjectState attribute key for the entry ID.
UnitImplementationLocation(const std::string &hdbFile, int id, const std::string &unitName)
std::string hdbFile_
Name of the HDB file.
void loadState(const ObjectState *state)
virtual void setHDBFile(std::string file)
virtual void setID(int id)
virtual void setParent(MachineImplementation &parent)
virtual ~UnitImplementationLocation()
int id_
Entry ID in the HDB.
static const std::string OSKEY_UNIT_NAME
Objectstate attribute key for the name of the unit.
MachineImplementation * parent_
The parent MachineImplementation instance.
static const std::string OSKEY_HDB_FILE
ObjectState attribute key for the name of the HDB file.
std::string unitName_
Name of the unit in ADF.
void setAttribute(const std::string &name, const std::string &value)
std::string stringAttribute(const std::string &name) const
int intAttribute(const std::string &name) const
TCEString & replaceString(const std::string &old, const std::string &newString)