ews-cpp  0.9
Public Member Functions | List of all members
ews::mime_content Class Referencefinal

Represents an item's <MimeContent CharacterSet="" /> element. More...

#include <ews.hpp>

Public Member Functions

 mime_content (std::string charset, const char *const ptr, size_t len)
 Copies len bytes from ptr into an internal buffer.
 
const char * bytes () const EWS_NOEXCEPT
 Note: the pointer to the data is not 0-terminated.
 
const std::string & character_set () const EWS_NOEXCEPT
 Returns how the string is encoded, e.g., "UTF-8".
 
size_t len_bytes () const EWS_NOEXCEPT
 
bool none () const EWS_NOEXCEPT
 

Detailed Description

Represents an item's <MimeContent CharacterSet="" /> element.

Contains the ASCII MIME stream of an object that is represented in base64Binary format (as in RFC 2045).

Member Function Documentation

bool ews::mime_content::none ( ) const
inline

Returns true if no MIME content is available.

Note that a <MimeContent> property is only included in a GetItem response when explicitly requested using additional properties. This function lets you test whether MIME content is available.


The documentation for this class was generated from the following file: