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 ///////////////////////////////////////////////////////////////////////////////
12 #include "ModuleVersion.hh"
15 std::string
ModuleVersion::toString() const {
16 std::stringstream stream
;
17 const char separator
= ' ';
18 if (!productNumber
.empty()) {
19 stream
<< productNumber
;
23 stream
<< "/" << suffix
;
26 stream
<< separator
<< 'R' << release
<< separator
27 << (char)('A' + patch
);
30 stream
<< separator
<< build
;
39 bool ModuleVersion::operator<(const ModuleVersion
& other
) const{
40 return productNumber
< other
.productNumber
41 && suffix
< other
.suffix
42 && build
< other
.build
43 && extra
< other
.extra
;
This page took 0.06722 seconds and 5 git commands to generate.