|
|
|
@ -17,7 +17,8 @@ namespace massivedynamic { |
|
|
|
|
this->targetSize = sourceSize * (2 * SVGRenderer::BORDER_WIDTH); |
|
|
|
|
} |
|
|
|
|
virtual void render(const std::string& filename) override { |
|
|
|
|
std::stringstream file; |
|
|
|
|
std::ofstream file; |
|
|
|
|
file.open(filename + ".svg"); |
|
|
|
|
|
|
|
|
|
std::string base = R"EOF(<?xml version="1.0" encoding="utf-8"?> |
|
|
|
|
<!-- Generator: Massive Dynamic qr, massivedynamic::SVGRenderer --> |
|
|
|
@ -41,12 +42,9 @@ namespace massivedynamic { |
|
|
|
|
|
|
|
|
|
file << "</svg>" << std::endl; |
|
|
|
|
|
|
|
|
|
std::ofstream outFile; |
|
|
|
|
outFile.open(filename + ".svg"); |
|
|
|
|
outFile << file.str(); |
|
|
|
|
outFile.close(); |
|
|
|
|
file.close(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|