OGLplus (0.52.0) a C++ wrapper for OpenGL

program.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_ERROR_PROGRAM_1107121519_HPP
14 #define OGLPLUS_ERROR_PROGRAM_1107121519_HPP
15 
16 #include <oglplus/error/object.hpp>
17 #include <oglplus/string/def.hpp>
18 
19 #include <cassert>
20 
21 namespace oglplus {
22 
24 
28  : public ObjectError
29 {
30 private:
31  String _log;
32 public:
33  ProgramBuildError(const char* message)
34  : ObjectError(message)
35  { }
36 
37  ~ProgramBuildError(void) throw()
38  { }
39 
41  {
42  _log = std::move(log);
43  return *this;
44  }
45 
47  const String& Log(void) const
48  {
49  return _log;
50  }
51 };
52 
54 
58  : public ProgramBuildError
59 {
60 public:
61  static const char* Message(void);
62 
63  CompileError(const char* message)
64  : ProgramBuildError(message)
65  { }
66 };
67 
69 
72 class LinkError
73  : public ProgramBuildError
74 {
75 public:
76  static const char* Message(void);
77 
78  LinkError(const char* message)
79  : ProgramBuildError(message)
80  { }
81 };
82 
84 
88  : public ProgramBuildError
89 {
90 public:
91  static const char* Message(void);
92 
93  ValidationError(const char* message)
94  : ProgramBuildError(message)
95  { }
96 };
97 
98 } // namespace oglplus
99 
100 #if !OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)
101 #include <oglplus/error/program.ipp>
102 #endif
103 
104 #endif // include guard
Exception class for OpenGL shading language program link error.
Definition: program.hpp:72
Base class for program compilation or linking errors.
Definition: program.hpp:27
Declaration of OGLplus object-related error.
const String & Log(void) const
Returns the compiler error output.
Definition: program.hpp:47
String type definition and related functions.
Exception class for OpenGL shading language compilation error.
Definition: program.hpp:57
::std::basic_string< GLchar > String
String class.
Definition: def.hpp:36
Exception class for GL object-related errors.
Definition: object.hpp:24
Exception class for OpenGL shading language program validation error.
Definition: program.hpp:87

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).