Commit Graph

12 Commits

Author SHA1 Message Date
Tomasz Sowa 2af6c28a54 added: JSONToSpaceParser -- a parser for JSON format to Space structure
added: SpaceToJSON -- a serializer from Space structure to JSON (not finished yet)



git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@427 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-07-12 15:01:15 +00:00
Tomasz Sowa bff2ecb147 added: to Space:
const std::wstring * GetValue(const std::wstring & name) const;
       std::wstring & Add(const wchar_t * name,        size_t value);
       std::wstring & Add(const std::wstring & name,   size_t value);




git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@418 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-06-26 23:20:59 +00:00
Tomasz Sowa e25bc826e7 changed: Date::SerializeDay outputs the date in a form of YYYY-MM-DD (before was: YYYY.MM.DD)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@411 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-13 21:49:06 +00:00
Tomasz Sowa 5d9ce6e093 changed: in SpaceParser:
white characters can be escaped by '\ ' and in such a case this is not a delimiter
         (when reading single token)


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@410 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-12 18:20:39 +00:00
Tomasz Sowa 11ddf0f6d9 fixed: in Space serializer: we have to escape more characters
fixed: in SpaceParser::ReadTokenSingle
       the delimiter can be only if the character was not escaped


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@409 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-12 15:54:20 +00:00
Tomasz Sowa e195145394 changed: now in SpaceParser 'split_single' and utf8 are default
removed: some errors checking at the end of a line
         now we can have in the same line: value="option" value2="option2"



git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@408 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-12 14:54:19 +00:00
Tomasz Sowa e620c8f95d changed: SpaceParser -- parser's engine has been rewritten
now we can map all strings to all strings
         documentation in space.h need to be updated yet


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@407 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-10 21:16:19 +00:00
Tomasz Sowa 3280568594 added: Date structure -- represents year, month, day, hour, min, sec
with O(1) algorithm for converting from time_t (seconds from Unix epoch)


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@405 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-05 15:08:04 +00:00
Tomasz Sowa 19da401bb0 changed Makefile dep
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@404 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-04-30 22:54:37 +00:00
Tomasz Sowa e15bae9fac changed: in space/spaceparser.cpp the correct include file (spaceparser.h now)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@403 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-04-30 13:17:50 +00:00
Tomasz Sowa cd3a1b853f changed: class name: ConfParser -> SpaceParser
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@402 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-04-30 13:10:55 +00:00
Tomasz Sowa 02645de1f6 changed: directory name: confparser -> space
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@401 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-04-30 12:38:20 +00:00