# HG changeset patch # User František Kučera # Date 1534185531 -7200 # Node ID 1f7b203fceab89d5ef1ae0bfe5109522ca6c348c # Parent a18b6964d30093913084ee189b801ed686a3155a move RelpipeCLIException.h from relpipe-in-cli to relpipe-lib-cli diff -r a18b6964d300 -r 1f7b203fceab RelpipeCLIException.h --- a/RelpipeCLIException.h Mon Aug 13 20:31:09 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -#pragma once - -#include - -#include - -using namespace std; - -namespace relpipe { -namespace cli { - -/** - * TODO: move to relpipe-lib-cli (a common header-only library) - */ -class RelpipeCLIException { -private: - wstring message; - int exitCode = CLI::EXIT_CODE_UNEXPECTED_ERROR; -public: - - RelpipeCLIException(wstring message, int exitCode) : - message(message), exitCode(exitCode) { - } - - wstring getMessge() { - return message; - } - - int getExitCode() { - return exitCode; - } - -}; - -} -} \ No newline at end of file diff -r a18b6964d300 -r 1f7b203fceab StdInCommand.h --- a/StdInCommand.h Mon Aug 13 20:31:09 2018 +0200 +++ b/StdInCommand.h Mon Aug 13 20:38:51 2018 +0200 @@ -10,9 +10,9 @@ #include #include +#include #include "Command.h" -#include "RelpipeCLIException.h" namespace relpipe { namespace in { diff -r a18b6964d300 -r 1f7b203fceab nbproject/configurations.xml --- a/nbproject/configurations.xml Mon Aug 13 20:31:09 2018 +0200 +++ b/nbproject/configurations.xml Mon Aug 13 20:38:51 2018 +0200 @@ -7,7 +7,6 @@ ArgumentsCommand.h Command.h DemoCommand.h - RelpipeCLIException.h StdInCommand.h - - @@ -103,8 +100,6 @@ - - diff -r a18b6964d300 -r 1f7b203fceab relpipe-in-cli.cpp --- a/relpipe-in-cli.cpp Mon Aug 13 20:31:09 2018 +0200 +++ b/relpipe-in-cli.cpp Mon Aug 13 20:38:51 2018 +0200 @@ -7,8 +7,8 @@ #include #include +#include -#include "RelpipeCLIException.h" #include "Command.h" #include "ArgumentsCommand.h" #include "DemoCommand.h"