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:
trunk/OOPSE-3.0/src/utils/GenericData.hpp (file contents), Revision 1625 by tim, Thu Oct 21 16:22:01 2004 UTC vs.
branches/new_design/OOPSE-3.0/src/utils/GenericData.hpp (file contents), Revision 1780 by tim, Wed Nov 24 19:49:07 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 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