The Vish Visualization Shell 0.3
Vish
Public Member Functions | List of all members
Wizt::VStreamLogger::Logger Struct Reference
Inheritance diagram for Wizt::VStreamLogger::Logger:
Wizt::VLogger MemCore::ReferenceBase< VLogger >

Public Member Functions

override void printmsg (const string &text, int verbosity, int indent_spaces, const string &srcfilename, unsigned linenumber, const WeakPtr< VTask > &ThreadID, const string &funcname)
 Message output function.
 
- Public Member Functions inherited from Wizt::VLogger
bool activate ()
 Activate this VLogger object.
 
 VLogger ()
 Constructs and adds a logging object.
 
 ~VLogger ()
 Destructor.
 
- Public Member Functions inherited from MemCore::ReferenceBase< VLogger >
auto getObjectCountID () const noexcept
 Get a unique ID for this object in the given domain.
 
bool isIdentical (const WeakPtr< VLogger, VLogger > &PossibleSelf) const noexcept
 Check if this object is identical to the one used by the given pointer.
 
void mkAutoDestructive ()
 Marks this object as being automatically destructed, e.g.
 
refcount_t refcount () const noexcept
 The strong reference count.
 
 ReferenceBase (VLogger *that) noexcept
 Constructor, initializes reference counter to zero.
 
const auto & self () const
 Return weak pointer to the object self.
 
refcount_t wrefcount () const noexcept
 The weak reference count.
 

Additional Inherited Members

- Public Types inherited from MemCore::ReferenceBase< VLogger >
using reference_domain_t = VLogger
 The type of the base class.
 
using SelfPtr_t = WeakPtr< VLogger, VLogger >
 Type for a pointer to this object itself.
 
- Static Public Member Functions inherited from Wizt::VLogger
static void print (const string &text, int verbosity, int indent_spaces, const string &srcfilename, unsigned linenumber, const WeakPtr< VTask > &ThreadID, const string &funcname)
 Verbose print function.
 
static void print (int verbosity, const string &s)
 Simplified print function.
 
static void printf (int verbosity, const char *format,...)
 Print formatted function with parameters.
 
- Protected Member Functions inherited from MemCore::ReferenceBase< VLogger >
virtual void extremeUnction ()
 A virtual function that will be called just before the object is destroyed.
 
ReferenceBaseoperator= (const ReferenceBase &R)
 Protected assignment operator (should not be called).
 
void suicide ()
 Delete this.
 
virtual ~ReferenceBase ()
 Virtual destructor.
 

Member Function Documentation

◆ printmsg()

override void Wizt::VStreamLogger::Logger::printmsg ( const string &  text,
int  verbosity,
int  indent_spaces,
const string &  srcfilename,
unsigned  linenumber,
const WeakPtr< VTask > &  ThreadID,
const string &  funcname 
)
inlinevirtual

Message output function.

By default, prints message on standard output.

Parameters
textthe actual text to be printed
verbositythe verbosity level
indent_spaceshow many spaces to indent at the beginning of the line?
srcfilenamethe file name of the source that issues this command, usually FILE
linenumberthe line number of the source file, usually LINE
ThreadIDan identifier for the thread issuing the message
funcnamecurrent function (last registered for debugging)

Reimplemented from Wizt::VLogger.