Can use JSON parser directly from library without requiring a dali
application. If the writer is used to write to stdout, then the output
is 'corrupted' by having the library version numbers within it. It is
better instead to report the version numbers on stderr (Better still
to log them, rather than using stream).
Change-Id: Ie1cb6b1e3cc04a6e4f643ed4d6336f33b2e025f0
{
PrintVersion()
{
- std::cout << "DALi Toolkit: " << TOOLKIT_MAJOR_VERSION << "." << TOOLKIT_MINOR_VERSION << "." << TOOLKIT_MICRO_VERSION << " (" << TOOLKIT_BUILD_DATE << ")" << std::endl;
+ std::cerr << "DALi Toolkit: " << TOOLKIT_MAJOR_VERSION << "." << TOOLKIT_MINOR_VERSION << "." << TOOLKIT_MICRO_VERSION << " (" << TOOLKIT_BUILD_DATE << ")" << std::endl;
}
};
PrintVersion TOOLKIT_VERSION;