libRoadRunner Plugin C++ API  1.0.0
 All Classes Files Functions Variables Friends Pages
rrCapability.h
Go to the documentation of this file.
1 
41 #ifndef rrCapabilityH
42 #define rrCapabilityH
43 #include <string>
44 #include <vector>
45 #include "rrPluginsAPIExporter.h"
46 #include "rrParameters.h"
47 //---------------------------------------------------------------------------
48 
49 namespace rrp
50 {
51 
56 class PLUGINS_API_DECLSPEC Capability
57 {
58  public:
62  Capability(const string& name, const string& descr);
63 
67  ~Capability();
68 
72  Capability(const Capability& fromMe);
73 
77  string getName() const;
78 
82  string getDescription() const;
83 // string getMethod() const;
84 
88  Parameters* getParameters();
89 
93  PluginParameter* getParameter(const string& paraName);
94 
98  void setup(const string& name, const string& descr);
99 
103  void addParameter(PluginParameter* me);
104 
108  string asString() const;
109 
113  u_int nrOfParameters() const;
114 
118  PluginParameter& operator[](const int& i);
119 
123  PLUGINS_API_DECLSPEC
124  friend ostream& operator <<(ostream& os, const Capability& caps);
125 
126  protected:
130  string mName;
131 
135  string mDescription;
136 // string mMethod;
137 
142 
143 };
144 
145 }
146 #endif
Parameters implementation - a container for Plugin parameters.
Definition: rrPluginParameter.h:58
string mName
Definition: rrCapability.h:130
Definition: rrParameters.h:63
Parameters mParameters
Definition: rrCapability.h:141
Definition: rrCapability.h:56
string mDescription
Definition: rrCapability.h:135