Subversion Repositories spk

Rev

Rev 114 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 114 Rev 283
Line 13... Line 13...
13
class bod_parser_base
13
class bod_parser_base
14
{
14
{
15
	public:
15
	public:
16
		enum ErrorSeverity
16
		enum ErrorSeverity
17
		{
17
		{
18
			S_OK = 0,
18
			_S_OK = 0,
19
			S_Error,
19
			S_Error,
20
			S_Warning
20
			S_Warning
21
		};
21
		};
22
 
22
 
23
		enum ErrorCode
23
		enum ErrorCode
Line 45... Line 45...
45
 
45
 
46
			ErrorSeverity severity() const { return (ErrorSeverity)(code >> 24); }
46
			ErrorSeverity severity() const { return (ErrorSeverity)(code >> 24); }
47
			ErrorFacility facility() const { return (ErrorFacility)((code >> 16) & 0xff); }
47
			ErrorFacility facility() const { return (ErrorFacility)((code >> 16) & 0xff); }
48
			bool failed() const { return (severity() & S_Error) > 0; }
48
			bool failed() const { return (severity() & S_Error) > 0; }
49
			bool warning() const { return (severity() & S_Warning) > 0; }
49
			bool warning() const { return (severity() & S_Warning) > 0; }
50
			bool succeeded() const { return (severity() & S_OK) == 0; }
50
			bool succeeded() const { return (severity() & _S_OK) == 0; }
51
 
51
 
52
			ErrorCode getCode() const { return (ErrorCode)(code & 0xFFFF); }
52
			ErrorCode getCode() const { return (ErrorCode)(code & 0xFFFF); }
53
		};
53
		};
54
 
54
 
55
	protected:
55
	protected: