IGLib 1.4
The IGLib base library for development of numerical, technical and business applications.
|
Interface for all implementations of read-only character buffer. Classes that implement this interface are used e.g. in string parsing and output data formatters. More...
Public Member Functions | |
int | EnsureCapacity (int minCapacity) |
Ensures that the buffer's current capacity is at least the specified number of bytes. | |
string | ToString () |
Saves buffer contents to string and returns it. | |
void | Save (string filePath, bool append) |
Saves buffer contents to a text file. | |
void | Save (string filePath) |
Saves buffer contents to a text file. If the file already exists then it is overwritten. | |
Properties | |
int | Length [get, set] |
Current length of the buffer or object represented by the buffer. | |
int | Capacity [get, set] |
Buffer current capacity. | |
char | this [int index] [get] |
Character with the specified index. |
Interface for all implementations of read-only character buffer. Classes that implement this interface are used e.g. in string parsing and output data formatters.
$A Igor Feb09;
int IG::Lib::ICharacterBufferReadOnly::EnsureCapacity | ( | int | minCapacity | ) |
Ensures that the buffer's current capacity is at least the specified number of bytes.
minCapacity | Minimal capacity to be ensured. |
Implemented in IG::Lib::CharacterBuffer.
string IG::Lib::ICharacterBufferReadOnly::ToString | ( | ) |
Saves buffer contents to string and returns it.
Implemented in IG::Lib::CharacterBuffer.
void IG::Lib::ICharacterBufferReadOnly::Save | ( | string | filePath, |
bool | append | ||
) |
Saves buffer contents to a text file.
filePath | Path of the file where buffer is stored. |
append | Whether the file is appended. If true and if the file already exists then buffer contents are appended at the end of the file. |
Implemented in IG::Lib::CharacterBuffer.
void IG::Lib::ICharacterBufferReadOnly::Save | ( | string | filePath | ) |
Saves buffer contents to a text file. If the file already exists then it is overwritten.
filePath | Path of the file where buffer is stored. |
Implemented in IG::Lib::CharacterBuffer.
int IG::Lib::ICharacterBufferReadOnly::Length [get, set] |
Current length of the buffer or object represented by the buffer.
Implemented in IG::Lib::CharacterBuffer.
int IG::Lib::ICharacterBufferReadOnly::Capacity [get, set] |
Buffer current capacity.
Implemented in IG::Lib::CharacterBuffer.
char IG::Lib::ICharacterBufferReadOnly::this[int index] [get] |
Character with the specified index.
Implemented in IG::Lib::ICharacterBuffer, and IG::Lib::CharacterBuffer.