| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.csutil.cfgfile.csConfigFile
| Field Summary | 
| Fields inherited from class crystalspace.jbind.impl.csNativeObject | 
ImplFactory, nPointer | 
| Constructor Summary | |
csConfigFile(iPointer nPointer)
 | 
|
| Method Summary | |
 void | 
clear()
Delete all options and rewind all iterators.  | 
 void | 
deleteKey(java.lang.String Key)
Delete a key and its value and comment.  | 
 iConfigIterator | 
enumerate()
Enumerate selected keys.  | 
 iConfigIterator | 
enumerate(java.lang.String Subsection)
Enumerate selected keys.  | 
 boolean | 
getBool(java.lang.String Key)
Get a booleanean value from the configuration.  | 
 boolean | 
getBool(java.lang.String Key,
        boolean Def)
Get a booleanean value from the configuration.  | 
 java.lang.String | 
getComment(java.lang.String Key)
Get the comment of the given key, or 0 if no comment exists.  | 
 java.lang.String | 
getEOFComment()
return the final comment at the end of the configuration file Implemented in csWin32RegistryConfig, csConfigFile, csConfigManager, and csDefaultsConfig.  | 
 java.lang.String | 
getFileName()
Get configuration file name.  | 
 float | 
getFloat(java.lang.String Key)
Get a float value from the configuration.  | 
 float | 
getFloat(java.lang.String Key,
         float Def)
Get a float value from the configuration.  | 
 int | 
getInt(java.lang.String Key)
Get an integer value from the configuration.  | 
 int | 
getInt(java.lang.String Key,
       int Def)
Get an integer value from the configuration.  | 
static java.lang.Class | 
getInterfaceClass()
 | 
static java.lang.String | 
getInterfaceName()
 | 
static int | 
getInterfaceVersion()
 | 
 java.lang.String | 
getName()
Return the name of the interface  | 
 java.lang.String | 
getStr(java.lang.String Key)
Get a string value from the configuration.  | 
 java.lang.String | 
getStr(java.lang.String Key,
       java.lang.String Def)
Get a string value from the configuration.  | 
 int | 
getVersion()
Return the version of the interface  | 
 iVFS | 
getVFS()
Get the VFS object on which this file is stored (if any);.  | 
static void | 
initSCF()
 | 
protected  boolean | 
isNativePointerValidSafe(long pointer)
 | 
 boolean | 
keyExists(java.lang.String Key)
Test if a key exists.  | 
 boolean | 
load(java.lang.String iFileName)
Load a configuration file.  | 
 boolean | 
load(java.lang.String iFileName,
     iVFS vfs)
Load a configuration file.  | 
 boolean | 
load(java.lang.String iFileName,
     iVFS vfs,
     boolean Merge)
Load a configuration file.  | 
 boolean | 
load(java.lang.String iFileName,
     iVFS vfs,
     boolean Merge,
     boolean NewWins)
Load a configuration file.  | 
 boolean | 
save()
Save configuration to the same place from which it was loaded.  | 
 boolean | 
save(java.lang.String iFileName)
Save configuration into the given file (on VFS or on the physical filesystem);.  | 
 boolean | 
save(java.lang.String iFileName,
     iVFS vfs)
Save configuration into the given file (on VFS or on the physical filesystem);.  | 
 void | 
setBool(java.lang.String Key,
        boolean Value)
Set a booleanean value.  | 
 void | 
setComment(java.lang.String Key,
           java.lang.String Text)
Set the comment for given key.  | 
 void | 
setEOFComment(java.lang.String Text)
set the final comment at the end of the configuration file Implemented in csWin32RegistryConfig, csConfigFile, csConfigManager, and csDefaultsConfig.  | 
 void | 
setFileName(java.lang.String Name,
            iVFS vfs)
Set config file name.  | 
 void | 
setFloat(java.lang.String Key,
         float Value)
Set a floating-point value.  | 
 void | 
setInt(java.lang.String Key,
       int Value)
Set an integer value.  | 
 void | 
setStr(java.lang.String Key,
       java.lang.String Val)
Set an string value.  | 
 boolean | 
subsectionExists(java.lang.String Subsection)
Test if at least one key exists with the given Subsection prefix.  | 
| Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase | 
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe | 
| Methods inherited from class crystalspace.jbind.impl.csNativeObject | 
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString | 
| Methods inherited from class java.lang.Object | 
clone, getClass, notify, notifyAll, wait, wait, wait | 
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase | 
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe | 
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer | 
changePointer, getPointer, isMemoryOwner, setMemoryOwner | 
| Constructor Detail | 
public csConfigFile(iPointer nPointer)
nPointer - | Method Detail | 
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBasepublic java.lang.String getName()
iBase
getName in interface iBasegetName in class csBasepublic static void initSCF()
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectcsNativeObject.isNativePointerValidSafe(long)public void clear()
iConfigFile
clear in interface iConfigFileiConfigFile.clear()public void deleteKey(java.lang.String Key)
iConfigFile
deleteKey in interface iConfigFileKey - iConfigFile.deleteKey(java.lang.String)public iConfigIterator enumerate()
iConfigFile
enumerate in interface iConfigFileiConfigFile.enumerate()public iConfigIterator enumerate(java.lang.String Subsection)
iConfigFile
enumerate in interface iConfigFileSubsection - 
iConfigFile.enumerate(java.lang.String)public boolean getBool(java.lang.String Key)
iConfigFile
getBool in interface iConfigFileKey - 
iConfigFile.getBool(java.lang.String)
public boolean getBool(java.lang.String Key,
                       boolean Def)
iConfigFile
getBool in interface iConfigFileKey - Def - 
iConfigFile.getBool(java.lang.String,
           boolean)public java.lang.String getComment(java.lang.String Key)
iConfigFile
getComment in interface iConfigFileKey - 
iConfigFile.getComment(java.lang.String)public java.lang.String getEOFComment()
iConfigFile
getEOFComment in interface iConfigFileiConfigFile.getEOFComment()public java.lang.String getFileName()
iConfigFile
getFileName in interface iConfigFileiConfigFile.getFileName()public float getFloat(java.lang.String Key)
iConfigFile
getFloat in interface iConfigFileKey - 
iConfigFile.getFloat(java.lang.String)
public float getFloat(java.lang.String Key,
                      float Def)
iConfigFile
getFloat in interface iConfigFileKey - Def - 
iConfigFile.getFloat(java.lang.String,
           float)public int getInt(java.lang.String Key)
iConfigFile
getInt in interface iConfigFileKey - 
iConfigFile.getInt(java.lang.String)
public int getInt(java.lang.String Key,
                  int Def)
iConfigFile
getInt in interface iConfigFileKey - Def - 
iConfigFile.getInt(java.lang.String,
           int)public java.lang.String getStr(java.lang.String Key)
iConfigFile
getStr in interface iConfigFileKey - 
iConfigFile.getStr(java.lang.String)
public java.lang.String getStr(java.lang.String Key,
                               java.lang.String Def)
iConfigFile
getStr in interface iConfigFileKey - Def - 
iConfigFile.getStr(java.lang.String,
           java.lang.String)public iVFS getVFS()
iConfigFile
getVFS in interface iConfigFileiConfigFile.getVFS()public boolean keyExists(java.lang.String Key)
iConfigFile
keyExists in interface iConfigFileKey - 
iConfigFile.keyExists(java.lang.String)public boolean load(java.lang.String iFileName)
iConfigFile
load in interface iConfigFileiFileName - 
iConfigFile.load(java.lang.String)
public boolean load(java.lang.String iFileName,
                    iVFS vfs)
iConfigFile
load in interface iConfigFileiFileName - vfs - 
iConfigFile.load(java.lang.String,
           crystalspace.jbind.interfaces.iutil.vfs.iVFS)
public boolean load(java.lang.String iFileName,
                    iVFS vfs,
                    boolean Merge)
iConfigFile
load in interface iConfigFileiFileName - vfs - Merge - 
iConfigFile.load(java.lang.String,
           crystalspace.jbind.interfaces.iutil.vfs.iVFS, boolean)
public boolean load(java.lang.String iFileName,
                    iVFS vfs,
                    boolean Merge,
                    boolean NewWins)
iConfigFile
load in interface iConfigFileiFileName - vfs - Merge - NewWins - 
iConfigFile.load(java.lang.String,
           crystalspace.jbind.interfaces.iutil.vfs.iVFS, boolean, boolean)public boolean save(java.lang.String iFileName)
iConfigFile
save in interface iConfigFileiFileName - 
iConfigFile.save(java.lang.String)
public boolean save(java.lang.String iFileName,
                    iVFS vfs)
iConfigFile
save in interface iConfigFileiFileName - vfs - 
iConfigFile.save(java.lang.String,
           crystalspace.jbind.interfaces.iutil.vfs.iVFS)public boolean save()
iConfigFile
save in interface iConfigFileiConfigFile.save()
public void setBool(java.lang.String Key,
                    boolean Value)
iConfigFile
setBool in interface iConfigFileKey - Value - iConfigFile.setBool(java.lang.String,
           boolean)
public void setComment(java.lang.String Key,
                       java.lang.String Text)
iConfigFile
setComment in interface iConfigFileKey - Text - iConfigFile.setComment(java.lang.String,
           java.lang.String)public void setEOFComment(java.lang.String Text)
iConfigFile
setEOFComment in interface iConfigFileText - iConfigFile.setEOFComment(java.lang.String)
public void setFileName(java.lang.String Name,
                        iVFS vfs)
iConfigFile
setFileName in interface iConfigFileName - vfs - iConfigFile.setFileName(java.lang.String,
           crystalspace.jbind.interfaces.iutil.vfs.iVFS)
public void setFloat(java.lang.String Key,
                     float Value)
iConfigFile
setFloat in interface iConfigFileKey - Value - iConfigFile.setFloat(java.lang.String,
           float)
public void setInt(java.lang.String Key,
                   int Value)
iConfigFile
setInt in interface iConfigFileKey - Value - iConfigFile.setInt(java.lang.String,
           int)
public void setStr(java.lang.String Key,
                   java.lang.String Val)
iConfigFile
setStr in interface iConfigFileKey - Val - iConfigFile.setStr(java.lang.String,
           java.lang.String)public boolean subsectionExists(java.lang.String Subsection)
iConfigFile
subsectionExists in interface iConfigFileSubsection - 
iConfigFile.subsectionExists(java.lang.String)
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||