Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

Assert


Defines

#define hyp_ASSERT(Condition)
#define hyp_FATAL(Msg)
#define hyp_NOTIFY(Msg)

Enumerations

enum  EMessageType { notify, fatal, assertion }

Functions

void Message (const std::string &Message, EMessageType MessageType)

Define Documentation

#define hyp_ASSERT Condition  
 

Value:

{                                                               \
        if ( !( Condition ) ) {                                     \
                std::string formated_msg;                               \
                hyp_STRING_TRACE( formated_msg , ("%s",#Condition) );   \
                hyp::ker::Message( formated_msg , hyp::ker::assertion);        \
        }                                                           \
}
Custon assertion macro.

#define hyp_FATAL Msg  
 

Value:

{                                                                \
        std::string formated_msg;                                    \
        hyp_STRING_TRACE( formated_msg , Msg );                      \
        hyp::ker::Message( formated_msg, hyp::ker::fatal);                  \
}
Displays a message box and kills the applications. Uses when an error can not be recovered.

#define hyp_NOTIFY Msg  
 

Value:

{                                                                \
        std::string formated_msg;                                    \
        hyp_STRING_TRACE( formated_msg , Msg );                      \
        hyp::ker::Message( formated_msg, hyp::ker::notify );                \
}
Display a message box which proposes to quit or to continue the application.


Enumeration Type Documentation

enum EMessageType
 

This enumeration is only used with the Message function.

Enumeration values:
notify   Indicates that the user will have the posssibility to continue the application.
fatal   Indicates that the application are going to exit.
assertion   Indicates that Message function is used to display assertion information.


Function Documentation

void Message const std::string &   Message,
EMessageType   MessageType
 

General function which allows to display a message box. Used for trace or debug operations.

Parameters:
Message   String which contains the message to display.
MessageType   Indicates which types of message to display.


Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.