20 #include "sst/core/eli/elementinfo.h"
21 #include "sst/core/tinyxml/tinyxml.h"
28 #define CFG_OUTPUTHUMAN 0x00000001
29 #define CFG_OUTPUTXML 0x00000002
30 #define CFG_VERBOSE 0x00000004
40 typedef std::multimap<std::string, std::string> FilterMap_t;
54 std::set<std::string> res;
55 for (
auto &i : m_filters )
71 bool processAllElements()
const {
return m_filters.empty(); }
72 bool doVerbose()
const {
return m_optionBits & CFG_VERBOSE; }
77 void addFilter(
const std::string& name);
81 std::vector<std::string> m_elementsToProcess;
82 unsigned int m_optionBits;
83 std::string m_XMLFilePath;
85 FilterMap_t m_filters;
118 void outputXML(
int Index, TiXmlNode* XMLParentElement);
121 template <
class BaseType>
void outputXML(TiXmlElement* node);
123 std::string getLibraryDescription() {
void outputXML(int Index, TiXmlNode *XMLParentElement)
Create the formatted XML data of the Library.
Definition: sstinfo.cc:481
The SSTInfo Configuration class.
Definition: sstinfo.h:38
bool debugEnabled() const
Is debugging output enabled?
Definition: sstinfo.h:70
std::string & getXMLFilePath()
Return the user defined path the XML File.
Definition: sstinfo.h:67
SSTLibraryInfo(const std::string &name)
Create a new SSTInfoElement_LibraryInfo object.
Definition: sstinfo.h:100
SSTInfoConfig()
Create a new SSTInfo configuration and parse the Command Line.
Definition: sstinfo.cc:284
int parseCmdLine(int argc, char *argv[])
Parse the Command Line.
Definition: sstinfo.cc:314
unsigned int getOptionBits()
Return the bit field of various command line options enabled.
Definition: sstinfo.h:64
std::set< std::string > getElementsToProcessArray()
Return the list of elements to be processed.
Definition: sstinfo.h:52
std::string getLibraryName()
Return the Name of the Library.
Definition: sstinfo.h:107
The SSTInfo representation of ElementLibraryInfo object.
Definition: sstinfo.h:94
void outputHumanReadable(std::ostream &os, int LibIndex)
Output the Library Information.
Definition: sstinfo.cc:445
FilterMap_t & getFilterMap()
Return the filter map.
Definition: sstinfo.h:61