interfaces.h
Go to the documentation of this file.
1 
20 #ifndef __INTERFACES
21 
22 #define __INTERFACES
23 
24 #include <string.h>
25 
27 {
28  public:
29  virtual void* getCopy() { return NULL; };
30 };
31 
33 {
34  public:
35  virtual std::string getAsXml() { return ""; };
36  virtual bool getFromXml(const std::string &data) { return false; };
37 };
38 
40 {
41  public:
42  virtual void lock() {};
43  virtual void unlock() {};
44 };
45 
47 {
48  protected:
49  unsigned long int timestamp;
50  public:
51  virtual unsigned long int getTimestamp() { return timestamp; };
52  virtual void setTimestamp(unsigned long int timestamp) { this->timestamp = timestamp; };
53 
54  bool compareTimestamp(unsigned long int first, unsigned long int second) { return first > second; };
55 };
56 
58 {
59  protected:
60  std::string _name;
61  public:
62  void setName(std::string value) { this->_name = value; };
63  std::string getName() { return this->_name; };
64 };
65 
67 {
68  protected:
69  std::string _type;
70  public:
71  void setType(std::string value) { this->_type = value; };
72  std::string getType() { return this->_type; };
73 };
74 
76 {
77  protected:
78  std::string _from, _to;
79  public:
80  void setFrom(std::string value) { this->_from = value; };
81  std::string getFrom() { return this->_from; };
82 
83  void setTo(std::string value) { this->_to = value; };
84  std::string getTo() { return this->_to; };
85 
86 };
87 
89 {
90  protected:
91  bool _isValid;
92  public:
93  void setValid(bool value = true) { this->_isValid = value; };
94  bool isValid() { return this->_isValid; };
95 
96 };
97 
99 {
100  protected:
101  double _priority;
102  public:
103  void setPriority(double value) { this->_priority = value; };
104  double getPriority() { return this->_priority; };
105 
106  bool comparePriority(double first, double second) { return first > second; };
107 };
108 
109 #endif
void setValid(bool value=true)
Definition: interfaces.h:93
virtual void lock()
Definition: interfaces.h:42
bool comparePriority(double first, double second)
Definition: interfaces.h:106
std::string _type
Definition: interfaces.h:69
std::string getName()
Definition: interfaces.h:63
virtual unsigned long int getTimestamp()
Definition: interfaces.h:51
virtual void setTimestamp(unsigned long int timestamp)
Definition: interfaces.h:52
void setFrom(std::string value)
Definition: interfaces.h:80
virtual void * getCopy()
Definition: interfaces.h:29
void setType(std::string value)
Definition: interfaces.h:71
bool compareTimestamp(unsigned long int first, unsigned long int second)
Definition: interfaces.h:54
std::string getTo()
Definition: interfaces.h:84
virtual void unlock()
Definition: interfaces.h:43
void setPriority(double value)
Definition: interfaces.h:103
std::string _to
Definition: interfaces.h:78
std::string getType()
Definition: interfaces.h:72
double getPriority()
Definition: interfaces.h:104
std::string getFrom()
Definition: interfaces.h:81
unsigned long int timestamp
Definition: interfaces.h:49
void setTo(std::string value)
Definition: interfaces.h:83
virtual bool getFromXml(const std::string &data)
Definition: interfaces.h:36
virtual std::string getAsXml()
Definition: interfaces.h:35
std::string _name
Definition: interfaces.h:60
bool isValid()
Definition: interfaces.h:94
void setName(std::string value)
Definition: interfaces.h:62


asr_kinematic_chain_optimizer
Author(s): Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij
autogenerated on Mon Jun 10 2019 12:35:36