Classes | Namespaces | Defines | Functions
LogBinding.h File Reference
#include <string>
#include <iostream>
#include <sstream>
#include <grasp_planning_graspit/SharedPtr.h>
Include dependency graph for LogBinding.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define PRINT_INIT_STD ( )
Value:
{\
    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)
Value:
{\
    std::stringstream _str_; \
    _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \
    GraspIt::Log::printLn(_str_); \
}

Definition at line 222 of file LogBinding.h.

#define PRINTERROR (   msg)
Value:
{\
    std::stringstream _str_; \
    _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \
    GraspIt::Log::printErrorLn(_str_); \
}

Definition at line 229 of file LogBinding.h.

#define PRINTMSG (   msg)
Value:
{\
    std::stringstream _str_; \
    _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \
    GraspIt::Log::printLn(_str_); \
}

Definition at line 215 of file LogBinding.h.

#define PRINTWARN (   msg)
Value:
{\
    std::stringstream _str_; \
    _str_ << msg << " - "<< getFilenameFromPath(__FILE__) << ", " << __LINE__; \
    GraspIt::Log::printWarnLn(_str_); \
}

Definition at line 236 of file LogBinding.h.


Function Documentation

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.



grasp_planning_graspit
Author(s): Jennifer Buehler
autogenerated on Wed May 8 2019 02:53:36