OnixS C++ Eurex T7 Market and Reference Data Interface (EMDI, RDI, EOBI) Handlers  7.4.3
API documentation
Utils.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 part
13 * of this source code or associated reference material to any other location for further reproduction
14 * or redistribution, and any amendments to this copyright notice, are expressly prohibited.
15 *
16 * Any reproduction or redistribution for sale or hiring of the Software not in accordance with
17 * the terms of the Agreement is a violation of copyright law.
18 */
19 #pragma once
20 
21 #include <OnixS/Core/Time/DateTime.h>
22 #include <OnixS/Core/Time/Operators.h>
23 #include <OnixS/Core/Text/Operators.h>
24 
25 #include <OnixS/HandlerCore/FeedEngine/Time.h>
26 #include <OnixS/HandlerCore/FeedEngine/NetFeedAttributes.h>
27 
29 
30 
31 namespace OnixS {
32 namespace Eurex {
33 namespace MarketData {
34 
36 {
37 public:
38  static Timestamp convert(const OnixS::Time::DateTime& time);
39  static OnixS::Time::DateTime convert(const Timestamp& time);
40  static Timestamp createTimestamp(long long totalSeconds, int subseconds);
41  static Time::TimeSpan toTimeSpan(HandlerCore::MarketData::FE::TimeSpan::Ticks ticks);
42  static Timestamp convert(const HandlerCore::MarketData::FE::Timestamp& value);
43 };
44 
45 std::string removeInvalidTemplateNodes(std::string xml, const std::string& node);
46 
47 bool checkXmlVersion(
48  const std::string& filename,
49  std::string& detectedVersion,
50  UInt32 expectedXmlMajorVersion,
51  UInt32 expectedEmlMinorVersion);
52 
53 DataSource::Origin feedRole2Origin(OnixS::HandlerCore::MarketData::FE::NetFeedRole::Enum value);
54 
55 }}}
DataSource::Origin feedRole2Origin(OnixS::HandlerCore::MarketData::FE::NetFeedRole::Enum value)
Definition: Utils.cpp:159
static Timestamp createTimestamp(long long totalSeconds, int subseconds)
Definition: Utils.cpp:185
unsigned int UInt32
Definition: Numeric.h:41
Definition: Defines.h:30
Represents timestamp without time-zone information.
Definition: Timestamp.h:80
bool checkXmlVersion(const std::string &filename, std::string &detectedVersion, UInt32 expectedXmlMajorVersion, UInt32 expectedEmlMinorVersion)
Definition: Utils.cpp:37
static Timestamp convert(const OnixS::Time::DateTime &time)
Definition: Utils.cpp:169
std::string removeInvalidTemplateNodes(std::string xml, const std::string &node)
Definition: Utils.cpp:121
static Time::TimeSpan toTimeSpan(HandlerCore::MarketData::FE::TimeSpan::Ticks ticks)
Definition: Utils.cpp:190