GUIDOLib
1.7.7
Guido Engine Internal Documentation
|
14 #ifndef ___TagParameterMap___ 15 #define ___TagParameterMap___ 23 #include "TagParameter.h" 39 void Add (STagParameterPtr param);
41 void Remove (
const char* key);
51 std::vector<std::string>
getKeys()
const;
54 template<
typename T>
const T*
get (
const char* param)
const {
55 const_iterator i = find (param);
56 if (i == end())
return 0;
57 return dynamic_cast<const T*>(i->second.get());
60 void print (std::ostream& out,
bool gmnform=
true)
const;
62 static std::vector<std::string>
split (
const std::string & str,
char sep);
63 static std::vector<std::string>
getKeys (
const std::string & str);
66 typedef std::map<std::string, STagParameterPtr> TPMap;
67 typedef std::pair<std::string, STagParameterPtr> TIMap;
75 STagParameterPtr str2tagParam (
const std::string & str)
const;
76 bool checkRequired (
const TagParameterMap& list,
const char* tagName)
const;
void Remove(const char *key)
const T * get(const char *param) const
Definition: TagParameterMap.h:54
bool Match(const TagParameterMap &list, const char *tagName) const
void print(std::ostream &out, bool gmnform=true) const
void checkUnit(const TagParameterMap &list) const
void Add(STagParameterPtr param)
The base class for all guido tags.
Definition: TagParameter.h:26
static std::vector< std::string > split(const std::string &str, char sep)
virtual ~TagParameterMap()
Definition: TagParameterMap.h:37
std::vector< std::string > getKeys() const
A list of tag parameters represented as a map.
Definition: TagParameterMap.h:31
std::ostream & operator<<(std::ostream &os, const svgendl &eol)