00001 #ifndef GERROR_OUTPUT_H 00002 #define GERROR_OUTPUT_H 00003 00004 #include <iostream> 00005 #include <vector> 00006 #include <string> 00007 00008 namespace GMathLib{ 00009 namespace IO{ 00013 namespace GStd_Output{ 00014 00020 inline void Write(const std::string class_method, const std::string output_content){ 00021 std::cout << "== GMathLib Info : " << class_method << std::endl; 00022 std::cout << " * " + output_content << std::endl; 00023 std::cout << std::endl; 00024 } 00025 00032 inline void Write(const std::string class_method, std::vector<std::string> output_content_list){ 00033 std::cout << "== GMathLib Info : " << class_method << std::endl; 00034 00035 std::vector<std::string>::iterator itr = output_content_list.begin(); 00036 while(itr != output_content_list.end()){ 00037 std::cout << " * " + *itr << std::endl; 00038 ++itr; 00039 } 00040 00041 std::cout << std::endl; 00042 } 00043 00044 } 00045 } 00046 } 00047 00048 00049 #endif