Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 11, 2008, 3:29:16 AM (17 years ago)
Author:
landauf
Message:

config-values are working again, now with a totally reworked ConfigValueContainer using MultiTypes (this commit is just a bugfix, the major work was done before, see r792)

added << operator to std::ostream for all MultiTypes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core/src/orxonox/objects/test3.cc

    r793 r797  
    5151        SetConfigValue(value_bool_, 1);
    5252        SetConfigValue(value_string_, "This is a test");
    53 //        SetConfigValue(value_constchar_, "This is another test");
     53        SetConfigValue(value_constchar_, "This is another test");
    5454        SetConfigValue(value_vector2_, Vector2(101, 202));
    5555        SetConfigValue(value_vector3_, Vector3(13, 26, 39));
     
    6363    void Test3::configOutput()
    6464    {
    65         std::cout << this->value_int_ << std::endl;
    66         std::cout << this->value_uint_ << std::endl;
    67         std::cout << (int)this->value_char_ << std::endl;
    68         std::cout << (int)this->value_uchar_ << std::endl;
    69         std::cout << this->value_float_ << std::endl;
    70         std::cout << this->value_double_ << std::endl;
    71         std::cout << this->value_bool_ << std::endl;
    72         std::cout << this->value_string_ << std::endl;
    73         std::cout << this->value_constchar_ << std::endl;
    74         std::cout << this->value_vector2_ << std::endl;
    75         std::cout << this->value_vector3_ << std::endl;
    76         std::cout << this->value_colourvalue_ << std::endl;
     65        std::cout << "int:         " << this->value_int_ << std::endl;
     66        std::cout << "uint:        " << this->value_uint_ << std::endl;
     67        std::cout << "char:        " << (int)this->value_char_ << std::endl;
     68        std::cout << "uchar:       " << (int)this->value_uchar_ << std::endl;
     69        std::cout << "float:       " << this->value_float_ << std::endl;
     70        std::cout << "double:      " << this->value_double_ << std::endl;
     71        std::cout << "bool:        " << this->value_bool_ << std::endl;
     72        std::cout << "string:      " << this->value_string_ << std::endl;
     73        std::cout << "constchar:   " << this->value_constchar_ << std::endl;
     74        std::cout << "vector2:     " << this->value_vector2_ << std::endl;
     75        std::cout << "vector3:     " << this->value_vector3_ << std::endl;
     76        std::cout << "colourvalue: " << this->value_colourvalue_ << std::endl;
    7777    }
    7878
Note: See TracChangeset for help on using the changeset viewer.