ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/utils/GenericData.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/utils/GenericData.hpp (file contents):
Revision 1683, Thu Oct 28 22:34:02 2004 UTC vs.
Revision 1825 by tim, Thu Dec 2 04:55:10 2004 UTC

# Line 90 | Line 90 | namespace oopse{
90          public:
91              SimpleTypeData() :  GenericData(), data_(ElemDataType()) {}
92              SimpleTypeData(const std::string& id) : GenericData(id), data_(ElemDataType()) {}
93 <
93 >            SimpleTypeData(const std::string&id , const ElemDataType& data) : GenericData(id), data_(data) {}
94              template<typename T>
95              SimpleTypeData(const SimpleTypeData<T>& s) {
96                  data_ = s.getData();
# Line 137 | Line 137 | namespace oopse{
137    
138      /**
139       * @typedef StringGenericData
140 <     * A generic data type contains a string variable
140 >     * A generic data type contains a  std::stringvariable
141       *
142       * @code
143       *   StringGenericData* s = new StringGenericData("MyStringGenericData");
# Line 147 | Line 147 | namespace oopse{
147       *   s->setData("OOPSE");
148       *   propMap->addProperty(s);
149       *  
150 <     *   gdata = propMap->getProperty("MyStringGenericData");
150 >     *   gdata = propMap->getPropertyByName("MyStringGenericData");
151       *   if (gdata != NULL){
152       *     s = dynamic_cast<StringGenericData*>(gdata);
153       *     if (s != NULL)
# Line 219 | Line 219 | namespace oopse{
219       *
220       *  propMap.addProperty(sv);
221       *  
222 <     *  gdata = propMap.getProperty("MyStringVector");
222 >     *  gdata = propMap.getPropertyByName("MyStringVector");
223       *
224       *  if (gdata != NULL){
225       *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines