cgma
|
00001 //- Class: CubitMessageHandler 00002 //- Description: CubitMessageHandler class - used for reporting messages to 00003 //- the user 00004 00005 #ifndef CUBITMESSAGEHANDLER_HPP 00006 #define CUBITMESSAGEHANDLER_HPP 00007 #include "CGMUtilConfigure.h" 00008 #include <string> 00009 00010 class CUBIT_UTIL_EXPORT CubitMessageHandler 00011 { 00012 public: 00013 CubitMessageHandler(); 00014 virtual ~CubitMessageHandler(); 00015 00016 virtual void print_message(const char *message) = 0; 00017 virtual void print_error(const char *message) = 0; 00018 }; 00019 00020 class CUBIT_UTIL_EXPORT CubitMessageErrorHandler 00021 { 00022 public: 00023 CubitMessageErrorHandler(); 00024 virtual ~CubitMessageErrorHandler(); 00025 virtual std::string error_context() = 0; 00026 }; 00027 00028 #endif 00029