39 #ifndef GOOGLE_PROTOBUF_MESSAGE_LITE_H__
40 #define GOOGLE_PROTOBUF_MESSAGE_LITE_H__
48 class CodedInputStream;
49 class CodedOutputStream;
50 class ZeroCopyInputStream;
51 class ZeroCopyOutputStream;
85 virtual string GetTypeName()
const = 0;
96 virtual void Clear() = 0;
99 virtual bool IsInitialized()
const = 0;
104 virtual string InitializationErrorString()
const;
108 virtual void CheckTypeAndMergeFrom(
const MessageLite& other) = 0;
137 bool ParseFromString(
const string& data);
140 bool ParsePartialFromString(
const string& data);
142 bool ParseFromArray(
const void* data,
int size);
145 bool ParsePartialFromArray(
const void* data,
int size);
186 bool SerializeToString(
string*
output)
const;
188 bool SerializePartialToString(
string*
output)
const;
191 bool SerializeToArray(
void* data,
int size)
const;
193 bool SerializePartialToArray(
void* data,
int size)
const;
201 string SerializeAsString()
const;
203 string SerializePartialAsString()
const;
207 bool AppendToString(
string*
output)
const;
209 bool AppendPartialToString(
string*
output)
const;
214 virtual int ByteSize()
const = 0;
219 virtual void SerializeWithCachedSizes(
225 virtual uint8* SerializeWithCachedSizesToArray(
uint8* target)
const;
238 virtual int GetCachedSize()
const = 0;
247 #endif // GOOGLE_PROTOBUF_MESSAGE_LITE_H__
MessageLite()
Definition: message_lite.h:79
Definition: message_lite.h:77
uint8_t uint8
Definition: common.h:175
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
Definition: coded_stream.h:621
Definition: zero_copy_stream.h:181
#define LIBPROTOBUF_EXPORT
Definition: common.h:105
Definition: BnetFileGenerator.h:47