40class ProvidesSubComponentSlots
43 const std::vector<ElementInfoSubComponentSlot>& getSubComponentSlots()
const {
return slots_; }
45 void toString(std::ostream& os)
const;
47 template <
class XMLNode>
48 void outputXML(XMLNode* node)
const
52 auto* element =
new XMLNode(
"SubComponentSlot");
53 element->SetAttribute(
"Index", idx);
54 element->SetAttribute(
"Name", slot.name);
55 element->SetAttribute(
"Description", slot.description ? slot.description :
"none");
56 element->SetAttribute(
"Interface", slot.superclass ? slot.superclass :
"none");
57 node->LinkEndChild(element);
64 explicit ProvidesSubComponentSlots(T* UNUSED(t)) :
65 slots_(InfoSubs<T>::get())
69 std::vector<ElementInfoSubComponentSlot> slots_;