-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDeployment.hpp
More file actions
85 lines (64 loc) · 2.06 KB
/
Deployment.hpp
File metadata and controls
85 lines (64 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#ifndef DEPLOYMENT_H
#define DEPLOYMENT_H
#include <vector>
#include <string>
#include <map>
#include <boost/noncopyable.hpp>
namespace orocos_cpp
{
class Deployment : public boost::noncopyable
{
private:
bool loadPkgConfigFile(const std::string &deploymentName);
bool checkExecutable(const std::string &name);
std::vector<std::string> typekits;
std::vector<std::string> tasks;
//this map contains a map from currentName to Origininal Name
std::map<std::string, std::string> renameMap;
void regenerateNameVectors();
std::string deploymentName;
std::string loggerName;
bool withValgrind;
std::vector<std::string> cmdLineArgs;
public:
Deployment(const std::string &name);
Deployment(const std::string &model, const std::string &as);
/**
* Returns the name of the deployment
* */
const std::string &getName() const;
/**
* Returns the task names, after renaming.
* */
const std::vector<std::string> &getTaskNames() const;
const std::map<std::string, std::string> &getRenameMap() const;
const std::vector<std::string> &getNeededTypekits() const;
/**
* Renames a task from the deployment to the given name
* */
void renameTask(const std::string &orignalName, const std::string &newName);
/**
* Returns the command line string, needed to
* start the deployment, including the renaming
* operations.
* */
bool getExecString(std::string& cmd, std::vector< std::string >& args);
/**
* Returns the name of the logger for this deployment
* */
const std::string getLoggerName() const;
/**
* Returns if this deployment contains a logger
* */
bool hasLogger() const;
/**
* If called, the deployment will be started within valgrind
* */
void runWithValgrind();
/**
* Set additional command line arguments. Default is empty
* */
void setCmdLineArgs(const std::vector<std::string> &args);
};
} //end of namespace
#endif // DEPLOYMENT_H