The MessageCompiler Sample

The MessageCompiler Sample

The MessageCompiler utility converts kNet Message XML Description Files into C++ header files. These headers contain structures that implement the SerializableMessage interface, which allows them to be passed to the MessageConnection::Send function. This is the basis of declarative-mode data serialization in the kNet reference library.

The utility is invoked from the command line using the following syntax:

MessageCompiler <messagexmlfile>

The tool outputs a .h file for each message found in the xml. For an example output, see MsgPaintPixel.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines