38class ProvidesSubComponentSlots
41 const std::vector<ElementInfoSubComponentSlot>& getSubComponentSlots()
const {
return slots_; }
43 void toString(std::ostream& os)
const;
45 template <
class XMLNode>
46 void outputXML(XMLNode* node)
const
50 auto* element =
new XMLNode(
"SubComponentSlot");
51 element->SetAttribute(
"Index", idx);
52 element->SetAttribute(
"Name", slot.name);
53 element->SetAttribute(
"Description", slot.description ? slot.description :
"none");
54 element->SetAttribute(
"Interface", slot.superclass ? slot.superclass :
"none");
55 node->LinkEndChild(element);
62 explicit ProvidesSubComponentSlots(T* UNUSED(t)) :
63 slots_(InfoSubs<T>::get())
67 std::vector<ElementInfoSubComponentSlot> slots_;