ultimatepp/bazaar/DXF/Blocks.cpp
micio f26735b2fb Bazaar : added DXF package for cad DXF files writing
git-svn-id: svn://ultimatepp.org/upp/trunk@5269 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-08-11 15:22:03 +00:00

20 lines
410 B
C++

#include "DXF.h"
// private constructor -- may be created only by DXF class
DXFBlocks::DXFBlocks(DXF *d)
{
dxf = d;
}
// write tables section to stream
bool DXFBlocks::Write(Stream &s)
{
// objects table with placeholder
s << "0\nSECTION\n2\nBLOCKS\n";
s << (const char *)dxf_blk;
for(int i = 0; i < blocks.GetCount(); i++)
blocks[i].Write(blocks.GetKey(i), s);
s << "0\nENDSEC\n";
return true;
}