Метод | Описание | |
---|---|---|
GeneratorError ( int warning, uint level, string err, uint line, uint col ) : int | ||
InvokeGenerator ( |
Invokes the specified generator
|
|
Progress ( uint complete, uint total ) : int | ||
RunGenerator ( string document ) : void |
Runs the generator on the current project item.
|
|
SingleFileGenerator ( |
Overloadde ctor.
|
Метод | Описание | |
---|---|---|
CanEditFile ( string documentMoniker ) : bool |
This function asks to the QueryEditQuerySave service if it is possible to edit the file.
|
|
ComputeNamespace ( string projectItemPath ) : string |
Computes the names space based on the folder for the ProjectItem. It just replaces DirectorySeparatorCharacter with "." for the directory in which the file is located.
|
|
GetBufferContents ( string fileName, IVsTextStream &srpStream ) : string |
Returns the buffer contents for a moniker.
|
|
UpdateGeneratedCodeFile ( |
This is called after the single file generator has been invoked to create or update the code file.
|
|
VerifyFileDirtyInRdt ( string document, IVsHierarchy &pHier, IVsPersistDocData &ppDocData, uint &cookie ) : bool |
Returns TRUE if open and dirty. Note that documents can be open without a window frame so be careful. Returns the DocData and doc cookie if requested
|
protected CanEditFile ( string documentMoniker ) : bool | ||
documentMoniker | string | |
Результат | bool |
protected ComputeNamespace ( string projectItemPath ) : string | ||
projectItemPath | string | |
Результат | string |
public GeneratorError ( int warning, uint level, string err, uint line, uint col ) : int | ||
warning | int | |
level | uint | |
err | string | |
line | uint | |
col | uint | |
Результат | int |
protected GetBufferContents ( string fileName, IVsTextStream &srpStream ) : string | ||
fileName | string | |
srpStream | IVsTextStream | |
Результат | string |
public InvokeGenerator ( |
||
fileNode | The node on which to invoke the generator. | |
Результат | void |
public Progress ( uint complete, uint total ) : int | ||
complete | uint | |
total | uint | |
Результат | int |
public RunGenerator ( string document ) : void | ||
document | string | |
Результат | void |
public SingleFileGenerator ( |
||
projectMgr | The associated project | |
Результат | System |
protected UpdateGeneratedCodeFile ( |
||
fileNode | The node associated to the generator | |
data | byte | data to update the file with |
size | int | size of the data |
fileName | string | Name of the file to update or create |
Результат | string |
protected VerifyFileDirtyInRdt ( string document, IVsHierarchy &pHier, IVsPersistDocData &ppDocData, uint &cookie ) : bool | ||
document | string | document path |
pHier | IVsHierarchy | hierarchy |
ppDocData | IVsPersistDocData | doc data associated with document |
cookie | uint | item cookie |
Результат | bool |