• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/core/sdl.h

00001 // Copyright 2009-2010 Sandia Corporation. Under the terms
00002 // of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
00003 // Government retains certain rights in this software.
00004 // 
00005 // Copyright (c) 2009-2010, Sandia Corporation
00006 // All rights reserved.
00007 // 
00008 // This file is part of the SST software package. For license
00009 // information, see the LICENSE file in the top level directory of the
00010 // distribution.
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 } // namespace SST
00051 
00052 #endif

Generated on Fri Oct 22 2010 11:02:13 for SST by  doxygen 1.7.1