OnixS C++ Tullett Prebon SURF Handler  1.6.1
API documentation
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 
30 namespace OnixS { namespace SURF { namespace MarketData {
31 
32 /// Alias for record fields storage.
33 typedef std::vector<FieldId> FieldIdArray;
34 typedef std::vector<FieldValue*> FieldValueArray;
35 
36 /// Record.
37 struct ONIXS_TP_SURF_EXPORT Record
38 {
39  /// Initialize new instance with default values.
40  Record(const std::string& name, const FieldIdArray& fieldIds, const FieldValueArray& fieldsMap);
41 
42  /// Type.
44 
45  /// Name.
46  const std::string& name;
47 
48  /// Record number.
50 
51  /// Collection of fields.
52  const FieldIdArray& fieldIds;
53 
54  /// Collection of fields (map field identifier to FieldValue).
55  const FieldValueArray& fieldsMap;
56 
57  /// Return time when message was received.
59 
60  /// Returns string representation.
61  std::string toString() const;
62 };
63 
64 ONIXS_TP_SURF_EXPORT std::ostream& operator<<(std::ostream&, const Record&);
65 
66 }}} // namespace OnixS::SURF::MarketData
RecordNumber rtl
Record number.
Definition: Record.h:49
Enum
Known (selected) error codes.
Definition: Defines.h:33
HighResolutionTime receivingTime
Return time when message was received.
Definition: Record.h:58
unsigned int RecordNumber
Alias for record number.
Definition: Defines.h:46
std::vector< FieldId > FieldIdArray
Alias for record fields storage.
Definition: Record.h:33
Definition: Decimal.h:28
RecordType::Enum type
Type.
Definition: Record.h:43
std::vector< FieldValue * > FieldValueArray
Definition: Record.h:34
std::ostream & operator<<(std::ostream &, const Decimal &)
const FieldIdArray & fieldIds
Collection of fields.
Definition: Record.h:52
const FieldValueArray & fieldsMap
Collection of fields (map field identifier to FieldValue).
Definition: Record.h:55
const std::string & name
Name.
Definition: Record.h:46
Miscellaneous time traits.
Definition: Time.h:86