Interface ITextNCStorage
The auxiliary object that contains the output text files data and additional implements two important things:
writing into an arbitrary file location; mapping between written data and CLDATA commands, when processing which these data were written.
Inherited Members
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.SCPostprocessor.dll
Syntax
public interface ITextNCStorage : INCStorage
Methods
AppendString(string)
Adds the specified string to the end fo this storage.
Declaration
void AppendString(string s)
Parameters
Type | Name | Description |
---|---|---|
string | s | The string to write. |
CutString(INCLabel, int)
Cuts from this storage the specified count of chars starting from the position defined by the pos label. The data located after the specified number of chars will be shifted closer to the pos position.
Declaration
string CutString(INCLabel pos, int charCount)
Parameters
Type | Name | Description |
---|---|---|
INCLabel | pos | The position from which the cutting should start. |
int | charCount | The count of chars to cut. |
Returns
Type | Description |
---|---|
string | Returns an cutted string. |
PasteString(INCLabel, string)
Adds the specified string to this storage starting from the position defined by the pos label. Chars, located after the specified position, if such exist, will be shifted further (there will not be overwritten).
Declaration
void PasteString(INCLabel pos, string s)
Parameters
Type | Name | Description |
---|---|---|
INCLabel | pos | The position to which the data should be written. |
string | s | The string to write. |
ReadLine(INCLabel)
Reads from this storage the chars starting from the position defined by the pos label upto the end of line.
Declaration
string ReadLine(INCLabel pos)
Parameters
Type | Name | Description |
---|---|---|
INCLabel | pos | The position from which the reading should start. |
Returns
Type | Description |
---|---|
string | Returns a read string. |
ReadString(INCLabel, int)
Reads from this storage the specified count of chars starting from the position defined by the pos label.
Declaration
string ReadString(INCLabel pos, int charCount)
Parameters
Type | Name | Description |
---|---|---|
INCLabel | pos | The position from which the reading should start. |
int | charCount | The count of chars to read. |
Returns
Type | Description |
---|---|
string | Returns a read string. |