46 if( aFilename.length() )
73 fprintf(
m_file,
"endgroup\n" );
127 fprintf(
m_file,
"group %s\n", aName.c_str() );
139 fprintf(
m_file,
"endgroup\n" );
152 fprintf(
m_file,
"group default\n" );
154 std::string sh = aShape->
Format();
156 fprintf(
m_file,
"shape %d %s %s\n", aShape->
Type(), aName.c_str(), sh.c_str() );
SHAPE_TYPE Type() const
Return the type of the shape.
void Write(const SHAPE *aShape, const std::string &aName="<noname>")
void BeginGroup(const std::string &aName="<noname>")
An abstract shape on 2D plane.
virtual const std::string Format(bool aCplusPlus=true) const