Base Object class. More...
#include <object.h>
Public Member Functions | |
virtual mapi_object_t & | data () throw () |
Obtain a reference to the mapi_object_t associated with this object. More... | |
virtual property_container | get_property_container () |
Obtain a property_container to be used with this object. More... | |
virtual session & | get_session () |
Obtain the session associated with this object. More... | |
object (session &mapi_session, const std::string &object_type="") throw () | |
Object Constructor. More... | |
virtual | ~object () throw () |
Destructor. More... | |
Protected Attributes | |
mapi_object_t | m_object |
session & | m_session |
Base Object class.
Most classes such as folder, message and message_store derive from this class. It is important that objects be passed around as references and that no unnecessary copies are made as this will call the class destructor which will call mapi_object_release() and release the handle associated with this object.
|
inlineexplicit |
Object Constructor.
mapi_session | Session this object is to be associated with. |
object_type | The name of the type of object (to be set in a subclass) |
References m_object.
|
inlinevirtual |
Destructor.
Calls mapi_object_release() which releases the handle associated with this object.
References m_object.
|
inlinevirtual |
Obtain a reference to the mapi_object_t associated with this object.
References m_object.
|
virtual |
Obtain a property_container to be used with this object.
|
inlinevirtual |
Obtain the session associated with this object.
References m_session.
|
protected |
|
protected |
Referenced by get_session().
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |