2010CaoTme2: Loins-Skeleton.cpp

File Loins-Skeleton.cpp, 475 bytes (added by jpc, 15 years ago)

Skeleton of Loins.cpp

Line 
1
2#include  "Indentation.h"
3
4// ...
5
6void  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}