OnixS C++ Tullett Prebon SURF Handler 1.6.1
API documentation
Loading...
Searching...
No Matches
Record.h
Go to the documentation of this file.
1/*
2 * Copyright Onix Solutions Limited [OnixS]. All rights reserved.
3 *
4 * This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
5 * and international copyright treaties.
6 *
7 * Access to and use of the software is governed by the terms of the applicable ONIXS Software
8 * Services Agreement (the Agreement) and Customer end user license agreements granting
9 * a non-assignable, non-transferable and non-exclusive license to use the software
10 * for it's own data processing purposes under the terms defined in the Agreement.
11 *
12 * Except as otherwise granted within the terms of the Agreement, copying or reproduction of any
13 * part of this source code or associated reference material to any other location for further
14 * reproduction or redistribution, and any amendments to this copyright notice, are expressly
15 * prohibited.
16 *
17 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
18 * the terms of the Agreement is a violation of copyright law.
19 */
20
21#pragma once
22
24#include <OnixS/SURF/MarketData/Export.h>
27
28#include <vector>
29
30namespace OnixS { namespace SURF { namespace MarketData {
31
33typedef std::vector<FieldId> FieldIdArray;
34typedef std::vector<FieldValue*> FieldValueArray;
35
37struct ONIXS_TP_SURF_EXPORT Record
38{
40 Record(const std::string& name, const FieldIdArray& fieldIds, const FieldValueArray& fieldsMap);
41
44
46 const std::string& name;
47
50
53
56
59
61 std::string toString() const;
62};
63
64ONIXS_TP_SURF_EXPORT std::ostream& operator<<(std::ostream&, const Record&);
65
66}}} // namespace OnixS::SURF::MarketData
Miscellaneous time traits.
Definition Time.h:87
std::vector< FieldValue * > FieldValueArray
Definition Record.h:34
std::ostream & operator<<(std::ostream &, const Decimal &)
unsigned int RecordNumber
Alias for record number.
Definition Defines.h:46
std::vector< FieldId > FieldIdArray
Alias for record fields storage.
Definition Record.h:33
Enum
Known (selected) error codes.
Definition Defines.h:34
const std::string & name
Name.
Definition Record.h:46
std::string toString() const
Returns string representation.
HighResolutionTime receivingTime
Return time when message was received.
Definition Record.h:58
const FieldValueArray & fieldsMap
Collection of fields (map field identifier to FieldValue).
Definition Record.h:55
const FieldIdArray & fieldIds
Collection of fields.
Definition Record.h:52
RecordType::Enum type
Type.
Definition Record.h:43
Record(const std::string &name, const FieldIdArray &fieldIds, const FieldValueArray &fieldsMap)
Initialize new instance with default values.
RecordNumber rtl
Record number.
Definition Record.h:49