GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LogInput.hpp
Go to the documentation of this file.
1 #ifndef RADIX_LOGINPUT_HPP
2 #define RADIX_LOGINPUT_HPP
3 
4 #include <string>
5 
7 
8 namespace radix {
9 
10 class Vector2f;
11 class Vector3f;
12 class Vector4f;
13 
17 class LogInput {
18 protected:
21  std::string buf, tag;
22 
23 public:
24  LogInput(Logger &sink, LogLevel lvl, const std::string &tag = "");
25  ~LogInput();
26 
27  LogInput(const LogInput&) = delete;
28  LogInput& operator=(const LogInput&) = delete;
29 
30  LogInput(LogInput&&);
31  LogInput& operator=(LogInput&&) = delete;
32 
33  LogInput& operator<<(const char*);
34  LogInput& operator<<(const std::string&);
35 
36  LogInput& operator<<(bool);
37  LogInput& operator<<(char);
38  LogInput& operator<<(uint8_t);
39  LogInput& operator<<(int8_t);
40  LogInput& operator<<(uint16_t);
41  LogInput& operator<<(int16_t);
42  LogInput& operator<<(uint32_t);
43  LogInput& operator<<(int32_t);
44  LogInput& operator<<(uint64_t);
45  LogInput& operator<<(int64_t);
46  LogInput& operator<<(float);
47  LogInput& operator<<(double);
48  LogInput& operator<<(const void*);
49 
50  LogInput& operator<<(const Vector2f&);
51  LogInput& operator<<(const Vector3f&);
52  LogInput& operator<<(const Vector4f&);
53 };
54 
55 } /* namespace radix */
56 
57 #endif /* RADIX_LOGINPUT_HPP */
Definition: GameController.hpp:7
Base class to create log sinks.
Definition: Logger.hpp:20
std::string tag
Definition: LogInput.hpp:21
~LogInput()
Definition: LogInput.cpp:17
std::cout-like object that sends the data it aggregated to a Logger when it dies
Definition: LogInput.hpp:17
4-dimensional float-based vector/point storage and manipulation struct
Definition: Vector4f.hpp:22
LogLevel lvl
Definition: LogInput.hpp:20
LogInput(Logger &sink, LogLevel lvl, const std::string &tag="")
Definition: LogInput.cpp:13
LogInput & operator=(const LogInput &)=delete
LogInput & operator<<(const char *)
Definition: LogInput.cpp:28
2-dimensional float-based vector/point storage and manipulation struct
Definition: Vector2f.hpp:23
LogLevel
Definition: Logger.hpp:8
std::string buf
Definition: LogInput.hpp:21
3-dimensional float-based vector/point storage and manipulation struct
Definition: Vector3f.hpp:27
Logger & sink
Definition: LogInput.hpp:19