Pico.SourceFileSet Class Reference

Detailed Description

Holds a set of source files.

Public Member Functions

 SourceFileSet (string basePath)
 Creates a source file set with the given base path. This path is only used during CopyTo. More...
 
bool IsIgnored (string name)
 Is the file/directory with the given name ignored? More...
 
void Ignore (string name)
 Ignores the given file/directory name. E.g. "Editor" will ignore all folders called editor. More...
 
void Add (string[] paths)
 Adds a set of files/directories to this set. More...
 
void Add (string basePath)
 Adds a file/directory to this set. More...
 
bool CopyTo (string path)
 Copies all files in this set to the given target location. Note that all paths in this set will first have BasePath remove from them.</sumamry> More...
 
void Delete ()
 Deletes all files in this set. Should be used with caution of course! Do note that this precompiler copies all source files first. More...
 
string[] ToArray ()
 Gets an array of files. More...
 
string[] ToSourceArray ()
 Reads all files into a set of source code. More...
 

Public Attributes

string BasePath
 The part of the path we strip off when copying this file set elsewhere. More...
 
List< string > Files =new List<string>()
 
List< string > Ignores =new List<string>()
 

Constructor & Destructor Documentation

Pico.SourceFileSet.SourceFileSet ( string  basePath)
inline

Creates a source file set with the given base path. This path is only used during CopyTo.

Member Function Documentation

void Pico.SourceFileSet.Add ( string[]  paths)
inline

Adds a set of files/directories to this set.

void Pico.SourceFileSet.Add ( string  basePath)
inline

Adds a file/directory to this set.

bool Pico.SourceFileSet.CopyTo ( string  path)
inline

Copies all files in this set to the given target location. Note that all paths in this set will first have BasePath remove from them.</sumamry>

void Pico.SourceFileSet.Delete ( )
inline

Deletes all files in this set. Should be used with caution of course! Do note that this precompiler copies all source files first.

void Pico.SourceFileSet.Ignore ( string  name)
inline

Ignores the given file/directory name. E.g. "Editor" will ignore all folders called editor.

bool Pico.SourceFileSet.IsIgnored ( string  name)
inline

Is the file/directory with the given name ignored?

string [] Pico.SourceFileSet.ToArray ( )
inline

Gets an array of files.

string [] Pico.SourceFileSet.ToSourceArray ( )
inline

Reads all files into a set of source code.

Member Data Documentation

string Pico.SourceFileSet.BasePath

The part of the path we strip off when copying this file set elsewhere.

List<string> Pico.SourceFileSet.Files =new List<string>()
List<string> Pico.SourceFileSet.Ignores =new List<string>()