Beispiel #1
0
Object::Object(const std::string& name, Object& parent, Clock& clock)
    : m_parent(&parent), 
      m_name(name), 
      m_fqn(parent.GetFQN().empty() ? name : (parent.GetFQN() + '.' + name)),
      m_clock(clock), 
      m_kernel(clock.GetKernel())
{
    // Add ourself to the parent's children array
    parent.m_children.push_back(this);
}
Beispiel #2
0
//
// Object class
//
Object::Object(const std::string& name, Clock& clock)
    : m_parent(NULL), m_name(name), m_fqn(name), m_clock(clock), m_kernel(clock.GetKernel())
{
}