12 #ifndef SST_CORE_CATEGORY_INFO_H
13 #define SST_CORE_CATEGORY_INFO_H
15 #include "sst/core/eli/elibase.h"
16 #include "sst/core/warnmacros.h"
28 uint32_t category()
const {
return cat_; }
30 static const char* categoryName(
int cat)
33 case COMPONENT_CATEGORY_PROCESSOR:
34 return "PROCESSOR COMPONENT";
35 case COMPONENT_CATEGORY_MEMORY:
36 return "MEMORY COMPONENT";
37 case COMPONENT_CATEGORY_NETWORK:
38 return "NETWORK COMPONENT";
39 case COMPONENT_CATEGORY_SYSTEM:
40 return "SYSTEM COMPONENT";
42 return "UNCATEGORIZED COMPONENT";
46 void toString(std::ostream& UNUSED(os))
const { os <<
" Category: " << categoryName(cat_) <<
"\n"; }
48 template <
class XMLNode>
49 void outputXML(XMLNode* UNUSED(node))
61 #define SST_ELI_CATEGORY_INFO(cat) \
62 static uint32_t ELI_getCategory() { return cat; }
Definition: categoryInfo.h:26