| globjects 1.0.0.000000000000 Strict OpenGL objects wrapper.

formatString.h
Go to the documentation of this file.
1
2 #pragma once
3
4 #include <iosfwd>
5 #include <string>
6
7 #include <globjects/globjects_api.h>
8
9
10 namespace globjects
11 {
12
13
14 GLOBJECTS_API int readInt(const char* str, int& number);
15 GLOBJECTS_API void parseFormat(std::ostream& stream, const char*& format);
16
17 GLOBJECTS_API void streamprintf(std::ostream& stream, const char* format);
18
24 template <typename T, typename... Args>
25 void streamprintf(std::ostream& stream, const char* format, const T& value, Args... args);
26
83 template <typename... Args>
84 std::string formatString(const char* format, Args... args);
85
86
87 } // namespace globjects
88
89
90 #include <globjects/base/formatString.inl>
globjects::formatString
std::string formatString(const char *format, Args... args)
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::readInt
GLOBJECTS_API int readInt(const char *str, int &number)
globjects::parseFormat
GLOBJECTS_API void parseFormat(std::ostream &stream, const char *&format)
globjects::streamprintf
GLOBJECTS_API void streamprintf(std::ostream &stream, const char *format)