| 1 |
#include <pbcopper/cli2/internal/VersionPrinter.h> |
| 2 |
|
| 3 |
#include <pbcopper/cli2/Interface.h> |
| 4 |
#include <pbcopper/cli2/MultiToolInterface.h> |
| 5 |
|
| 6 |
#include <iostream> |
| 7 |
#include <ostream> |
| 8 |
|
| 9 |
namespace PacBio { |
| 10 |
namespace CLI_v2 { |
| 11 |
namespace internal { |
| 12 |
|
| 13 |
void VersionPrinter::Print(const Interface& interface) { Print(interface, std::cout); } |
| 14 |
|
| 15 |
void VersionPrinter::Print(const Interface& interface, std::ostream& out) |
| 16 |
{ |
| 17 |
out << interface.ApplicationName() << ' ' << interface.ApplicationVersion() << '\n'; |
| 18 |
} |
| 19 |
|
| 20 |
void VersionPrinter::Print(const MultiToolInterface& interface) { Print(interface, std::cout); } |
| 21 |
|
| 22 |
void VersionPrinter::Print(const MultiToolInterface& interface, std::ostream& out) |
| 23 |
{ |
| 24 |
out << interface.ApplicationName() << ' ' << interface.ApplicationVersion() << '\n'; |
| 25 |
} |
| 26 |
|
| 27 |
} // namespace internal |
| 28 |
} // namespace CLI_v2 |
| 29 |
} // namespace PacBio |