TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Classes | Public Member Functions | Protected Attributes | List of all members
cherrypi::CherryVisDumperModule::Logger Class Reference

#include <cherryvisdumper.h>

Classes

class  LoggerStream
 
struct  TypeInfo
 

Public Member Functions

 ACCEPT_TYPE (Unit *)
 
 ACCEPT_TYPE (Position)
 
 ACCEPT_TYPE (int)
 
 ACCEPT_TYPE (float)
 
 ACCEPT_TYPE (std::string)
 
 ACCEPT_TYPE (Dumpable)
 
LoggerStream getStream (State *state, const char *filename, int line)
 
void addMessage (State *state, std::string message, std::vector< nlohmann::json > attachments={}, const char *full_filename="", int line=0, google::LogSeverity severity=0)
 
nlohmann::json to_json () const
 

Protected Attributes

std::vector< nlohmann::json > logs_
 

Member Function Documentation

cherrypi::CherryVisDumperModule::Logger::ACCEPT_TYPE ( Unit )
cherrypi::CherryVisDumperModule::Logger::ACCEPT_TYPE ( Position  )
cherrypi::CherryVisDumperModule::Logger::ACCEPT_TYPE ( int  )
cherrypi::CherryVisDumperModule::Logger::ACCEPT_TYPE ( float  )
cherrypi::CherryVisDumperModule::Logger::ACCEPT_TYPE ( std::string  )
cherrypi::CherryVisDumperModule::Logger::ACCEPT_TYPE ( Dumpable  )
void cherrypi::CherryVisDumperModule::Logger::addMessage ( State state,
std::string  message,
std::vector< nlohmann::json >  attachments = {},
const char *  full_filename = "",
int  line = 0,
google::LogSeverity  severity = 0 
)
LoggerStream cherrypi::CherryVisDumperModule::Logger::getStream ( State state,
const char *  filename,
int  line 
)
inline
nlohmann::json cherrypi::CherryVisDumperModule::Logger::to_json ( ) const
inline

Member Data Documentation

std::vector<nlohmann::json> cherrypi::CherryVisDumperModule::Logger::logs_
protected

The documentation for this class was generated from the following files: