libRoadRunner Plugin C++ API  1.0.0
 All Classes Files Functions Variables Friends Pages
rrParameters.h
Go to the documentation of this file.
1 
41 #ifndef rrParametersH
42 #define rrParametersH
43 #include <string>
44 #include <list>
45 #include <vector>
46 #include <utility>
47 #include "rrPluginsAPIExporter.h"
48 #include "rrPluginParameter.h"
49 #include "rrStringList.h"
50 //---------------------------------------------------------------------------
51 
52 namespace rrp
53 {
54 using std::vector;
55 using std::list;
56 using std::pair;
57 using rr::StringList;
58 using std::string;
59 
63 class PLUGINS_API_DECLSPEC Parameters
64 {
65  public:
69  Parameters(bool canClear = true);
73  virtual ~Parameters();
74 
78  Parameters(const Parameters& cpyMe);
85  void add(PluginParameter* para, bool ownMemory = false);
86 
90  rr::StringList getNames() const;
91 
95  u_int count() const;
96 
101  const PluginParameter* operator[](const int& i) const;
102 
107  PluginParameter* operator[](const int& i);
108 
113  PluginParameter* getParameter(const string& paraName);
114 
119  PluginParameter* getFirst();
120 
125  PluginParameter* getNext();
126 
131  PluginParameter* getPrevious();
132 
137  PluginParameter* getCurrent();
138 
142  bool clear();
143 
147  PLUGINS_API_DECLSPEC
148  friend ostream& operator <<(ostream& os, const Parameters& pars);
149 
150  protected:
156  vector< pair<PluginParameter*, bool> > mParas;
157  vector< pair<PluginParameter*, bool> >::iterator mParasIter;
158 
159 
164 };
165 
166 }
167 
168 #endif
bool mCanClientClearList
Definition: rrParameters.h:163
RoadRunner Parameter class implementation.
vector< pair< PluginParameter *, bool > > mParas
Definition: rrParameters.h:156
Definition: rrPluginParameter.h:58
Definition: rrParameters.h:63