OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
Version.h
Go to the documentation of this file.
1#pragma once
2/*
3* Copyright Onix Solutions Limited [OnixS]. All rights reserved.
4*
5* This software owned by Onix Solutions Limited [OnixS] and is protected by copyright law
6* and international copyright treaties.
7*
8* Access to and use of the software is governed by the terms of the applicable OnixS Software
9* Services Agreement (the Agreement) and Customer end user license agreements granting
10* a non-assignable, non-transferable and non-exclusive license to use the software
11* for it's own data processing purposes under the terms defined in the Agreement.
12*
13* Except as otherwise granted within the terms of the Agreement, copying or reproduction of any part
14* of this source code or associated reference material to any other location for further reproduction
15* or redistribution, and any amendments to this copyright notice, are expressly 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#include <OnixS/FIXEngine/ABI.h>
22
23#include <iosfwd>
24#include <string>
25
26namespace OnixS {
27namespace FIX {
29typedef unsigned short VersionComponent;
30
36{
37public:
44
47
50
53
56
58 bool operator ==(const Version &) const;
59
61 bool operator !=(const Version &) const;
62
64 bool operator <(const Version &) const;
65
67 bool operator >(const Version &) const;
68
70 void toString(std::string &) const;
71
73 std::string toString() const;
74
77 static bool parse(const char *, size_t, Version &);
78
80 static Version current();
81
82private:
83 VersionComponent major_;
84 VersionComponent minor_;
85 VersionComponent improvement_;
86 VersionComponent build_;
87};
88
89ONIXS_FIXENGINE_API std::ostream & operator<<(std::ostream &, Version const &);
90}
91}
#define ONIXS_FIXENGINE_API
Definition ABI.h:45
Identifies the version of the product.
Definition Version.h:36
VersionComponent improvement() const
The 'improvement' component of the version.
std::string toString() const
Serializes into the point-separated presentation.
static bool parse(const char *, size_t, Version &)
Extracts the version from the point-separated presentation.
VersionComponent majorNumber() const
The 'major' component of the version.
VersionComponent build() const
The 'build number' component of the version.
VersionComponent minorNumber() const
The 'minor' component of the version.
void toString(std::string &) const
Serializes into the point-separated presentation.
static Version current()
Identifies the current version of the product.
Version(VersionComponent majorNumber, VersionComponent minorNumber, VersionComponent improvement, VersionComponent build)
Initializes instances from all the components.
ONIXS_FIXENGINE_API std::ostream & operator<<(std::ostream &os, const Group &group)
Stream output.
unsigned short VersionComponent
Alias for the numeric component of the version.
Definition Version.h:29