Ignore:
Timestamp:
06/04/21 11:57:21 (3 years ago)
Author:
yushan
Message:

Big commit on graph functionality. Other graph related dev

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/attribute_map.cpp

    r1622 r2146  
    5959      } 
    6060 
     61      ///-------------------------------------------------------------- 
     62      /*! 
     63        Record all non-empty attributes of an object (used only for field) for graph 
     64      */ 
     65      StdString CAttributeMap::recordXiosAttributes(void) const 
     66      { 
     67        StdString str; 
     68        typedef std::pair<StdString, CAttribute*> StdStrAttPair; 
     69        auto it = SuperClassMap::begin(), end = SuperClassMap::end(); 
     70        for (; it != end; it++) 
     71        { 
     72          const StdStrAttPair& att = *it; 
     73          if (!att.second->isEmpty()) 
     74          { 
     75            str.append(att.second->dumpGraph()); 
     76            str.append(" "); 
     77          } 
     78        } 
     79        return str; 
     80      } 
     81 
    6182      //--------------------------------------------------------------- 
    6283 
    6384      /* 
    64         Clear an attribute and reset its value 
     85        Cleassr an attribute and reset its value 
    6586        \param[in] key id of attribute 
    6687      */ 
Note: See TracChangeset for help on using the changeset viewer.