org.ogre4j
Class ConfigFile

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

public class ConfigFile
extends NativeObject
implements IConfigFile


Nested Class Summary
static class ConfigFile.SectionIterator
           
static class ConfigFile.SettingsBySection
           
static class ConfigFile.SettingsIterator
           
static class ConfigFile.SettingsMultiMap
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IConfigFile
IConfigFile.ISectionIterator, IConfigFile.ISettingsBySection, IConfigFile.ISettingsIterator, IConfigFile.ISettingsMultiMap
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ConfigFile()
           
  ConfigFile(InstancePointer p)
          This constructor is public for internal useage only!
protected ConfigFile(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ConfigFile(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void clear()
          Clear the settings
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void getMultiSetting(IStringVector returnValue, java.lang.String key, java.lang.String section)
          Gets all settings from the file with the named key.
 void getSectionIterator(IConfigFile.ISectionIterator returnValue)
          Get an iterator over all the available sections in the config file
 java.lang.String getSetting(java.lang.String key, java.lang.String section, java.lang.String defaultValue)
          Gets the first setting from the file with the named key.
 void getSettingsIterator(IConfigFile.ISettingsIterator returnValue, java.lang.String section)
          Get an iterator over all the available settings in a section
 void load(IDataStreamPtr stream, java.lang.String separators, boolean trimWhitespace)
           
 void load(java.lang.String filename, java.lang.String separators, boolean trimWhitespace)
           
 void load(java.lang.String filename, java.lang.String resourceGroup, java.lang.String separators, boolean trimWhitespace)
           
 void loadDirect(java.lang.String filename, java.lang.String separators, boolean trimWhitespace)
           
 void loadFromResourceSystem(java.lang.String filename, java.lang.String resourceGroup, java.lang.String separators, boolean trimWhitespace)
           
 
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

ConfigFile

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


ConfigFile

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


ConfigFile

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

ConfigFile

public ConfigFile()
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

load

public void load(java.lang.String filename,
                 java.lang.String separators,
                 boolean trimWhitespace)
Specified by:
load in interface IConfigFile

load

public void load(java.lang.String filename,
                 java.lang.String resourceGroup,
                 java.lang.String separators,
                 boolean trimWhitespace)
Specified by:
load in interface IConfigFile

load

public void load(IDataStreamPtr stream,
                 java.lang.String separators,
                 boolean trimWhitespace)
Specified by:
load in interface IConfigFile

loadDirect

public void loadDirect(java.lang.String filename,
                       java.lang.String separators,
                       boolean trimWhitespace)
Specified by:
loadDirect in interface IConfigFile

loadFromResourceSystem

public void loadFromResourceSystem(java.lang.String filename,
                                   java.lang.String resourceGroup,
                                   java.lang.String separators,
                                   boolean trimWhitespace)
Specified by:
loadFromResourceSystem in interface IConfigFile

getSetting

public java.lang.String getSetting(java.lang.String key,
                                   java.lang.String section,
                                   java.lang.String defaultValue)
Gets the first setting from the file with the named key.

Specified by:
getSetting in interface IConfigFile

getMultiSetting

public void getMultiSetting(IStringVector returnValue,
                            java.lang.String key,
                            java.lang.String section)
Gets all settings from the file with the named key.

Specified by:
getMultiSetting in interface IConfigFile

getSectionIterator

public void getSectionIterator(IConfigFile.ISectionIterator returnValue)
Get an iterator over all the available sections in the config file

Specified by:
getSectionIterator in interface IConfigFile

getSettingsIterator

public void getSettingsIterator(IConfigFile.ISettingsIterator returnValue,
                                java.lang.String section)
Get an iterator over all the available settings in a section

Specified by:
getSettingsIterator in interface IConfigFile

clear

public void clear()
Clear the settings

Specified by:
clear in interface IConfigFile


Copyright © 2007 netAllied GmbH. All Rights Reserved.