dxFeed .Net API
5.13.0
dxFeed .Net API library intended to provide market data access for DX clients
|
Composer for Instrument Profile Simple File Format. Please see Instrument Profile Format documentation for complete description. More...
Public Member Functions | |
InstrumentProfileComposer (Stream outStream) | |
Creates a new instrument profile composer. More... | |
void | Dispose () |
Dispose object. More... | |
void | Compose (IList< InstrumentProfile > profiles, bool skipRemoved) |
Atomically captures profile types to work correctly when profile type is being changed concurrently, otherwise, the method is not thread-safe. More... | |
void | ComposeNewLine () |
Writes a new line. More... | |
void | ComposeFlush () |
Writes FLUSH command More... | |
void | ComposeComplete () |
Writes COMPLETE command. More... | |
Private Member Functions | |
void | CaptureTypes (IList< InstrumentProfile > profiles) |
void | WriteFormats (IList< InstrumentProfile > profiles, bool skipRemoved) |
Writes formats from list. More... | |
void | WriteFormat (string type) |
Writes format. More... | |
void | WriteProfiles (IList< InstrumentProfile > profiles, bool skipRemoved) |
Writes profiles from list. More... | |
void | WriteProfile (string type, InstrumentProfile ip) |
Write profile. More... | |
Private Attributes | |
Dictionary< string, HashSet< InstrumentProfileField > > | enumFormats = new Dictionary<string, HashSet<InstrumentProfileField>>() |
Dictionary< string, HashSet< string > > | customFormats = new Dictionary<string, HashSet<string>>() |
List< string > | types = new List<string>() |
CSVWriter | writer |
Static Private Attributes | |
static readonly InstrumentProfileField [] | fields = InstrumentProfileField.Values |
static readonly string | REMOVED_TYPE = InstrumentProfileType.REMOVED.Name |
Composer for Instrument Profile Simple File Format. Please see Instrument Profile Format documentation for complete description.
|
inline |
Creates a new instrument profile composer.
outStream |
System.ArgumentNullException | |
System.ArgumentException |
|
inlineprivate |
|
inline |
Atomically captures profile types to work correctly when profile type is being changed concurrently, otherwise, the method is not thread-safe.
profiles | List of instrument profiles. |
skipRemoved | When skipRemoved == true, it ignores removed instruments when composing. |
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
System.InvalidOperationException | Can't format certain profile. |
|
inline |
Writes COMPLETE command.
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
|
inline |
Writes FLUSH command
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
|
inline |
Writes a new line.
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
|
inline |
Dispose object.
System.IO.IOException | If an I/O error occurs. |
|
inlineprivate |
Writes format.
type |
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
|
inlineprivate |
Writes formats from list.
profiles | |
skipRemoved |
System.ArgumentException | If attempt to write record without fields was made. |
System.IO.IOException | If an I/O error occurs. |
System.InvalidOperationException | Can't format profile field. |
|
inlineprivate |
Write profile.
type | |
ip |
System.InvalidOperationException | Can't format certain profile. |
System.IO.IOException | If an I/O error occurs. |
|
inlineprivate |
Writes profiles from list.
profiles | |
skipRemoved |
System.InvalidOperationException | Can't format certain profile. |
System.IO.IOException | If an I/O error occurs. |
|
private |
|
private |
|
staticprivate |
|
staticprivate |
|
private |
|
private |