00001 00002 #ifndef _SST_CORE_CONFIG_OUTPUT_XML 00003 #define _SST_CORE_CONFIG_OUTPUT_XML 00004 00005 #include <sst/core/configGraph.h> 00006 #include <sst/core/configGraphOutput.h> 00007 00008 namespace SST { 00009 namespace Core { 00010 00011 class XMLConfigGraphOutput : public ConfigGraphOutput { 00012 public: 00013 XMLConfigGraphOutput(const char* path); 00014 virtual void generate(const Config* cfg, 00015 ConfigGraph* graph) throw(ConfigGraphOutputException); 00016 protected: 00017 void generateXML(const std::string indent, const ConfigComponent& comp, 00018 const ConfigLinkMap_t& linkMap) const; 00019 void generateXML(const std::string indent, const ConfigLink& link, 00020 const ConfigComponentMap_t& compMap) const; 00021 }; 00022 00023 } 00024 } 00025 00026 #endif