Changeset 171
- Timestamp:
- 03/21/09 17:06:44 (15 years ago)
- Location:
- vtcross/trunk/src/include/vtcross
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
vtcross/trunk/src/include/vtcross/components.h
r170 r171 205 205 */ 206 206 void GetSolution(Observable *observables); 207 void GetSolution(Observable *observables, std::stringservice);207 void GetSolution(Observable *observables, char* service); 208 208 209 209 … … 217 217 Parameter *parameters, Utility *utilities); 218 218 void ReceiveFeedback(Observable *observables, \ 219 Parameter *parameters, std::stringservice);219 Parameter *parameters, char* service); 220 220 }; 221 221 -
vtcross/trunk/src/include/vtcross/containers.h
r170 r171 14 14 15 15 #include <stdint.h> 16 #include <string>17 18 19 /* TODO initially made all of the string fields std::strings, but this might not20 * be the best end-decision. Need to evaluate our needs and figure out if21 * cstrings would do better for us. */22 16 23 17 … … 39 33 */ 40 34 struct Utility { 41 std::stringname;42 std::stringunits;43 std::stringgoal;35 char* name; 36 char* units; 37 char* goal; 44 38 float target; 45 39 float value; … … 52 46 struct Affect { 53 47 Utility *u; 54 std::stringrelation;48 char* relation; 55 49 }; 56 50 … … 60 54 */ 61 55 struct Parameter { 62 std::stringname;63 std::stringunits;56 char* name; 57 char* units; 64 58 float min; 65 59 uint32_t numAffects; … … 75 69 */ 76 70 struct Observable { 77 std::stringname;71 char* name; 78 72 Affect affection_list[10]; 79 73 uint32_t numAffects;