OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
openjaus::system::Logger Class Reference

#include <Logger.h>

Inherits openjaus::system::Thread.

Public Member Functions

 Logger ()
 
virtual ~Logger ()
 
std::string getFile () const
 Accessor to get the value of file. More...
 
bool setFile (std::string file)
 Accessor to set value of file. More...
 
virtual std::string toString () const
 
- Public Member Functions inherited from openjaus::system::Thread
 Thread ()
 
virtual ~Thread ()
 
 Thread (void *(*functionPointer)(void *), void *data)
 
bool isRunning () const
 Accessor to get the value of running. More...
 
bool setRunning (bool running)
 Accessor to set value of running. More...
 
void create ()
 Operation create. More...
 
void join ()
 Operation join. More...
 
void setThreadFunction (void *(*functionPointer)(void *), void *data)
 

Static Public Member Functions

static bool log (Event event)
 Operation log. More...
 

Protected Member Functions

virtual void * run ()
 
- Protected Member Functions inherited from openjaus::system::Thread
virtual void onCreate ()
 Method is executed when create() is called but before the Thread is created and run. More...
 

Protected Attributes

std::string file
 
- Protected Attributes inherited from openjaus::system::Thread
bool running
 
pthread_t thread
 
void * data
 
void *(* threadFunction )(void *)
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Logger &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Logger *object)
 

Additional Inherited Members

- Static Protected Member Functions inherited from openjaus::system::Thread
static void * start (void *classPointer)
 

Constructor & Destructor Documentation

§ Logger()

openjaus::system::Logger::Logger ( )

§ ~Logger()

openjaus::system::Logger::~Logger ( )
virtual

Member Function Documentation

§ getFile()

std::string openjaus::system::Logger::getFile ( ) const

§ log()

bool openjaus::system::Logger::log ( Event  event)
static
Parameters
event

§ run()

virtual void* openjaus::system::Logger::run ( )
inlineprotectedvirtual

Reimplemented from openjaus::system::Thread.

§ setFile()

bool openjaus::system::Logger::setFile ( std::string  file)
Parameters
fileThe value of the new file.

§ toString()

std::string openjaus::system::Logger::toString ( ) const
virtual

Reimplemented from openjaus::system::Thread.

Friends And Related Function Documentation

§ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Logger object 
)
friend

§ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Logger object 
)
friend

Member Data Documentation

§ file

std::string openjaus::system::Logger::file
protected

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