VAVersion.cpp 911 Bytes
Newer Older
1 2 3 4 5 6
/*
 *  --------------------------------------------------------------------------------------------
 *
 *    VVV        VVV A           Virtual Acoustics (VA) | http://www.virtualacoustics.org
 *     VVV      VVV AAA          Licensed under the Apache License, Version 2.0
 *      VVV    VVV   AAA
7
 *       VVV  VVV     AAA        Copyright 2015-2020
8 9 10 11 12 13
 *        VVVVVV       AAA       Institute of Technical Acoustics (ITA)
 *         VVVV         AAA      RWTH Aachen University
 *
 *  --------------------------------------------------------------------------------------------
 */

14
#include <VAVersion.h>
Jonas Stienen's avatar
Jonas Stienen committed
15 16 17

#include <sstream>

18
std::string CVAVersionInfo::ToString() const
19
{
20
	// Output formatting: "VACore 1.24 [FLAGS] (COMMENT)"
Jonas Stienen's avatar
Jonas Stienen committed
21 22 23 24 25 26
	std::stringstream ss;
	ss << "VACore " << sVersion;
	if (!sFlags.empty()) ss << " [" << sFlags << "]";
	if (!sComments.empty()) ss << " (" << sComments << ")";
	return ss.str();
}