added: to Space:

std::wstring & FindAdd(const WTextStream & name);
       std::wstring & Add(const wchar_t * name,        const WTextStream & value);
       std::wstring & Add(const std::wstring & name,   const WTextStream & value);
       std::wstring & Add(const WTextStream & name,    const WTextStream & value);




git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@430 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-07-25 10:27:20 +00:00
parent f8d5a962ed
commit 5ad48470b6
6 changed files with 138 additions and 12 deletions

View File

@@ -41,6 +41,8 @@
#include <string>
#include <vector>
#include <map>
#include "textstream/types.h"
namespace PT
@@ -215,6 +217,7 @@ public:
std::wstring & FindAdd(const wchar_t * name);
std::wstring & FindAdd(const std::wstring & name);
std::wstring & FindAdd(const WTextStream & name);
std::wstring & Add(const wchar_t * name, bool value);
std::wstring & Add(const std::wstring & name, bool value);
@@ -228,6 +231,10 @@ public:
std::wstring & Add(const wchar_t * name, const std::wstring & value);
std::wstring & Add(const std::wstring & name, const std::wstring & value);
std::wstring & Add(const wchar_t * name, const WTextStream & value);
std::wstring & Add(const std::wstring & name, const WTextStream & value);
std::wstring & Add(const WTextStream & name, const WTextStream & value);
void Remove(const wchar_t * name);
void Remove(const std::wstring & name);
@@ -343,8 +350,6 @@ private:
template<class Stream>
void Space::PrintLevel(Stream & out, bool use_indents, int level)
{
@@ -498,6 +503,7 @@ void Space::Serialize(Stream & out, bool use_indents, bool use_comments, int lev
}
} // namespace