CrystalSpace

Public API Reference

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

csPluginPaths Class Reference
[Utilities]

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

#include <csutil/syspath.h>

List of all members.

Public Member Functions

size_t 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.


Detailed Description

Class to manage a list of plugin paths.

Definition at line 171 of file syspath.h.


Member Function Documentation

size_t 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.
type An arbitrary string assigning a type to the directory (i.e. "app", "crystal", etc.).
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 189 of file syspath.h.

References csExpandPath(), csPathsIdentical(), csStrNew(), csArray< T, ElementHandler, MemoryAllocator >::Length(), and csArray< T, ElementHandler, MemoryAllocator >::Push().


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