22 #ifndef WREPORT_BULLETIN_H
23 #define WREPORT_BULLETIN_H
121 virtual void clear();
174 virtual
void decode(const std::
string& buf, const
char*
fname="(memory)",
size_t offset=0) = 0;
179 virtual
void encode(std::
string& buf) const = 0;
191 void visit(bulletin::Visitor& out) const;
196 void print(FILE* out) const;
257 static std::auto_ptr<BufrCodecOptions> create();
315 virtual void decode(
const std::string& raw,
const char*
fname=
"(memory)",
size_t offset=0);
316 virtual void encode(std::string& buf)
const;
341 static bool read(FILE* in, std::string& buf,
const char*
fname = 0,
long*
offset = 0);
353 static void write(
const std::string& buf, FILE* out,
const char*
fname = 0);
359 static std::auto_ptr<BufrBulletin> create();
381 virtual void decode(
const std::string& raw,
const char*
fname=
"(memory)",
size_t offset=0);
382 virtual void encode(std::string& buf)
const;
400 static bool read(FILE* in, std::string& buf,
const char*
fname = 0,
long*
offset = 0);
412 static void write(
const std::string& buf, FILE* out,
const char*
fname = 0);
418 static std::auto_ptr<CrexBulletin> create();