Revision 225, 0.8 KB
(checked in by trnewman, 15 years ago)
|
Cleaning up memory stuff.
|
Line | |
---|
1 | /* Virginia Tech Cognitive Radio Open Source Systems |
---|
2 | * Virginia Tech, 2009 |
---|
3 | * |
---|
4 | * TODO LICENSE INFORMATION GOES HERE |
---|
5 | */ |
---|
6 | |
---|
7 | /* TODO DESCRIPTION OF FILE. |
---|
8 | * |
---|
9 | * This file is a temporary demo of a policy engine using some of our socket |
---|
10 | * communication functions. This is *not* an actual implementation of our |
---|
11 | * defined PolicyEngine class. |
---|
12 | */ |
---|
13 | |
---|
14 | |
---|
15 | #include <cstdlib> |
---|
16 | #include <cstring> |
---|
17 | #include <stdint.h> |
---|
18 | |
---|
19 | #include "vtcross/libvtcross.h" |
---|
20 | #include "vtcross/socketcomm.h" |
---|
21 | |
---|
22 | int32_t |
---|
23 | main(int32_t argc, char *argv[]) |
---|
24 | { |
---|
25 | Observable * o = new Observable[1]; |
---|
26 | Parameter * p; |
---|
27 | |
---|
28 | o[0].name = "Test123"; |
---|
29 | o[0].value = 1243.00; |
---|
30 | |
---|
31 | p = GetOptimalParameters(o,1); |
---|
32 | |
---|
33 | printf("Application:: Received the following parameters.\n"); |
---|
34 | printf("%s:: %f\n",p[0].name.c_str(),p[0].value); |
---|
35 | |
---|
36 | delete [] p; |
---|
37 | delete [] o; |
---|
38 | |
---|
39 | return 0; |
---|
40 | } |
---|
41 | |
---|