00001 /*****************************************************************************\ 00002 * * 00003 * Name : test_system_values * 00004 * Author : Chris Koeritz * 00005 * * 00006 ******************************************************************************* 00007 * Copyright (c) 2005-$now By Author. This program is free software; you can * 00008 * redistribute it and/or modify it under the terms of the GNU General Public * 00009 * License as published by the Free Software Foundation; either version 2 of * 00010 * the License or (at your option) any later version. This is online at: * 00011 * http://www.fsf.org/copyleft/gpl.html * 00012 * Please send any updates to: fred@gruntose.com * 00013 \*****************************************************************************/ 00014 00015 #include <basis/function.h> 00016 #include <basis/guards.h> 00017 #include <basis/istring.h> 00018 #include <basis/portable.h> 00019 #include <opsystem/application_shell.h> 00020 #include <loggers/console_logger.h> 00021 #include <data_struct/static_memory_gremlin.h> 00022 #include <opsystem/system_values.h> 00023 00024 #define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger(), s) 00025 00026 class test_system_values : public application_shell 00027 { 00028 public: 00029 test_system_values() 00030 : application_shell(class_name()), 00031 events(system_values::EVENT_VALUES()), 00032 filters(system_values::FILTER_VALUES()), 00033 outcomes(system_values::OUTCOME_VALUES()) 00034 {} 00035 00036 IMPLEMENT_CLASS_NAME("test_system_values"); 00037 virtual int execute(); 00038 00039 private: 00040 system_values events; 00041 system_values filters; 00042 system_values outcomes; 00043 }; 00044 00045 int test_system_values::execute() 00046 { 00047 FUNCDEF("execute"); 00048 00049 log("Outcome Values"); 00050 log("=============="); 00051 log(outcomes.text_form()); 00052 00053 log("Filter Values"); 00054 log("============="); 00055 log(filters.text_form()); 00056 00057 log("Event Values"); 00058 log("============"); 00059 log(events.text_form()); 00060 00061 return 0; 00062 } 00063 00064 HOOPLE_MAIN(test_system_values, ) 00065
1.5.1