The Nebula Device 3: Script::InfoLogFilter Class Reference

The Nebula Device 3

Script::InfoLogFilter Class Reference

#include <infologfilter.h>

Inheritance diagram for Script::InfoLogFilter:

Core::RefCounted

Detailed Description

Provides methods to filter arrays of info log objects by the info log's description, source, log level or/and information strings.

Additionally it provides methods to check if an info log object contains a string pattern in it's description, source or information strings or if it's log level fits to log level mask.

(C) 2006 Radon Labs GmbH

Public Member Functions

int GetRefCount () const
 get the current refcount
void AddRef ()
 increment refcount by one
void Release ()
 decrement refcount and destroy object if refcount is zero
bool IsInstanceOf (const Rtti &rtti) const
 return true if this object is instance of given class
bool IsInstanceOf (const Util::String &className) const
 return true if this object is instance of given class by string
bool IsInstanceOf (const Util::FourCC &classFourCC) const
 return true if this object is instance of given class by fourcc
bool IsA (const Rtti &rtti) const
 return true if this object is instance of given class, or a derived class
bool IsA (const Util::String &rttiName) const
 return true if this object is instance of given class, or a derived class, by string
bool IsA (const Util::FourCC &rttiFourCC) const
 return true if this object is instance of given class, or a derived class, by fourcc
const Util::StringGetClassName () const
 get the class name
Util::FourCC GetClassFourCC () const
 get the class FourCC code

Static Public Member Functions

static bool ContainsDescription (Ptr< Script::InfoLog > il, const Util::String &dPattern)
static bool ContainsSource (Ptr< Script::InfoLog > il, const Util::String &sPattern)
static bool ContainsLogLevel (Ptr< Script::InfoLog > il, Script::InfoLog::LogLevel logLvlMask)
static bool ContainsInformation (Ptr< Script::InfoLog > il, const Util::String &iPattern)
static Util::Array< Ptr< Script::InfoLog > > FilterByDescription (const Util::Array< Ptr< Script::InfoLog > > &ils, const Util::String &dPattern)
 returns all info logs which contain specified description pattern
static Util::Array< Ptr< Script::InfoLog > > FilterBySource (const Util::Array< Ptr< Script::InfoLog > > &ils, const Util::String &sPattern)
 returns all info logs which contain specified source pattern
static Util::Array< Ptr< Script::InfoLog > > FilterByLogLevel (const Util::Array< Ptr< Script::InfoLog > > &ils, Script::InfoLog::LogLevel logLvlMask)
 returns all info logs which fit to the specified log level mask
static Util::Array< Ptr< Script::InfoLog > > FilterByInformation (const Util::Array< Ptr< Script::InfoLog > > &ils, const Util::String &iPattern)
 returns all info logs which contain specified information pattern
static Util::Array< Ptr< Script::InfoLog > > Filter (const Util::Array< Ptr< Script::InfoLog > > &ils, const Util::String &dPattern, const Util::String &sPattern, Script::InfoLog::LogLevel logLvlMask, const Util::String &iPattern)
static void DumpRefCountingLeaks ()
 dump refcounting leaks, call at end of application (NEBULA3_DEBUG builds only!)

Member Function Documentation

bool Script::InfoLogFilter::ContainsDescription ( Ptr< Script::InfoLog il,
const Util::String dPattern 
) [static]

returns true if description of the info log contains specified string pattern

bool Script::InfoLogFilter::ContainsSource ( Ptr< Script::InfoLog il,
const Util::String sPattern 
) [static]

returns true if source of the info log contains specified string pattern

bool Script::InfoLogFilter::ContainsLogLevel ( Ptr< Script::InfoLog il,
Script::InfoLog::LogLevel  logLvlMask 
) [static]

returns true if log level of the info log fits to the specified log level mask

bool Script::InfoLogFilter::ContainsInformation ( Ptr< Script::InfoLog il,
const Util::String iPattern 
) [static]

returns true if information of the info log contains specified string pattern

Util::Array< Ptr< Script::InfoLog > > Script::InfoLogFilter::FilterByDescription ( const Util::Array< Ptr< Script::InfoLog > > &  ils,
const Util::String dPattern 
) [static]

returns all info logs which contain specified description pattern

Returns all info logs which contain specified description pattern.

Util::Array< Ptr< Script::InfoLog > > Script::InfoLogFilter::FilterBySource ( const Util::Array< Ptr< Script::InfoLog > > &  ils,
const Util::String sPattern 
) [static]

returns all info logs which contain specified source pattern

Returns all info logs which contain specified source pattern.

Util::Array< Ptr< Script::InfoLog > > Script::InfoLogFilter::FilterByLogLevel ( const Util::Array< Ptr< Script::InfoLog > > &  ils,
Script::InfoLog::LogLevel  logLvlMask 
) [static]

returns all info logs which fit to the specified log level mask

Returns all info logs which fit to the specified log level mask.

Util::Array< Ptr< Script::InfoLog > > Script::InfoLogFilter::FilterByInformation ( const Util::Array< Ptr< Script::InfoLog > > &  ils,
const Util::String iPattern 
) [static]

returns all info logs which contain specified information pattern

Returns all info logs which contain specified information pattern.

Util::Array< Ptr< Script::InfoLog > > Script::InfoLogFilter::Filter ( const Util::Array< Ptr< Script::InfoLog > > &  ils,
const Util::String dPattern,
const Util::String sPattern,
Script::InfoLog::LogLevel  logLvlMask,
const Util::String iPattern 
) [static]

returns all info logs which contain specified description, source and information pattern and fit to the specified log level mask

int Core::RefCounted::GetRefCount (  )  const [inline, inherited]

get the current refcount

Return the current refcount of the object.

void Core::RefCounted::AddRef (  )  [inline, inherited]

increment refcount by one

Increment the refcount of the object.

void Core::RefCounted::Release (  )  [inline, inherited]

decrement refcount and destroy object if refcount is zero

Decrement the refcount and destroy object if refcount is zero.

const Util::String & Core::RefCounted::GetClassName (  )  const [inline, inherited]

get the class name

Get the class name of the object.

Util::FourCC Core::RefCounted::GetClassFourCC (  )  const [inline, inherited]

get the class FourCC code

Get the class FourCC of the object.

void Core::RefCounted::DumpRefCountingLeaks (  )  [static, inherited]

dump refcounting leaks, call at end of application (NEBULA3_DEBUG builds only!)

This method should be called as the very last before an application exits.