1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2015 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
8 #ifndef _MODULE_VERSION_H
9 #define _MODULE_VERSION_H
20 ModuleVersion(const char* const p_productNumber,
21 unsigned int p_suffix, unsigned int p_release,
22 unsigned int p_patch, unsigned int p_build,
23 const char* const p_extra)
24 : productNumber(p_productNumber ? p_productNumber : ""),
29 extra(p_extra ? p_extra : "") {
33 bool hasProductNumber() const { return !productNumber.empty(); }
34 std::string toString() const;
36 bool operator<(const ModuleVersion& other) const;
39 std::string productNumber;