Show
Ignore:
Timestamp:
03/21/09 17:06:46 (15 years ago)
Author:
bhilburn
Message:

The cstring experiment failed. Heading back to std::strings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vtcross/trunk/src/include/vtcross/containers.h

    r171 r173  
    1414 
    1515#include <stdint.h> 
     16#include <string> 
    1617 
    1718 
     
    3334 */ 
    3435struct Utility { 
    35     char* name; 
    36     char* units; 
    37     char* goal; 
     36    std::string name; 
     37    std::string units; 
     38    std::string goal; 
    3839    float target; 
    3940    float value; 
     
    4647struct Affect { 
    4748    Utility *u; 
    48     char* relation; 
     49    std::string relation; 
    4950}; 
    5051 
     
    5455 */ 
    5556struct Parameter { 
    56     char* name; 
    57     char* units; 
     57    std::string name; 
     58    std::string units; 
    5859    float min; 
    5960    uint32_t numAffects; 
     
    6970 */ 
    7071struct Observable { 
    71     char* name; 
     72    std::string name; 
    7273    Affect affection_list[10]; 
    7374    uint32_t numAffects;