00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef _SST_SDL_H
00015 #define _SST_SDL_H
00016
00017 #include <map>
00018 #include <string>
00019
00020 namespace SST {
00021
00022 typedef std::map<std::string,std::string> SDL_params_t;
00023
00024 class SDL_Link {
00025 public:
00026 float weight;
00027 SDL_params_t params;
00028 };
00029
00030 typedef std::map<std::string,SDL_Link *> SDL_links_t;
00031
00032 class SDL_Component {
00033 std::string _type;
00034 public:
00035 SDL_Component( std::string type) : _type(type), _isIntrospector(0) {};
00036 std::string &type( void ) { return _type; };
00037 bool isIntrospector( void ) { return _isIntrospector; };
00038 float weight;
00039 int rank;
00040 SDL_params_t params;
00041 SDL_links_t links;
00042 bool _isIntrospector;
00043 };
00044
00045 typedef std::map < std::string, SDL_Component * > SDL_CompMap_t;
00046
00047 extern int xml_parse( std::string file, SDL_CompMap_t& map);
00048 extern std::string xmlGetConfig( std::string file );
00049
00050 }
00051
00052 #endif