org.ogre4j
Class LogManager

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.LogManager
All Implemented Interfaces:
IAllocatedObject<IGeneralAllocPolicy>, IGeneralAllocatedObject, ILogManager, ISingleton<ILogManager>, INativeObject

public class LogManager
extends NativeObject
implements ILogManager


Nested Class Summary
protected static class LogManager.LogList
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ILogManager
ILogManager.ILogList
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  LogManager()
           
  LogManager(InstancePointer p)
          This constructor is public for internal useage only!
protected LogManager(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  LogManager(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 ILog createLog(java.lang.String name, boolean defaultLog, boolean debuggerOutput, boolean suppressFileOutput)
          Creates a new log with the given name.
 void delete()
          Deletes the corresponding C++ object.
 void destroyLog(ILog log)
          Closes and removes a log.
 void destroyLog(java.lang.String name)
          Closes and removes a named log.
 void finalize()
           
 ILog getDefaultLog()
          Returns a pointer to the default log.
 ILog getLog(java.lang.String name)
          Retrieves a log managed by this class.
static ILogManager getSingleton()
          Override standard retrieval.
static ILogManager getSingletonPtr()
          Override standard retrieval.
 void logMessage(LogMessageLevel lml, java.lang.String message, boolean maskDebug)
          a message to the default log (signature for backward compatibility).
 void logMessage(java.lang.String message, LogMessageLevel lml, boolean maskDebug)
          a message to the default log.
 ILog setDefaultLog(ILog newLog)
          Sets the passed in log as the default log.
 void setLogDetail(LoggingLevel ll)
          Sets the level of detail of the default log.
 void stream(ILog.IStream returnValue, LogMessageLevel lml, boolean maskDebug)
          Get a stream on the default log.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

LogManager

public LogManager(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


LogManager

protected LogManager(InstancePointer p,
                     boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


LogManager

public LogManager(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

LogManager

public LogManager()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

createLog

public ILog createLog(java.lang.String name,
                      boolean defaultLog,
                      boolean debuggerOutput,
                      boolean suppressFileOutput)
Creates a new log with the given name.

Specified by:
createLog in interface ILogManager

getLog

public ILog getLog(java.lang.String name)
Retrieves a log managed by this class.

Specified by:
getLog in interface ILogManager

getDefaultLog

public ILog getDefaultLog()
Returns a pointer to the default log.

Specified by:
getDefaultLog in interface ILogManager

destroyLog

public void destroyLog(java.lang.String name)
Closes and removes a named log.

Specified by:
destroyLog in interface ILogManager

destroyLog

public void destroyLog(ILog log)
Closes and removes a log.

Specified by:
destroyLog in interface ILogManager

setDefaultLog

public ILog setDefaultLog(ILog newLog)
Sets the passed in log as the default log.

Specified by:
setDefaultLog in interface ILogManager

logMessage

public void logMessage(java.lang.String message,
                       LogMessageLevel lml,
                       boolean maskDebug)
a message to the default log.

Specified by:
logMessage in interface ILogManager

logMessage

public void logMessage(LogMessageLevel lml,
                       java.lang.String message,
                       boolean maskDebug)
a message to the default log (signature for backward compatibility).

Specified by:
logMessage in interface ILogManager

stream

public void stream(ILog.IStream returnValue,
                   LogMessageLevel lml,
                   boolean maskDebug)
Get a stream on the default log.

Specified by:
stream in interface ILogManager

setLogDetail

public void setLogDetail(LoggingLevel ll)
Sets the level of detail of the default log.

Specified by:
setLogDetail in interface ILogManager

getSingleton

public static ILogManager getSingleton()
Override standard retrieval.


getSingletonPtr

public static ILogManager getSingletonPtr()
Override standard retrieval.



Copyright © 2007 netAllied GmbH. All Rights Reserved.