#include <BinaryLogObject.h>
Initially conceived as the generic base class for all "Dummy services", which are constructed along side each service, but without all the functionality, extra services, and such. It's primary purpose was to be able to take the serialized state for a service, and deserialize it into an object which was structured like a service. It is registered with the log reader class with a string that links the type of binary log to the mace::BinaryLogObject object which knows how to deserialize the data.
Now its use has been extended to supporting extensible binary logs other than services, as a generic mechanism for implementing new structured logs.
It derives from Serializable, so it can deserialize the log, and Printable, so the binary logreader can print the state once deserialized.
Definition at line 62 of file BinaryLogObject.h.
Public Member Functions | |
virtual const std::string & | getLogType () const =0 |
returns a unique short string - log type for including in binary log (e.g. "S" for string log) | |
virtual const std::string & | getLogDescription () const =0 |
returns a longer string description (e.g. "String" on string logs) |