2010CaoTme2: Loins-Skeleton.cpp
| File Loins-Skeleton.cpp, 475 bytes (added by , 16 years ago) |
|---|
| Line | |
|---|---|
| 1 | |
| 2 | #include "Indentation.h" |
| 3 | |
| 4 | // ... |
| 5 | |
| 6 | void Loins::xmlDrive ( ostream& o ) |
| 7 | { |
| 8 | o << indent++ << "<Loins"; |
| 9 | o << " name=\"" << _name << "\""; |
| 10 | o << " model=\"" << _model->getName() << "\""; |
| 11 | o << " owner=\"" << _owner->getName() << "\">\n"; |
| 12 | |
| 13 | o << indent++ << "<connectors>\n"; |
| 14 | for ( list<Locon*>::iterator icon=_connectors.begin() ; icon!=_connectors.end() ; icon++ ) |
| 15 | (*icon)->xmlDrive ( o ); |
| 16 | o << --indent << "</connectors>\n"; |
| 17 | |
| 18 | o << --indent << "</Loins>\n"; |
| 19 | } |
