Application Class Reference

Class containing data about an application Provides methods to get and set the date contained in the application. It doesn't manage the application therefore changes in this class won't synchronize to the actual configuration files. More...

#include <ArmarXCore/util/ScenarioManagerCommon/data_structure/Application.h>

+ Inheritance diagram for Application:

Public Member Functions

 Application (Application &app)
 Copy constructor. More...
 
 Application (std::string name, std::string executablePath, std::string packageName)
 Constructor that sets the name and the path to the executable of the application. More...
 
std::string getExecutableAbsPath ()
 
std::string getExecutableName ()
 
bool getFound ()
 
std::string getName ()
 
std::string getPackageName ()
 
std::string getPathToExecutable ()
 
armarx::PropertyDefinitionsPtr getProperties ()
 
bool isDefaultProperty (std::string name)
 
bool isDefaultPropertyEnabled (std::string name)
 
void setDefaultPropertyEnabled (std::string name, bool enabled)
 
void setIsDefaultProperty (std::string name, bool defaultValue)
 
void setProperties (armarx::PropertyDefinitionsPtr properties)
 Sets the properties of this application. More...
 
void updateFound ()
 

Protected Attributes

PropertyEnabledMap defaultMap
 
PropertyEnabledMap enabledMap
 
armarx::PropertyDefinitionsPtr properties
 

Detailed Description

Class containing data about an application Provides methods to get and set the date contained in the application. It doesn't manage the application therefore changes in this class won't synchronize to the actual configuration files.

Definition at line 45 of file Application.h.

Constructor & Destructor Documentation

◆ Application() [1/2]

Application ( std::string  name,
std::string  executablePath,
std::string  packageName 
)

Constructor that sets the name and the path to the executable of the application.

Parameters
namename of the application
executablePathpath to the binary executable of the application

Definition at line 58 of file Application.cpp.

+ Here is the call graph for this function:

◆ Application() [2/2]

Copy constructor.

Parameters
namename of the application
executablePathpath to the binary executable of the application

Definition at line 74 of file Application.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ getExecutableAbsPath()

std::string getExecutableAbsPath ( )
Returns
the absolute path to the executable of this application

Definition at line 173 of file Application.cpp.

◆ getExecutableName()

std::string getExecutableName ( )
Returns
the name of executable of this application

Definition at line 168 of file Application.cpp.

+ Here is the caller graph for this function:

◆ getFound()

bool getFound ( )

Definition at line 119 of file Application.cpp.

◆ getName()

std::string getName ( )
Returns
the name of this application

Definition at line 89 of file Application.cpp.

+ Here is the caller graph for this function:

◆ getPackageName()

std::string getPackageName ( )

Definition at line 99 of file Application.cpp.

◆ getPathToExecutable()

std::string getPathToExecutable ( )
Returns
the path to the executable file of this application

Definition at line 94 of file Application.cpp.

+ Here is the caller graph for this function:

◆ getProperties()

PropertyDefinitionsPtr getProperties ( )
Returns
the properties of this application

Definition at line 104 of file Application.cpp.

+ Here is the caller graph for this function:

◆ isDefaultProperty()

bool isDefaultProperty ( std::string  name)

Definition at line 152 of file Application.cpp.

◆ isDefaultPropertyEnabled()

bool isDefaultPropertyEnabled ( std::string  name)

Definition at line 129 of file Application.cpp.

◆ setDefaultPropertyEnabled()

void setDefaultPropertyEnabled ( std::string  name,
bool  enabled 
)

Definition at line 142 of file Application.cpp.

◆ setIsDefaultProperty()

void setIsDefaultProperty ( std::string  name,
bool  defaultValue 
)

Definition at line 161 of file Application.cpp.

◆ setProperties()

void setProperties ( armarx::PropertyDefinitionsPtr  properties)

Sets the properties of this application.

These properties (along with the default config) define the behaviour of the application on start.

Parameters
propertiesnew properties

Definition at line 109 of file Application.cpp.

+ Here is the call graph for this function:

◆ updateFound()

void updateFound ( )

Definition at line 124 of file Application.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ defaultMap

PropertyEnabledMap defaultMap
protected

Definition at line 58 of file Application.h.

◆ enabledMap

PropertyEnabledMap enabledMap
protected

Definition at line 57 of file Application.h.

◆ properties

armarx::PropertyDefinitionsPtr properties
protected

Definition at line 56 of file Application.h.


The documentation for this class was generated from the following files: