38 typedef std::map<std::string, WxCryptSet*, std::less<std::string>>
CryptSetMap_t;
42 typedef std::map<std::string, std::vector<std::string>>
TypeMap_t;
43 typedef std::pair<std::string, std::vector<std::string>>
TypePair_t;
46 typedef std::pair<std::string, std::vector<std::pair<std::string, std::string>>>
124 std::vector<std::string>
getNamesOfTypes(
const std::vector<std::string>& types)
const;
136 const std::string& t1)
const;
138 const std::string& t1,
139 const std::string& t2)
const;
141 const std::string& t1,
142 const std::string& t2,
143 const std::string& t3)
const;
145 const std::string& t1,
146 const std::string& t2,
147 const std::string& t3,
148 const std::string& t4)
const;
170 void _setName(
const std::string&
name)
179 _WxParser(std::istream& istr,
WxCryptSet* wxcs);
183 bool accept(
int sym);
184 bool expect(
int sym);
192 void wx_decl_list_rest();
193 void wx_decl_value();
195 void wx_value_list();
196 void wx_value_sub_list();
197 void wx_value_sub_list_rest();
202 std::string _tokenStr;
203 std::vector<WxAny> _tokens;
204 std::vector<WxAny> _valueList;
212 void _parse(_WxParser& fl);
WxCrypt provides a container to store/retrive name-value pairs.
Definition: wxcrypt.h:33
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
WxCryptSet & getSet(const std::string &name)
std::vector< std::string > getNamesOfTypes(const std::string &t0, const std::string &t1, const std::string &t2, const std::string &t3) const
WxCryptSet & operator=(const WxCryptSet &wxc)
Assignment operator: makes a deep copy of supplied set.
std::string name() const
Name of crypt set.
Definition: wxcryptset.h:82
std::vector< std::string > getNamesOfType(const std::string &type) const
Return list of cryptset names with the given type.
std::vector< std::string > getNamesOfTypes(const std::string &t0, const std::string &t1, const std::string &t2, const std::string &t3, const std::string &t4) const
std::map< std::string, WxCryptSet *, std::less< std::string > > CryptSetMap_t
Definition: wxcryptset.h:38
std::vector< std::string > getNamesOfTypes(const std::vector< std::string > &types) const
Return list of cryptset names with the given types.
std::map< std::string, std::vector< std::string > > TypeMap_t
Definition: wxcryptset.h:42
std::pair< std::string, std::vector< std::pair< std::string, std::string > > > DependencyList_t
Definition: wxcryptset.h:47
bool hasSet(const std::string &name) const
Returns true if specified cyrptset exists.
WxCryptSet(const WxCryptSet &wxc)
Copy ctor: makes a deep copy of the supplied set.
WxCryptSet()
Create nameless cryptset.
static DependencyList_t parseDependencyString(const std::string &ds)
Parses dependency string and returns the child and list of dependencies (can be none).
WxCryptSet(const std::string &name)
Create empty cryptset with given name.
std::pair< std::string, WxCryptSet * > CryptSetPair_t
Definition: wxcryptset.h:39
void addSet(const WxCryptSet &wxc)
Add a new WxCryptSet.
std::pair< std::string, std::vector< std::string > > TypePair_t
Definition: wxcryptset.h:43
std::vector< std::string > getNamesOfTypes(const std::string &t0, const std::string &t1) const
Return list of cryptset names with the given types.
const WxCryptSet & getSet(const std::string &name) const
Get cryptset with given name.
WxCryptSet(std::istream &istr)
Create cryptset by parsing input from specified stream.
std::vector< std::string > getNamesOfTypes(const std::string &t0, const std::string &t1, const std::string &t2) const
Class that provides utility to read an input stream into a WxCryptSet.
Definition: wxcryptsetlexer.h:44