Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97557621
skerror.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 5, 06:29
Size
917 B
Mime Type
text/x-c
Expires
Tue, Jan 7, 06:29 (2 d)
Engine
blob
Format
Raw Data
Handle
23426025
Attached To
rSTICAZZI yearII_reports
skerror.h
View Options
#ifndef SKERROR_H
#define SKERROR_H
#include <string>
/* struct contentant les infos necessaires pour la gestion d'un erreur */
namespace
symkit
{
enum
SKErrorType
{
ERR_INIT
=
-
7
,
ERR_EVOLVE
,
ERR_RENDER
,
ERR_NULL_POINTER
,
ERR_NUMERICAL
,
ERR_BOUND
,
ERR_OTHERS
=
-
1
};
struct
SKError
{
SKError
(
const
SKErrorType
&
,
const
std
::
string
&
functionName
,
const
std
::
string
&
className
,
const
std
::
string
&
comment
=
""
,
bool
fatal
=
true
);
SKErrorType
type
;
std
::
string
functionName
;
std
::
string
className
;
std
::
string
comment
;
bool
fatal
;
};
}
#include <iosfwd>
//Surcharge de l'operateur << pour l'affichage d'un message d'erreur a appeler dans un catch
std
::
ostream
&
operator
<<
(
std
::
ostream
&
,
const
symkit
::
SKError
&
);
#endif
// SKERROR_H
Event Timeline
Log In to Comment