Table of Contents
The following developer's guide is to get you started and to give you a quick overview over the features of mockpp. For a complete list of all functions please refer to the api documentation.
There are a few things that are not obvious but might become important to get started:
mockpp uses a data type String which is no data type of it's own but is a typedef to std::string or std::wstring depending on your choice. It also provides a minimum functionality for unicode if you compile for a unicode environment. See Section 1.2, “Compilation and Installation” how to do that.
Since mockpp provides both environments with the same sources it uses some
macros to convert string literals to the intended environment. You can check for
the actual setting by adding a conditional #ifdef MOCKPP_UNICODE
in
your sources.
MOCKPP_PCHAR
transforms a literal string either to a
char* or to a wchar_t * by prepending an L
for unicode.
MOCKPP_STRING
yields either a
std::string or a std::wstring.
See Section 1.2.4, “Installing on other systems” for more options how to adjust this library.