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 ******************************************************************************/
17 #include "ModuleVersion.hh"
20 std::string
ModuleVersion::toString() const {
21 std::stringstream stream
;
22 const char separator
= ' ';
23 if (!productNumber
.empty()) {
24 stream
<< productNumber
;
28 stream
<< "/" << suffix
;
31 stream
<< separator
<< 'R' << release
<< separator
32 << (char)('A' + patch
);
35 stream
<< separator
<< build
;
44 bool ModuleVersion::operator<(const ModuleVersion
& other
) const{
45 return productNumber
< other
.productNumber
46 && suffix
< other
.suffix
47 && build
< other
.build
48 && extra
< other
.extra
;
This page took 0.054966 seconds and 5 git commands to generate.