CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csPluginPaths Class Reference
[Utilities]

Class to manage a list of plugin paths. More...

#include <syspath.h>

List of all members.

Public Methods

int AddOnce (const char *path, bool scanRecursive=false, const char *type=0, bool overrideRecursive=true)
 Add a path, but only if it isn't in the list already. More...


Detailed Description

Class to manage a list of plugin paths.

Definition at line 167 of file syspath.h.


Member Function Documentation

int csPluginPaths::AddOnce const char *    path,
bool    scanRecursive = false,
const char *    type = 0,
bool    overrideRecursive = true
[inline]
 

Add a path, but only if it isn't in the list already.

Parameters:
path  Path to add to the list.
scanRecursive  Mark the path to be scanned recursively.
overrideRecursive  If the path is already in the list, just set the 'scan recursive' flag.
Returns:
Index of path in the list.
Remarks:
Saves full native paths and uses csExpandPath() for this.
Uses csPathsIdentical() to compare paths.

Definition at line 183 of file syspath.h.

References csExpandPath, csPathsIdentical, csStrNew, csArray::Length, and csArray::Push.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14