Changeset 1612 for XIOS/dev/dev_olga/src/attribute_map.cpp
- Timestamp:
- 11/23/18 14:48:14 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/attribute_map.cpp
r1158 r1612 28 28 att.second->reset(); 29 29 } 30 } 31 32 ///-------------------------------------------------------------- 33 /*! 34 Dump of all non-empty attributes of an object 35 */ 36 StdString CAttributeMap::dumpXiosAttributes(void) const 37 { 38 int maxNbChar = 250; 39 StdString str; 40 typedef std::pair<StdString, CAttribute*> StdStrAttPair; 41 auto it = SuperClassMap::begin(), end = SuperClassMap::end(); 42 for (; it != end; it++) 43 { 44 const StdStrAttPair& att = *it; 45 if (!att.second->isEmpty()) 46 { 47 if (str.length() < maxNbChar) 48 { 49 str.append(att.second->dump()); 50 str.append(" "); 51 } 52 else if (str.length() == maxNbChar) 53 { 54 str.append("..."); 55 } 56 } 57 } 58 return str; 30 59 } 31 60
Note: See TracChangeset
for help on using the changeset viewer.