Web Analytics Made Easy - Statcounter
Skip to content

Class SBCLogEventCollection#

ClassList > SBCLogEventCollection

LogEvent storage. More...

  • #include "SBCLogEventCollection.hpp"

Public Functions#

Type Name
SBCLogEventCollection (const std::string & filename)
SBCLogEventCollection ()
void addEvent (SBCLogEvent::Type eventLevel, const std::string & filename, const std::string & functionName, const std::string & lineNumber, const std::string & descriptionMessage, const std::string & uuid)
void addEvent (SBCLogEvent * event)
void display ()
Display method.
std::vector< SBCLogEvent * > * getEvents ()
Returns event date.
void load (const std::string & filename, bool binary=true)
Load the logEvent collection.
void reDisplay ()
Useful if one wants to display again after having changed display configuration.
void reset ()
void save (const std::string & filename, bool binary=true) const
Save the logEvent collection.
void setDisplayConfig (bool printTime, bool printLocation)
void setEvents (std::vector< SBCLogEvent * > * vector)
Sets event date.
virtual ~SBCLogEventCollection ()

Detailed Description#

Every program needs to report/handle log conditions. This is done by managing an event stack where messages, with helpful runtime information, are put. A SBCLogEventCollection represent a logging event collection.

Public Functions Documentation#

function SBCLogEventCollection [1/2]#

SBCLogEventCollection::SBCLogEventCollection (
    const std::string & filename
) 

function SBCLogEventCollection [2/2]#

SBCLogEventCollection::SBCLogEventCollection () 

function addEvent [1/2]#

void SBCLogEventCollection::addEvent (
    SBCLogEvent::Type eventLevel,
    const std::string & filename,
    const std::string & functionName,
    const std::string & lineNumber,
    const std::string & descriptionMessage,
    const std::string & uuid
) 

function addEvent [2/2]#

void SBCLogEventCollection::addEvent (
    SBCLogEvent * event
) 

function display#

Display method.

void SBCLogEventCollection::display () 


function getEvents#

Returns event date.

std::vector< SBCLogEvent * > * SBCLogEventCollection::getEvents () 


function load#

Load the logEvent collection.

void SBCLogEventCollection::load (
    const std::string & filename,
    bool binary=true
) 


function reDisplay#

Useful if one wants to display again after having changed display configuration.

void SBCLogEventCollection::reDisplay () 


function reset#

void SBCLogEventCollection::reset () 

function save#

Save the logEvent collection.

void SBCLogEventCollection::save (
    const std::string & filename,
    bool binary=true
) const


function setDisplayConfig#

void SBCLogEventCollection::setDisplayConfig (
    bool printTime,
    bool printLocation
) 

Parameters:

  • printTime boolean set to true to print the date.
  • printLocation boolean set to true to print File/Line information.

function setEvents#

Sets event date.

void SBCLogEventCollection::setEvents (
    std::vector< SBCLogEvent * > * vector
) 


function ~SBCLogEventCollection#

virtual SBCLogEventCollection::~SBCLogEventCollection ()