ISolution Interface Reference

Solution interface. More...

Inheritance diagram for ISolution:
IExternalAssemblyOwner IFileOwner

List of all members.

Public Member Functions

void addExternalAssemblyModules (IExternalAssemblyModule[] modules, bool parse, LoadExternalAssemblyModule2Delegate callback)
 Add external assembly modules to solution.
void addExternalAssemblies (params IExternalAssembly[] assemblies)
 Add external assemblies to solution.
IExternalAssembly[] getExternalAssemblies ()
 Get external assemblies.
void removeExternalAssemblies (params IExternalAssembly[] assemblies)
 Remove external assemblies from solution.
void addProjects (params IProject[] projects)
 Attach projects to solution.
IProject[] getProjects ()
 Get projects.
void removeProjects (params IProject[] projects)
 Detach project from solution.
void setPath (string path)
 Set path.
string getPath ()
 Get path.
void clear ()
 Remove all generated nodes and entities.
void parse ()
 Generate nodes and entities.
void setBuildEntityModel (bool flag)
 Set build entity model flag.
bool getBuildEntityModel ()
 Get build entity model flag.
CsEntityNamespace getNamespace ()
 Get solution namespace.
void setErrorMessageCallback (ErrorMessageDelegate d)
 Set error message callback.
void setLogMessageCallback (LogMessageDelegate d)
 Set log message callback.
bool loadSlnFile (string path, char[] buffer, ISolutionCallback callback, project_namespace pn)
 Load sln-file.
ISlnFileConfiguration[] getSlnFileConfigurations ()
 Returns solution file configurations.
bool applyConfiguration (string configuration, string platform, ISolutionCallback callback, bool shareAssemblies, AssemblyTypeMapping assemblyTypeMapping)
 Applying solution configuration.

Detailed Description

Solution interface.


Member Function Documentation

void addExternalAssemblies ( params IExternalAssembly[]  assemblies)

Add external assemblies to solution.

Implements IExternalAssemblyOwner.

void addExternalAssemblyModules ( IExternalAssemblyModule[]  modules,
bool  parse,
LoadExternalAssemblyModule2Delegate  callback 
)

Add external assembly modules to solution.

Implements IExternalAssemblyOwner.

void addProjects ( params IProject[]  projects)

Attach projects to solution.

bool applyConfiguration ( string  configuration,
string  platform,
ISolutionCallback  callback,
bool  shareAssemblies,
AssemblyTypeMapping  assemblyTypeMapping 
)

Applying solution configuration.

Parameters:
configurationSolution configuration, Debug or Release for example
platformSolution platform, Any CPU, x86 or x64 for example
loadTextFileDelegateCallback for loading text files
loadExternalAssemblyModule2DelegateCallback for loading assemblies
propertyEvaluatorDelegateCallback for evaluating values in project files
betterAssemblyDelegateCallback for choosing better assembly
shareAssembliesShare assemblies between projects (recommended set to true)
assemblyTypeMappingType mapping option
Returns:
void clear ( )

Remove all generated nodes and entities.

bool getBuildEntityModel ( )

Get build entity model flag.

IExternalAssembly [] getExternalAssemblies ( )

Get external assemblies.

Implements IExternalAssemblyOwner.

CsEntityNamespace getNamespace ( )

Get solution namespace.

string getPath ( )

Get path.

Implements IExternalAssemblyOwner.

IProject [] getProjects ( )

Get projects.

ISlnFileConfiguration [] getSlnFileConfigurations ( )

Returns solution file configurations.

Returns:
bool loadSlnFile ( string  path,
char[]  buffer,
ISolutionCallback  callback,
project_namespace  pn 
)

Load sln-file.

Parameters:
pathsln-file path
buffersln-file binaries
loadTextFileDelegateLoad C# file callback
loadExternalAssemblyModule2DelegateLoas external assembly callback
pnproject/namespace solution flag
Returns:
void parse ( )

Generate nodes and entities.

void removeExternalAssemblies ( params IExternalAssembly[]  assemblies)

Remove external assemblies from solution.

Implements IExternalAssemblyOwner.

void removeProjects ( params IProject[]  projects)

Detach project from solution.

void setBuildEntityModel ( bool  flag)

Set build entity model flag.

void setErrorMessageCallback ( ErrorMessageDelegate  d)

Set error message callback.

void setLogMessageCallback ( LogMessageDelegate  d)

Set log message callback.

void setPath ( string  path)

Set path.

© 2010 metaspec