Subversion Repositories spk

Rev

Rev 1 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1 Rev 114
Line 28... Line 28...
28
			E_NoError,
28
			E_NoError,
29
			E_MoreData,
29
			E_MoreData,
30
			E_NotEnoughData,
30
			E_NotEnoughData,
31
			E_NoStatFormat,
31
			E_NoStatFormat,
32
			E_FormatUserWarning,
32
			E_FormatUserWarning,
33
			E_UnkPointHeader,
33
			E_UnkPointFlags,
34
			E_PointNotFound,
34
			E_PointNotFound,
35
			E_BadVersion
35
			E_BadVersion
36
		};
36
		};
37
		
37
		
38
		enum ErrorSeverity
38
		enum ErrorSeverity
39
		{
39
		{
40
			BOB_OK,
40
			S_OK = 0,
41
			S_Warning,
41
			S_Warning,
42
			S_Error
42
			S_Error
43
		};
43
		};
44
		
44
		
45
		enum ErrorFacility
45
		enum ErrorFacility
Line 62... Line 62...
62
			
62
			
63
			ErrorSeverity severity() const { return (ErrorSeverity)(code >> 24); }
63
			ErrorSeverity severity() const { return (ErrorSeverity)(code >> 24); }
64
			ErrorFacility facility() const { return (ErrorFacility)((code >> 16) & 0xff); }
64
			ErrorFacility facility() const { return (ErrorFacility)((code >> 16) & 0xff); }
65
			bool failed() const { return (severity() & S_Error) > 0; }
65
			bool failed() const { return (severity() & S_Error) > 0; }
66
			bool warning() const { return (severity() & S_Warning) > 0; }
66
			bool warning() const { return (severity() & S_Warning) > 0; }
67
			bool succeeded() const { return (severity() & BOB_OK) == 0; }
67
			bool succeeded() const { return (severity() & S_OK) == 0; }
68
			
68
			
69
			ErrorCode getCode() const { return (ErrorCode)(code & 0xFFFF); }
69
			ErrorCode getCode() const { return (ErrorCode)(code & 0xFFFF); }
70
		};
70
		};
71
		
71
		
72
	private:
72
	private:
Line 96... Line 96...
96
				delete *it;
96
				delete *it;
97
			}
97
			}
98
			errors.clear(); 
98
			errors.clear(); 
99
		}
99
		}
100
		
100
		
101
		bool fromFile(bob_dom_ibinaryfilestream& is);
101
		bool fromFile(ibinaryfilestream& is);
102
		
102
		
103
		bool convert(bob_dom_ibinaryfilestream& is, bob_dom_otextfilestream& os);
103
		bool convert(ibinaryfilestream& is, otextfilestream& os);
104
		
104
		
105
		bool toFile(bob_dom_obinaryfilestream& os);
105
		bool toFile(obinaryfilestream& os);
106
		bool toFile(bob_dom_otextfilestream& os);
106
		bool toFile(otextfilestream& os);
107
		
107
		
108
};
108
};
109
 
109
 
110
 
110
 
111
#endif // !defined(BOB_DOM_INCLUDED)
111
#endif // !defined(BOB_DOM_INCLUDED)