blob(const blob& other );// non construction-copyable
blob& operator=(const blob&);// non copyable
protected:
uint32 _valid;
buffer _buffer;// Binary data. Since we're a binary data blob it *only makes sense*
blob_type _type;// Blob type, as defined in enums
blob_destination _dest;// Blob destination...OK, this is odd
virtualuint32 stream_out(std::ostream& os)=0;// For << operator used on log_event class. For testing purposes MOSTLY! MAY ALSO BE USED TO ACTUALLY PRINT THE F*CKING EVENT!
virtualuint32 can_serialize()=0;// Query - can we serialize?
virtualuint32 serialize()=0;// Serialization is *not* the same as packetization
virtualuint32 deserialize()=0;// Undo the last one
virtualuint32 can_packetize()=0;// Query - can we packetize?
virtualuint32 bloblob()=0;// Lob() actually just calls this. Kind of silly, but also pretty nice in a lot of ways - kc::io::lob(my object) is pretty clear.
uint32 packet_header_valid();// Checks if the packet header at our current _buffer location is valid
public:
blob(){ _valid =0;}
virtual ~blob(){}
virtualuint32 packetize()=0;// Yeah.
virtualuint32 packet_validate()=0;// Checks that a packet is valid
prog.cpp:7: error: ‘uint32’ does not name a type
prog.cpp:8: error: ‘buffer’ does not name a type
prog.cpp:9: error: ‘blob_type’ does not name a type
prog.cpp:10: error: ‘blob_destination’ does not name a type
prog.cpp:12: error: ‘uint32’ does not name a type
prog.cpp:14: error: ‘uint32’ does not name a type
prog.cpp:15: error: ‘uint32’ does not name a type
prog.cpp:16: error: ‘uint32’ does not name a type
prog.cpp:18: error: ‘uint32’ does not name a type
prog.cpp:20: error: ‘uint32’ does not name a type
prog.cpp:22: error: ‘uint32’ does not name a type
prog.cpp:28: error: ‘uint32’ does not name a type
prog.cpp:29: error: ‘uint32’ does not name a type
prog.cpp:30: error: ‘uint32’ does not name a type
prog.cpp:32: error: ISO C++ forbids declaration of ‘ostream’ with no type
prog.cpp:32: error: ‘ostream’ is neither function nor member function; cannot be declared friend
prog.cpp:32: error: expected ‘;’ before ‘&’ token
prog.cpp:35: error: ‘uint32’ does not name a type
prog.cpp: In constructor ‘blob::blob()’:
prog.cpp:25: error: ‘_valid’ was not declared in this scope