namespace PT renamed to pt
This commit is contained in:
@@ -61,17 +61,17 @@ void print_syntax()
|
||||
|
||||
int main(int argc, const char ** argv)
|
||||
{
|
||||
PT::Space args;
|
||||
PT::Space & args_options = args.FindAddSpace(L"options");
|
||||
pt::Space args;
|
||||
pt::Space & args_options = args.FindAddSpace(L"options");
|
||||
args_options.Add(L"c", 1); // one argument - config file
|
||||
args_options.Add(L"config", 1);
|
||||
|
||||
PT::MainSpaceParser main_parser;
|
||||
pt::MainSpaceParser main_parser;
|
||||
main_parser.UTF8(true);
|
||||
main_parser.SetSpace(args);
|
||||
PT::MainSpaceParser::Status args_status = main_parser.Parse(argc, argv);
|
||||
pt::MainSpaceParser::Status args_status = main_parser.Parse(argc, argv);
|
||||
|
||||
if( args_status != PT::MainSpaceParser::status_ok )
|
||||
if( args_status != pt::MainSpaceParser::status_ok )
|
||||
{
|
||||
std::cout << "Syntax error in arguments" << std::endl;
|
||||
return 1;
|
||||
@@ -101,9 +101,9 @@ args_options.Add(L"config", 1);
|
||||
* create database morm_test owner morm_test;
|
||||
*
|
||||
*/
|
||||
PT::Log log;
|
||||
PT::FileLog file_log;
|
||||
PT::WTextStream log_buffer;
|
||||
pt::Log log;
|
||||
pt::FileLog file_log;
|
||||
pt::WTextStream log_buffer;
|
||||
|
||||
file_log.init(L"log.txt", true, 4, true);
|
||||
log.SetLogBuffer(&log_buffer);
|
||||
|
Reference in New Issue
Block a user