Base Framework
testsuite/Version.cpp
/***************************************************************************
The Base Framework (Test Suite)
A framework for developing platform independent applications
See COPYRIGHT.txt for details.
This framework is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For the licensing terms refer to the file 'LICENSE'.
***************************************************************************/
#include <base/Application.h>
#include <base/string/FormatOutputStream.h>
#include <base/Version.h>
using namespace com::azure::dev::base;
class VersionApplication : public Application {
private:
static const unsigned int MAJOR_VERSION = 1;
static const unsigned int MINOR_VERSION = 0;
public:
VersionApplication()
: Application("Version")
{
}
void main()
{
fout << getFormalName() << " version "
<< MAJOR_VERSION << '.' << MINOR_VERSION << EOL
<< "The Base Framework (Test Suite)" << EOL
<< EOL
<< Version().getBanner() << ENDL;
}
};
APPLICATION_STUB(VersionApplication);
Version
Component information.
Definition: Version.h:29
Version::getBanner
virtual String getBanner() const noexcept
Application
Application.
Definition: Application.h:53