added: to Space:

bool HasValue(const wchar_t * name, const wchar_t * value);
       bool HasValue(const wchar_t * name, const std::wstring & value);
       bool HasValue(const std::wstring & name, const wchar_t * value);
       bool HasValue(const std::wstring & name, const std::wstring & value);
       useful when testing whether a value is in a list (or in simple table too)



git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@433 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-10-17 19:55:16 +00:00
parent 02abfe62fa
commit 1e48455942
2 changed files with 63 additions and 0 deletions

View File

@@ -184,6 +184,16 @@ public:
const std::wstring * GetValue(const std::wstring & name) const;
/*
returns true if such an option has 'value'
useful when testing lists (they don't have to be copied out)
*/
bool HasValue(const wchar_t * name, const wchar_t * value);
bool HasValue(const wchar_t * name, const std::wstring & value);
bool HasValue(const std::wstring & name, const wchar_t * value);
bool HasValue(const std::wstring & name, const std::wstring & value);
/*
those methods are used to extract information from space.table or space.table_single
as a parameter they take the name of an option
@@ -299,6 +309,8 @@ public:
// null means a root space
Space * parent;
/*
those methods are used to extract lists
note: if there is one option in table_single they will return it