MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
Utils_dependent.hpp
Go to the documentation of this file.
1 #ifndef UTILS_DEPENDENT_HPP
2 #define UTILS_DEPENDENT_HPP
3 
4 #include <android/log.h>
5 #include <string>
6 
7 namespace Dependent {
8  inline void printDebug(const ::std::string &log);
9 
10  inline void printInfo(const ::std::string &log);
11 
12  inline void printWarn(const ::std::string &log);
13 
14  inline void printError(const ::std::string &log);
15 }//namespace Dependent
16 
17 void Dependent::printDebug(const ::std::string &log) {
18  __android_log_print(ANDROID_LOG_DEBUG, "LOG", "%s", log.c_str());
19 }
20 
21 void Dependent::printInfo(const ::std::string &log) {
22  __android_log_print(ANDROID_LOG_INFO, "LOG", "%s", log.c_str());
23 }
24 
25 void Dependent::printWarn(const ::std::string &log) {
26  __android_log_print(ANDROID_LOG_WARN, "LOG", "%s", log.c_str());
27 }
28 
29 void Dependent::printError(const ::std::string &log) {
30  __android_log_print(ANDROID_LOG_ERROR, "LOG", "%s", log.c_str());
31 }
32 
33 #endif //UTILS_DEPENDENT_HPP
Definition: Utils_dependent.hpp:7
void printWarn(const ::std::string &log)
Definition: Utils_dependent.hpp:25
void printInfo(const ::std::string &log)
Definition: Utils_dependent.hpp:21
void printDebug(const ::std::string &log)
Definition: Utils_dependent.hpp:17
void printError(const ::std::string &log)
Definition: Utils_dependent.hpp:29