Eclipse Modeling Framewok (EMF) - Distributed Systems
Eclipse Modeling Framewok (EMF) - Distributed Systems
Eclipse Modeling Framewok (EMF) - Distributed Systems
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
C++ Model Code – Node<br />
1 namespace tree<br />
{<br />
3 class Node : public virtual :: ecore :: EObject<br />
{<br />
5 public :<br />
Node ();<br />
7 virtual ~ Node ();<br />
9 virtual void _initialize ();<br />
11 // Attributes<br />
:: ecore :: EString const & getLabel () const ;<br />
13 void setLabel (:: ecore :: EString const & _label );<br />
15 // References<br />
:: tree :: Node_ptr getParent ();<br />
17 void setParent (:: tree :: Node_ptr _parent );<br />
19 :: ecorecpp :: mapping :: EList < :: tree :: Node >& getChildren ();<br />
protected :<br />
21 // Attributes<br />
:: ecore :: EString m_label ;<br />
23 // References<br />
:: tree :: Node_ptr m_parent ;<br />
25 :: ecorecpp :: mapping :: out_ptr < :: ecorecpp :: mapping :: EList < :: tree :: Node ><br />
><br />
m_children ;<br />
27 };<br />
} // tree<br />
Diego Sevilla Ruiz (DITEC Facultad de Informática) <strong>Eclipse</strong> <strong>Modeling</strong> <strong>Framewok</strong> (<strong>EMF</strong>) Murcia, October 2011 48 / 52