summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/src/Utility/NXCommandResult.cpp
blob: f487d73716adddf7020e80bbeaf054466420a355 (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
// Copyright 2008 Nanorex, Inc.  See LICENSE file for details.

#include "Nanorex/Utility/NXCommandResult.h"

namespace Nanorex {


/* CONSTRUCTOR */
NXCommandResult::NXCommandResult() {
	resultId = -2;	// -2 is the code for "No code set"
}


/* ACCESSORS */
/** Sets the result code for this result. */
void NXCommandResult::setResult(int resultId) { this->resultId = resultId; }
/** Returns the result code for this result. */
int NXCommandResult::getResult() const { return resultId; }

/** Sets the vector of additional explanatory data for this result. */
void NXCommandResult::setParamVector(std::vector<QString> const& paramVector) {
	this->paramVector = paramVector;
}
/** Returns the vector of additional explanatory data for this result. */
const std::vector<QString>& NXCommandResult::getParamVector() const {
	return paramVector;
}


} // Nanorex::