Public Member Functions |
void | clear () |
| Reset the bulletin.
|
virtual const char * | encoding_name () const throw () |
| Type of source/target encoding.
|
virtual void | load_tables () |
| Load a new set of tables to use for encoding this message.
|
virtual void | decode_header (const std::string &raw, const char *fname="(memory)", size_t offset=0) |
| Parse only the header of an encoded message.
|
virtual void | decode (const std::string &raw, const char *fname="(memory)", size_t offset=0) |
| Parse an encoded message.
|
virtual void | encode (std::string &buf) const |
| Encode the message.
|
virtual void | print_details (FILE *out) const |
| Print format-specific details.
|
virtual unsigned | diff_details (const Bulletin &msg) const |
| Diff format-specific details.
|
Subset & | obtain_subset (unsigned subsection) |
| Get a Subset from the message.
|
const Subset & | subset (unsigned subsection) const |
| Get a Subset from the message.
|
void | visit_datadesc (opcode::Visitor &e) const |
| Walk the structure of the data descriptor section sending events to an opcode::Explorer.
|
void | visit (bulletin::Visitor &out) const |
| Run the Data Descriptor Section interpreter, sending commands to executor.
|
void | print (FILE *out) const |
| Dump the contents of this bulletin.
|
void | print_structured (FILE *out) const |
| Dump the contents of this bulletin, in a more structured way.
|
void | print_datadesc (FILE *out, unsigned indent=0) const |
| Pretty-print the data descriptor section.
|
virtual unsigned | diff (const Bulletin &msg) const |
| Compute the differences between two bulletins.
|
Static Public Member Functions |
static bool | read (FILE *in, std::string &buf, const char *fname=0, long *offset=0) |
| Read an encoded BUFR message from a stream.
|
static void | write (const std::string &buf, FILE *out, const char *fname=0) |
| Write an encoded BUFR message to a stream.
|
static std::auto_ptr
< CrexBulletin > | create () |
| To prevent breaking ABI if new members are added to bulletins, direct construction is discouraged in favour of an allocator function.
|
CREX bulletin implementation.