ARB
Public Member Functions | Protected Member Functions | List of all members
Writer Class Referenceabstract

#include <reader.h>

Inheritance diagram for Writer:
Inheritance graph
[legend]
Collaboration diagram for Writer:
Collaboration graph
[legend]

Public Member Functions

 Writer ()
 
virtual ~Writer ()
 
virtual bool ok () const =0
 
virtual void out (char ch)=0
 
virtual const charname () const =0
 
virtual void throw_write_error () const __ATTR__NORETURN
 
virtual int out (const char *text)
 
virtual int outf (const char *format,...) __ATTR__FORMAT_MEMBER(1)
 
void repeated (char ch, int repeat)
 
virtual ~Writer ()
 
virtual void addSequence (GBDATA *)=0
 
virtual void finish ()
 
const charget_error () const
 
bool ok () const
 

Protected Member Functions

virtual void set_error (const char *error)
 

Detailed Description

Definition at line 95 of file reader.h.

Constructor & Destructor Documentation

Writer::Writer ( )
inline

Definition at line 96 of file reader.h.

virtual Writer::~Writer ( )
inlinevirtual

Definition at line 97 of file reader.h.

virtual Writer::~Writer ( )
inlinevirtual

Definition at line 62 of file arb_export_sequences.cxx.

Member Function Documentation

virtual bool Writer::ok ( ) const
pure virtual
virtual void Writer::out ( char  ch)
pure virtual
virtual const char* Writer::name ( ) const
pure virtual

Implemented in FileWriter, and GcgCommentWriter.

Referenced by macke_seq_info_out(), and throw_write_error().

void Writer::throw_write_error ( ) const
virtual

Reimplemented in GcgCommentWriter.

Definition at line 107 of file reader.cxx.

References name(), and throw_errorf().

Referenced by FileWriter::out(), and FileWriter::outf().

virtual int Writer::out ( const char text)
inlinevirtual

Reimplemented in FileWriter.

Definition at line 104 of file reader.h.

References out().

int Writer::outf ( const char format,
  ... 
)
virtual
void Writer::repeated ( char  ch,
int  repeat 
)
inline

Definition at line 113 of file reader.h.

References out().

Referenced by genbank_out_header().

virtual void Writer::set_error ( const char error)
inlineprotectedvirtual
virtual void Writer::addSequence ( GBDATA )
pure virtual
virtual void Writer::finish ( )
inlinevirtual

Reimplemented in FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.

Definition at line 65 of file arb_export_sequences.cxx.

Referenced by main().

const char* Writer::get_error ( ) const
inline

Definition at line 67 of file arb_export_sequences.cxx.

References NULp.

Referenced by main(), and ok().

bool Writer::ok ( ) const
inline

Definition at line 70 of file arb_export_sequences.cxx.

References get_error().


The documentation for this class was generated from the following files: