}
}
+void ParsedSource::WriteHeader(std::ostream &out) const {
+ for (std::set<string>::const_iterator i(exports.begin()), end(exports.end()); i != end; ++i) {
+ out << GetDeclaration(*i).TypeName() << ' ' << *i << std::endl;
+ }
+}
+
Definition::~Definition() {
if (isLiteral) {
const std::map<std::string, Definition *> &Definitions() const { return definitions; }
const std::set<std::string> &Exports() const { return exports; }
+public:
+ void WriteHeader(std::ostream &) const;
+
private:
std::map<std::string, Declaration *> declarations;
std::map<std::string, Definition *> definitions;