[mareframe] Annotation of /trunk/gadget/netdata.cc
Annotation of /trunk/gadget/netdata.cc
Parent Directory
| Revision Log
Revision 1 -
(view)
(download)
1 : |
agomez |
1 |
#include "netdata.h" |
2 : |
|
|
#include "gadget.h" |
3 : |
|
|
|
4 : |
|
|
NetDataVariables::NetDataVariables(int numVar) {
|
5 : |
|
|
tag = -1;
|
6 : |
|
|
x_id = -1;
|
7 : |
|
|
if (numVar < 1) {
|
8 : |
|
|
cerr << "Error in netdata - number of variables must be positive\n";
|
9 : |
|
|
exit(EXIT_FAILURE);
|
10 : |
|
|
}
|
11 : |
|
|
x = new double[numVar];
|
12 : |
|
|
}
|
13 : |
|
|
|
14 : |
|
|
NetDataVariables::~NetDataVariables() {
|
15 : |
|
|
delete[] x;
|
16 : |
|
|
}
|
17 : |
|
|
|
18 : |
|
|
NetDataResult::NetDataResult() {
|
19 : |
|
|
}
|
20 : |
|
|
|
21 : |
|
|
NetDataResult::~NetDataResult() {
|
22 : |
|
|
}
|
|