12 #ifndef SST_CORE_SST_INFO_H
13 #define SST_CORE_SST_INFO_H
15 #include "sst/core/eli/elementinfo.h"
21 #include "tinyxml/tinyxml.h"
28 #define CFG_OUTPUTHUMAN 0x00000001
29 #define CFG_OUTPUTXML 0x00000002
30 #define CFG_VERBOSE 0x00000004
41 typedef std::multimap<std::string, std::string> FilterMap_t;
55 std::set<std::string> res;
56 for (
auto& i : m_filters )
72 bool processAllElements()
const {
return m_filters.empty(); }
73 bool doVerbose()
const {
return m_optionBits & CFG_VERBOSE; }
78 void addFilter(
const std::string& name);
82 std::vector<std::string> m_elementsToProcess;
83 unsigned int m_optionBits;
84 std::string m_XMLFilePath;
86 FilterMap_t m_filters;
117 void outputXML(
int Index, TiXmlNode* XMLParentElement);
119 template <
class BaseType>
121 template <
class BaseType>
124 std::string getLibraryDescription() {
return ""; }
132 #endif // SST_CORE_SST_INFO_H
void outputXML(int Index, TiXmlNode *XMLParentElement)
Create the formatted XML data of the Library.
Definition: sstinfo.cc:453
The SSTInfo Configuration class.
Definition: sstinfo.h:38
bool debugEnabled() const
Is debugging output enabled?
Definition: sstinfo.h:71
std::string & getXMLFilePath()
Return the user defined path the XML File.
Definition: sstinfo.h:68
SSTLibraryInfo(const std::string &name)
Create a new SSTInfoElement_LibraryInfo object.
Definition: sstinfo.h:102
SSTInfoConfig()
Create a new SSTInfo configuration and parse the Command Line.
Definition: sstinfo.cc:264
int parseCmdLine(int argc, char *argv[])
Parse the Command Line.
Definition: sstinfo.cc:296
unsigned int getOptionBits()
Return the bit field of various command line options enabled.
Definition: sstinfo.h:65
std::set< std::string > getElementsToProcessArray()
Return the list of elements to be processed.
Definition: sstinfo.h:53
std::string getLibraryName()
Return the Name of the Library.
Definition: sstinfo.h:106
The SSTInfo representation of ElementLibraryInfo object.
Definition: sstinfo.h:95
void outputHumanReadable(std::ostream &os, int LibIndex)
Output the Library Information.
Definition: sstinfo.cc:415
FilterMap_t & getFilterMap()
Return the filter map.
Definition: sstinfo.h:62