VTFLib
A C and C++ API that, with a few simple functions, can open and save .vtf and .vmt files.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Error.h
Go to the documentation of this file.
1 /*
2  * VTFLib
3  * Copyright (C) 2005-2010 Neil Jedrzejewski & Ryan Gregg
4 
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later
9  * version.
10  */
11 
12 // ============================================================
13 // NOTE: This file is commented for compatibility with Doxygen.
14 // ============================================================
20 #ifndef VTFLIB_ERROR_H
21 #define VTFLIB_ERROR_H
22 
23 #include "stdafx.h"
24 
25 namespace VTFLib
26 {
27  namespace Diagnostics
28  {
30 
34  class VTFLIB_API CError
35  {
36  private:
37  vlChar *cErrorMessage;
38 
39  public:
40  CError();
41  ~CError();
42 
44  vlVoid Clear();
45 
47  const vlChar *Get() const;
48 
50  vlVoid SetFormatted(const vlChar *cFormat, ...) VTFLIB_PRINTF(2,3);
51  vlVoid Set(const vlChar *cErrorMessage, vlBool bSystemError = vlFalse);
52  };
53  }
54 }
55 
56 #endif
char vlChar
Single signed character.
Definition: stdafx.h:51
Application framework header plus VTFLib custom data types.
void vlVoid
Void value.
Definition: stdafx.h:61
VTFLib Error handling class.
Definition: Error.h:34
unsigned char vlBool
Boolean value 0/1.
Definition: stdafx.h:50