org.ogre4j
Class Log

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

public class Log
extends NativeObject
implements ILog


Nested Class Summary
protected static class Log.mtLogListener
           
static class Log.Stream
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ILog
ILog.ImtLogListener, ILog.IStream
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Log(InstancePointer p)
          This constructor is public for internal useage only!
protected Log(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Log(java.lang.String name, boolean debugOutput, boolean suppressFileOutput)
           
  Log(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addListener(ILogListener listener)
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 LoggingLevel getLogDetail()
          Gets the level of the log detail.
 java.lang.String getName()
           
 boolean isDebugOutputEnabled()
           
 boolean isFileOutputSuppressed()
           
 void logMessage(java.lang.String message, LogMessageLevel lml, boolean maskDebug)
          a message to the debugger and to log file (the default is "OGRE.log"),
 void removeListener(ILogListener listener)
           
 void setDebugOutputEnabled(boolean debugOutput)
           
 void setLogDetail(LoggingLevel ll)
           
 void stream(ILog.IStream returnValue, LogMessageLevel lml, boolean maskDebug)
          Get a stream object targetting this 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

Log

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


Log

protected Log(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.


Log

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Log

public Log(java.lang.String name,
           boolean debugOutput,
           boolean suppressFileOutput)
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

getName

public java.lang.String getName()
Specified by:
getName in interface ILog

isDebugOutputEnabled

public boolean isDebugOutputEnabled()
Specified by:
isDebugOutputEnabled in interface ILog

isFileOutputSuppressed

public boolean isFileOutputSuppressed()
Specified by:
isFileOutputSuppressed in interface ILog

logMessage

public void logMessage(java.lang.String message,
                       LogMessageLevel lml,
                       boolean maskDebug)
a message to the debugger and to log file (the default is "OGRE.log"),

Specified by:
logMessage in interface ILog

stream

public void stream(ILog.IStream returnValue,
                   LogMessageLevel lml,
                   boolean maskDebug)
Get a stream object targetting this log.

Specified by:
stream in interface ILog

setDebugOutputEnabled

public void setDebugOutputEnabled(boolean debugOutput)
Specified by:
setDebugOutputEnabled in interface ILog

setLogDetail

public void setLogDetail(LoggingLevel ll)
Specified by:
setLogDetail in interface ILog

getLogDetail

public LoggingLevel getLogDetail()
Gets the level of the log detail.

Specified by:
getLogDetail in interface ILog

addListener

public void addListener(ILogListener listener)
Specified by:
addListener in interface ILog

removeListener

public void removeListener(ILogListener listener)
Specified by:
removeListener in interface ILog


Copyright © 2007 netAllied GmbH. All Rights Reserved.