blob: d8f54e6e632981682eccd26cba4ccf9a48cf225d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// 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 <vector>
#include <QString>
namespace Nanorex {
/* CLASS: NXCommandResult */
/**
* Encapsulates the results of a command execution.
*
* @see NXNanoVisionResultCodes
* @ingroup NanorexUtility
*/
class NXCommandResult {
public:
NXCommandResult();
NXCommandResult(int resId, std::vector<QString> const& prmVector)
: resultId(resId), paramVector(prmVector) { }
~NXCommandResult() {}
void setResult(int resultId);
int getResult() const;
void setParamVector(std::vector<QString> const& paramVector);
const std::vector<QString>& getParamVector() const;
private:
int resultId;
std::vector<QString> paramVector;
};
} // Nanorex::
#endif
|