Exemple #1
0
    //! \brief Request a handle to a property using an xml attribute
    //!  containing the properties name. 
    //!
    //! See getProperty(const std::string& name) for usage info.
    inline Value getProperty(const magnet::xml::Attribute& name,
			     const Property::Units& units)
    {
      try { return getPropertyBase(name.getValue(), units); }
      catch (boost::bad_lexical_cast&)
	{ M_throw() << "Could not find the property named by " << name.getPath(); }
    }
Exemple #2
0
    /*! \brief Request a handle to a property using an xml attribute
      containing the properties name. 
    
      See getProperty(const std::string& name) for usage info.
    */
    inline Value getProperty(const magnet::xml::Attribute& name,
			     const Property::Units& units)
    {
      return getPropertyBase(name.getValue(), units);
    }