20 #include <sst/core/eli/elementinfo.h>
27 #define CFG_OUTPUTHUMAN 0x00000001
28 #define CFG_OUTPUTXML 0x00000002
29 #define CFG_VERBOSE 0x00000004
39 typedef std::multimap<std::string, std::string> FilterMap_t;
53 std::set<std::string> res;
54 for (
auto &i : m_filters )
70 bool processAllElements()
const {
return m_filters.empty(); }
71 bool doVerbose()
const {
return m_optionBits & CFG_VERBOSE; }
76 void addFilter(std::string name);
80 std::vector<std::string> m_elementsToProcess;
81 unsigned int m_optionBits;
82 std::string m_XMLFilePath;
84 FilterMap_t m_filters;
117 void outputXML(
int Index, TiXmlNode* XMLParentElement);
120 template <
class BaseType>
void outputXML(TiXmlElement* node);
122 std::string getLibraryDescription() {
void outputXML(int Index, TiXmlNode *XMLParentElement)
Create the formatted XML data of the Library.
Definition: sstinfo.cc:472
The SSTInfo Configuration class.
Definition: sstinfo.h:37
bool debugEnabled() const
Is debugging output enabled?
Definition: sstinfo.h:69
std::string & getXMLFilePath()
Return the user defined path the XML File.
Definition: sstinfo.h:66
SSTLibraryInfo(const std::string &name)
Create a new SSTInfoElement_LibraryInfo object.
Definition: sstinfo.h:99
SSTInfoConfig()
Create a new SSTInfo configuration and parse the Command Line.
Definition: sstinfo.cc:278
int parseCmdLine(int argc, char *argv[])
Parse the Command Line.
Definition: sstinfo.cc:307
unsigned int getOptionBits()
Return the bit field of various command line options enabled.
Definition: sstinfo.h:63
std::set< std::string > getElementsToProcessArray()
Return the list of elements to be processed.
Definition: sstinfo.h:51
std::string getLibraryName()
Return the Name of the Library.
Definition: sstinfo.h:106
The SSTInfo representation of ElementLibraryInfo object.
Definition: sstinfo.h:93
void outputHumanReadable(std::ostream &os, int LibIndex)
Output the Library Information.
Definition: sstinfo.cc:436
FilterMap_t & getFilterMap()
Return the filter map.
Definition: sstinfo.h:60