// Copyright 2008 Nanorex, Inc. See LICENSE file for details. #ifndef NX_COMMANDRESULT_H #define NX_COMMANDRESULT_H #ifdef WIN32 # ifdef _MSC_VER # pragma warning(disable:4786) # endif #endif #include #include namespace Nanorex { /* CLASS: NXCommandResult */ /** * Encapsulates the results of a command execution. * * @see NXNanoVisionResultCodes * @ingroup NanorexUtility */ class NXCommandResult { public: NXCommandResult(); NXCommandResult(int resId, std::vector const& prmVector) : resultId(resId), paramVector(prmVector) { } ~NXCommandResult() {} void setResult(int resultId); int getResult() const; void setParamVector(std::vector const& paramVector); const std::vector& getParamVector() const; private: int resultId; std::vector paramVector; }; } // Nanorex:: #endif