#include <string>
#include <iostream>
#include <sstream>
#include <grasp_planning_graspit/SharedPtr.h>
Go to the source code of this file.
Classes | |
class | GraspIt::Log |
Class to bind to a certain type of logging. More... | |
class | GraspIt::StdLog |
Simple implementation of a log which just prints the logs on std::cout and std::cerr. More... | |
Namespaces | |
namespace | GraspIt |
Defines | |
#define | PRINT_INIT_STD() |
#define | PRINTDEBUG(msg) |
#define | PRINTERROR(msg) |
#define | PRINTMSG(msg) |
#define | PRINTWARN(msg) |
Functions | |
std::string | getFileDirectory (const std::string &pathToFile) |
std::string | getFilenameFromPath (const std::string &path) |
#define PRINT_INIT_STD | ( | ) |
{\ if (GraspIt::Log::Singleton) \ {\ std::cerr << "Singleton already set, overwriting!" << std::endl;\ }\ GraspIt::Log::Singleton = SHARED_PTR<GraspIt::Log>(new GraspIt::StdLog()); \ }
Definition at line 205 of file LogBinding.h.
#define PRINTDEBUG | ( | msg | ) |
{\ std::stringstream _str_; \ _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \ GraspIt::Log::printLn(_str_); \ }
Definition at line 222 of file LogBinding.h.
#define PRINTERROR | ( | msg | ) |
{\ std::stringstream _str_; \ _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \ GraspIt::Log::printErrorLn(_str_); \ }
Definition at line 229 of file LogBinding.h.
#define PRINTMSG | ( | msg | ) |
{\ std::stringstream _str_; \ _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \ GraspIt::Log::printLn(_str_); \ }
Definition at line 215 of file LogBinding.h.
#define PRINTWARN | ( | msg | ) |
{\ std::stringstream _str_; \ _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \ GraspIt::Log::printWarnLn(_str_); \ }
Definition at line 236 of file LogBinding.h.
std::string getFileDirectory | ( | const std::string & | pathToFile | ) |
Definition at line 41 of file LogBinding.cpp.
std::string getFilenameFromPath | ( | const std::string & | path | ) |
Definition at line 30 of file LogBinding.cpp.