libRoadRunner Plugin C++ API  1.0.0
 All Classes Files Functions Variables Friends Pages
rrCapabilities.h
Go to the documentation of this file.
1 
41 #ifndef rrCapabilitiesH
42 #define rrCapabilitiesH
43 #include <vector>
44 #include "rrPluginsAPIExporter.h"
45 #include "rrCapability.h"
46 #include "rrStringList.h"
47 //---------------------------------------------------------------------------
48 
49 namespace rrp
50 {
51 using rr::StringList;
52 using std::vector;
53 
57 class PLUGINS_API_DECLSPEC Capabilities
58 {
59  public:
63  Capabilities();//const string& name, const string& description);
64 
68  ~Capabilities();
69 
73  void add(Capability& capability);
74 
78  string info() const;
79 
83  u_int count();
84 
88  void clear();
89 
93  Capability* operator[](int i);
94 
98  Capability* get(const string& capName);
99 
103  bool setParameter(const string& name, const string& value);
104 
108  StringList asStringList();
109 
113  string asXML();
114 
118  PLUGINS_API_DECLSPEC
119  friend ostream& operator<<(ostream& stream, const Capabilities& caps);
120 
121  protected:
122 // /**
123 // Name of capability
124 // */
125 // string mName;
126 //
127 // /**
128 // Descritpion of a capability
129 // */
130 // string mDescription;
131  mutable
132  vector<Capability*> mCapabilities;
133 
134 };
135 
136 }
137 #endif
138 
139 
Definition: rrCapabilities.h:57
vector< Capability * > mCapabilities
Definition: rrCapabilities.h:132
RoadRunner Capability plugin class.
Definition: rrCapability.h:56