Public Member Functions | |
| SearchPath () | |
| Constructs a SearchPath object. No default paths are added (You might want to consider using SearchPath(".") instead to include the current directory.). | |
| SearchPath (params string[] array) | |
| Constructs a SearchPath object, and adds all the paths specified to the list of paths to search. | |
| SearchPath (int levels, params string[] array) | |
| Constructs a SearchPath object, and adds all the paths specified to the list of paths to search, as well as subdirectories up to the level specified. | |
| void | Add (string item, int levels) |
| Recursively adds the specified directory, and all subdirectories up to the specified number of levels deep. | |
| string | FindFileName (string filename) |
| Searches through all directories in the SearchPath object for the specified filename. The search is performed in the order directories have been added, and the first result is returned. If no file is found, null is returned. | |
| ICollection< string > | GetAllFiles () |
| Gets all files in all paths. | |
| ICollection< string > | GetAllFiles (string searchPattern) |
| Gets all files in all paths that match the specified search pattern. | |
| override string | ToString () |
| Provides debugging information. | |
| void | Add (string item) |
| Adds a search path to the list. | |
| void | Clear () |
| Clears all search paths from the list. | |
| bool | Contains (string item) |
| Checks to see if the given path is already in the list. | |
| void | CopyTo (string[] array, int arrayIndex) |
| Copies the list of paths to an array. | |
| bool | Remove (string item) |
| Removes an item from the search path list. | |
| IEnumerator< string > | GetEnumerator () |
| Gets an IEnumerator<string> object for iterating through the search paths. | |
Properties | |
| int | Count [get] |
| Gets how many search paths are listed here. | |
| string | this [int index] [get, set] |
| Returns a search path at a given index. | |
| AgateLib.Utility.SearchPath.SearchPath | ( | ) |
Constructs a SearchPath object. No default paths are added (You might want to consider using SearchPath(".") instead to include the current directory.).
| AgateLib.Utility.SearchPath.SearchPath | ( | params string[] | array | ) |
Constructs a SearchPath object, and adds all the paths specified to the list of paths to search.
| array | A comma delimited list of strings. |
| AgateLib.Utility.SearchPath.SearchPath | ( | int | levels, | |
| params string[] | array | |||
| ) |
Constructs a SearchPath object, and adds all the paths specified to the list of paths to search, as well as subdirectories up to the level specified.
| levels | How many subdirectories each to add. | |
| array | A comma delimited list of strings. |
| void AgateLib.Utility.SearchPath.Add | ( | string | item | ) |
Adds a search path to the list.
| item |
| void AgateLib.Utility.SearchPath.Add | ( | string | item, | |
| int | levels | |||
| ) |
Recursively adds the specified directory, and all subdirectories up to the specified number of levels deep.
| item | ||
| levels |
| void AgateLib.Utility.SearchPath.Clear | ( | ) |
Clears all search paths from the list.
| bool AgateLib.Utility.SearchPath.Contains | ( | string | item | ) |
Checks to see if the given path is already in the list.
| item |
| void AgateLib.Utility.SearchPath.CopyTo | ( | string[] | array, | |
| int | arrayIndex | |||
| ) |
Copies the list of paths to an array.
| array | ||
| arrayIndex |
| string AgateLib.Utility.SearchPath.FindFileName | ( | string | filename | ) |
Searches through all directories in the SearchPath object for the specified filename. The search is performed in the order directories have been added, and the first result is returned. If no file is found, null is returned.
| filename | Filename to search for. |
| ICollection<string> AgateLib.Utility.SearchPath.GetAllFiles | ( | string | searchPattern | ) |
Gets all files in all paths that match the specified search pattern.
| searchPattern |
| ICollection<string> AgateLib.Utility.SearchPath.GetAllFiles | ( | ) |
Gets all files in all paths.
| IEnumerator<string> AgateLib.Utility.SearchPath.GetEnumerator | ( | ) |
Gets an IEnumerator<string> object for iterating through the search paths.
| bool AgateLib.Utility.SearchPath.Remove | ( | string | item | ) |
Removes an item from the search path list.
| item |
| override string AgateLib.Utility.SearchPath.ToString | ( | ) |
Provides debugging information.
int AgateLib.Utility.SearchPath.Count [get] |
Gets how many search paths are listed here.
string AgateLib.Utility.SearchPath.this[int index] [get, set] |
Returns a search path at a given index.
| index |
|
AgateLib Awesome Game and Tool Engine Library |
|