libmapipp::object Class Reference
Base Object class.
More...
#include <object.h>
List of all members.
Detailed Description
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.
Constructor & Destructor Documentation
libmapipp::object::object |
( |
session & |
mapi_session, |
|
|
const std::string & |
object_type = "" | |
|
) |
| | throw () [inline, explicit] |
Object Constructor.
- Parameters:
-
| 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.
virtual libmapipp::object::~object |
( |
|
) |
throw () [inline, virtual] |
Destructor.
Calls mapi_object_release() which releases the handle associated with this object.
References m_object.
Member Function Documentation
virtual mapi_object_t& libmapipp::object::data |
( |
|
) |
throw () [inline, virtual] |
Obtain a reference to the mapi_object_t associated with this object.
- Returns:
- A reference to the C struct mapi_object_t associated with this object
References m_object.
virtual session& libmapipp::object::get_session |
( |
|
) |
[inline, virtual] |
Member Data Documentation
The documentation for this class was generated from the following file: