Exemplo n.º 1
0
void TCadMultiLine::Streamer::Write(opstream& out) const
{
  WriteBaseObject((TCadObjectBase*) this, out);
  out.writeWord32(GetObject()->points.size());
  TPoints::size_type i=0;
  while (i<GetObject()->points.size()) out << GetObject()->points[i++];
}
Exemplo n.º 2
0
void TermSet::Streamer::Write(opstream& out) const
{
  out.writeWord32(GetObject()->size());
  iterator i = GetObject()->begin(), e = GetObject()->end();
  while (i!=e) {
    out << *i;
    i++;
  }
}
Exemplo n.º 3
0
void TCadGroup::Streamer::Write(opstream& out) const
{
  WriteBaseObject((TCadObjectBase*) this, out);

  out.writeWord32(GetObject()->objects.size());
  TCadObjectBasePtrVector::iterator i,e;
  for(i=GetObject()->objects.begin(), e=GetObject()->objects.end(); i!=e; i++)
   out << *(*i);
}