updated: to the new Pikotools API

ConfParser is now SpaceParser
added:   to SessionManager
         Session * SessionManager::FindSession(long id)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@831 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-04-30 22:53:54 +00:00
parent fc33b4f882
commit c94b0311b6
38 changed files with 946 additions and 1009 deletions

View File

@@ -31,22 +31,22 @@ void Config::ShowError()
switch( parser.status )
{
case PT::ConfParser::no_space:
case PT::SpaceParser::no_space:
log << log2 << "Config: space not set" << logend;
break;
case PT::ConfParser::ok:
case PT::SpaceParser::ok:
log << log2 << "Config: syntax ok" << logend;
break;
case PT::ConfParser::cant_open_file:
case PT::SpaceParser::cant_open_file:
if( errors_to_stdout )
std::cout << "Config: cant open a config file: " << config_file << std::endl;
log << log1 << "Config: cant open a config file: " << config_file << logend;
break;
case PT::ConfParser::syntax_error:
case PT::SpaceParser::syntax_error:
if( errors_to_stdout )
std::cout << "Config: syntax error, line: " << parser.line << std::endl;
@@ -76,9 +76,9 @@ bool Config::ReadConfig(bool errors_to_stdout_, bool stdout_is_closed)
parser.UTF8(true); // config is always read in UTF-8
parser.SetSpace(space);
PT::ConfParser::Status status = parser.Parse(config_file);
PT::SpaceParser::Status status = parser.Parse(config_file);
if( status == PT::ConfParser::ok )
if( status == PT::SpaceParser::ok )
{
AssignValues(stdout_is_closed);
SetAdditionalVariables();