X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCore%2FCommandsOverloader.hxx;fp=src%2FCore%2FCommandsOverloader.hxx;h=9f5dacac000aa692395e9eb43fbce44f30558acc;hb=a8a68e29199ed62a23e52f16b6d46ddc48a0a913;hp=4a34c834acaf14749344bf2a1289c5d167771d99;hpb=426f5da5d6ffe74e7d1c54c7321bb653d2c98ad1;p=tools%2Flibbatch.git diff --git a/src/Core/CommandsOverloader.hxx b/src/Core/CommandsOverloader.hxx index 4a34c83..9f5daca 100644 --- a/src/Core/CommandsOverloader.hxx +++ b/src/Core/CommandsOverloader.hxx @@ -35,7 +35,8 @@ #include #include -namespace Batch { +namespace Batch +{ /*! * This class is used to parametrize commands in LIBBATCH. @@ -63,7 +64,8 @@ namespace Batch { void parse(const std::string & theFilename); std::string trim(const std::string & theStr) const noexcept; - const char * isCmdFileDefined(bool & theIsDefined) const; + std::string getCmdFileName() const; + bool isCmdFileDefined() const; bool isCheckCmdsDefined() const; std::string CMD_Command(const std::string & theKey); @@ -74,8 +76,10 @@ namespace Batch { private: // Forbid the use of copy constructor and assignment operator - CommandsOverloader(const CommandsOverloader &) {} - void operator=(const CommandsOverloader &) {} + CommandsOverloader(const CommandsOverloader &) = delete; + CommandsOverloader(const CommandsOverloader &&) = delete; + void operator=(const CommandsOverloader &) = delete; + void operator=(const CommandsOverloader &&) = delete; }; }