Changeset 21025

Show
Ignore:
Timestamp:
02/10/08 07:39:15 (7 months ago)
Author:
patrick
Message:

Simplify the implementation of this class by deriving from boost::noncopyable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/tweek/tweek/CORBA/SubjectManagerImpl.cpp

    r21013 r21025  
    300300} 
    301301 
    302 SubjectManagerImpl::SubjectManagerImpl(const SubjectManagerImpl& sm) 
    303    : 
    304 #if defined(TWEEK_USE_OMNIORB) 
    305      omniServant(sm) 
    306    , tweek::_impl_SubjectManager(sm) 
    307    , 
    308 #elif defined(TWEEK_USE_TAO) 
    309      TAO_Abstract_ServantBase(sm) 
    310    , 
    311 #endif 
    312      PortableServer::ServantBase(sm) 
    313    , POA_tweek::SubjectManager(sm) 
    314    , PortableServer::RefCountServantBase(sm) 
    315    , mCorbaMgr(sm.mCorbaMgr) 
    316    , mName(sm.mName) 
    317    , mInfoMap(sm.mInfoMap) 
    318 { 
    319    /* Do nothing. */ ; 
    320 } 
    321  
    322302} // End of tweek namespace 
  • juggler/trunk/modules/tweek/tweek/CORBA/SubjectManagerImpl.h

    r21013 r21025  
    3232#include <string> 
    3333#include <map> 
     34#include <boost/noncopyable.hpp> 
     35 
    3436#include <vpr/vpr.h> 
    3537#include <vpr/Sync/Mutex.h> 
     
    5658 */ 
    5759class TWEEK_CLASS_API SubjectManagerImpl 
    58    : public POA_tweek::SubjectManager 
     60   : private boost::noncopyable 
     61   , public POA_tweek::SubjectManager 
    5962   , public PortableServer::RefCountServantBase 
    6063{ 
     
    184187   SubjectManagerImpl(const CorbaManager& corbaMgr, const std::string& name); 
    185188 
    186    // These two have to be here because Visual C++ will try to make them 
    187    // exported public symbols.  This causes problems because copying 
    188    // vpr::Mutex objects is not allowed. 
    189    SubjectManagerImpl(const SubjectManagerImpl& sm); 
    190  
    191    void operator=(const SubjectManagerImpl&) 
    192    { 
    193       /* Do nothing. */ ; 
    194    } 
    195  
    196189   void storeSubject(Subject_ptr subject, const std::string& name); 
    197190