Changeset 64 for trunk/src/object.cc


Ignore:
Timestamp:
05/30/13 20:13:08 (12 years ago)
Author:
epyon
Message:
  • root class for object trees
  • revised exception throwing - now using NV_THROW macro
  • exceptions thrown are logged
  • formatting fixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/object.cc

    r57 r64  
    77#include "nv/object.hh"
    88
     9#include "nv/root.hh"
    910#include "nv/types.hh"
    1011
     
    1213
    1314object::object()
    14         : m_id(), m_name(), m_uid(0), m_lua_index(-2), m_parent( nullptr ), m_children(), m_child_count(0)
     15        : m_root( nullptr ), m_id(), m_name(), m_uid(0), m_lua_index(-2), m_parent( nullptr ), m_children(), m_child_count(0)
    1516{
    1617//      m_uid = uid_store::get_free_uid();
     
    1819}
    1920
    20 object::object( string aid, uid auid )
    21         : m_id(aid), m_name(), m_uid( auid ), m_lua_index(-2), m_parent( nullptr ), m_children(), m_child_count(0)
     21object::object( root* aroot, const string& aid, uid auid )
     22        : m_root( aroot ), m_id(aid), m_name(), m_uid( auid ), m_lua_index(-2), m_parent( nullptr ), m_children(), m_child_count(0)
    2223{
    2324        //      uid_store::register_object( this, auid );
Note: See TracChangeset for help on using the changeset viewer.