#ifndef __TRANSMITTABLE__ #define __TRANSMITTABLE__ #include #include namespace CommService { /** * @brief abstract class providing the interface for classes being transmittable through a network * * the developer has to make sure that the correct endianess is used in the toByteVector function * and in the Factory for each Class */ class transmittable { public: /** * @brief converts the information of the class (the attributes) to a byte vector * * @param byteVector - returns a std::vector of bytes representing the class */ virtual std::vector toByteVector() const = 0; }; }; #endif