Simulacrum  1.2
Public Member Functions | Static Public Member Functions | List of all members
Simulacrum::SLogger Class Reference

#include <slogger.h>

Inheritance diagram for Simulacrum::SLogger:
Inheritance graph
Collaboration diagram for Simulacrum::SLogger:
Collaboration graph

Public Member Functions

 SLogger ()
 
virtual ~SLogger ()
 
void setTitle (const std::string &)
 
std::string getTitle ()
 
void addText (const std::string &, SLogLevel=SLogLevels::LOW)
 
void addLine (const std::string &, SLogLevel=SLogLevels::LOW)
 
void addMessage (const std::string &, SLogLevel=SLogLevels::LOW)
 
SLoggeroperator<< (const std::string &)
 
SLoggeroperator<< (const long int)
 
SLoggeroperator<< (const double)
 
void clear ()
 
void setStream (std::ostream &)
 
void clearStream ()
 
std::string getLog ()
 
std::string getNew ()
 
void waitPending ()
 
unsigned long genSequenceNumber ()
 
- Public Member Functions inherited from Simulacrum::SConnectable
 SConnectable ()
 
virtual ~SConnectable ()
 
virtual void refresh (sdepth_t)
 
void emitRefresh (sdepth_t)
 
virtual void signal (ssignal_t, void *=nullptr)
 
void emitSignal (ssignal_t, void *=nullptr)
 
virtual void progress (int)
 
virtual bool sconnect (SConnectable &)
 
virtual bool sconnect (SConnectable &, bool delondiscon)
 
virtual bool sdisconnect (SConnectable &)
 
virtual void disconnectSources ()
 
virtual void disconnectListeners ()
 
virtual void disconnectListeners_Refresh ()
 
virtual bool isConnected (SConnectable &) const
 
virtual bool isConnected (SConnectable *) const
 
virtual void sconfigure (const std::string &)
 
virtual SConnectableend ()
 
virtual SConnectablepenum ()
 
virtual SConnectablepred ()
 
virtual SConnectablesucc ()
 
virtual void deleteOnDisconnect (bool)
 
virtual bool deleteOnDisconnect ()
 
virtual void setName (const std::string &)
 
virtual const std::string & getName () const
 
const std::map< std::string, double > & parameters ()
 
const std::map< std::string, std::string > & properties ()
 
bool hasProperty (const std::string &) const
 
bool hasParameter (const std::string &) const
 
void setProperty (const std::string &, const std::string &)
 
void setParameter (const std::string &, double)
 
std::string getProperty (const std::string &) const
 
double getParameter (const std::string &) const
 
- Public Member Functions inherited from Simulacrum::SLockable
virtual void lock ()
 
virtual void unlock ()
 
virtual bool try_lock ()
 
virtual void wait ()
 
virtual void refIncr ()
 
virtual void refDecr ()
 
virtual int refCount ()
 
 SLockable ()
 
 SLockable (const SLockable &)
 
virtual ~SLockable ()
 

Static Public Member Functions

static SLoggerglobal ()
 
static std::string time ()
 

Additional Inherited Members

- Public Types inherited from Simulacrum::SConnectable
typedef unsigned ssignal_t
 
typedef bool sdepth_t
 
- Protected Member Functions inherited from Simulacrum::SConnectable
virtual bool addListener (SConnectable &)
 
virtual bool removeListener (SConnectable &)
 
virtual bool addTarget (SConnectable &)
 
virtual bool removeTarget (SConnectable &)
 

Constructor & Destructor Documentation

◆ SLogger()

SLogger::SLogger ( )

◆ ~SLogger()

SLogger::~SLogger ( )
virtual

Member Function Documentation

◆ addLine()

void SLogger::addLine ( const std::string &  newmsg,
SLogLevel  ll = SLogLevels::LOW 
)

◆ addMessage()

void SLogger::addMessage ( const std::string &  newmsg,
SLogLevel  mlev = SLogLevels::LOW 
)

◆ addText()

void SLogger::addText ( const std::string &  newmsg,
SLogLevel  ll = SLogLevels::LOW 
)

◆ clear()

void SLogger::clear ( )

◆ clearStream()

void SLogger::clearStream ( )

◆ genSequenceNumber()

long unsigned int SLogger::genSequenceNumber ( )

◆ getLog()

std::string SLogger::getLog ( )

◆ getNew()

std::string SLogger::getNew ( )

◆ getTitle()

std::string SLogger::getTitle ( )

◆ global()

SLogger & SLogger::global ( )
static

◆ operator<<() [1/3]

SLogger & SLogger::operator<< ( const double  newval)

◆ operator<<() [2/3]

SLogger & SLogger::operator<< ( const long int  newval)

◆ operator<<() [3/3]

SLogger & SLogger::operator<< ( const std::string &  newmsg)

◆ setStream()

void SLogger::setStream ( std::ostream &  newstream)

◆ setTitle()

void SLogger::setTitle ( const std::string &  newtitle)

◆ time()

std::string SLogger::time ( )
static

◆ waitPending()

void SLogger::waitPending ( )

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