1 /******************************************************************************
2 * Copyright (c) 2000-2016 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
12 ******************************************************************************/
13 #ifndef _MODULE_VERSION_H
14 #define _MODULE_VERSION_H
25 ModuleVersion(const char* const p_productNumber,
26 unsigned int p_suffix, unsigned int p_release,
27 unsigned int p_patch, unsigned int p_build,
28 const char* const p_extra)
29 : productNumber(p_productNumber ? p_productNumber : ""),
34 extra(p_extra ? p_extra : "") {
38 bool hasProductNumber() const { return !productNumber.empty(); }
39 std::string toString() const;
41 bool operator<(const ModuleVersion& other) const;
44 std::string productNumber;