ARB
Public Member Functions | List of all members
FileWriter Class Reference

#include <reader.h>

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

Public Member Functions

 FileWriter (const char *outf)
 
 ~FileWriter () OVERRIDE
 
FILE * get_FILE ()
 
bool ok () const OVERRIDE
 
void out (char ch) FINAL_OVERRIDE
 
const charname () const OVERRIDE
 
int out (const char *text) OVERRIDE
 
int outf (const char *format,...) OVERRIDE __ATTR__FORMAT_MEMBER(1)
 
void seq_done ()
 
void seq_done (int count)
 
void expect_written ()
 
 PREPARE_MARK_NONFINAL_CLASS (FileWriter)
 
- Public Member Functions inherited from Writer
 Writer ()
 
virtual ~Writer ()
 
virtual void throw_write_error () const __ATTR__NORETURN
 
void repeated (char ch, int repeat)
 
virtual ~Writer ()
 
virtual void addSequence (GBDATA *)=0
 
virtual void finish ()
 
const charget_error () const
 
bool ok () const
 

Additional Inherited Members

- Protected Member Functions inherited from Writer
virtual void set_error (const char *error)
 

Detailed Description

Definition at line 121 of file reader.h.

Constructor & Destructor Documentation

FileWriter::FileWriter ( const char outf)

Definition at line 69 of file reader.cxx.

References ARB_strdup(), and throw_errorf().

FileWriter::~FileWriter ( )

Definition at line 83 of file reader.cxx.

References ca_assert, implicated, and log_processed().

Member Function Documentation

FILE* FileWriter::get_FILE ( )
inline

Definition at line 136 of file reader.h.

Referenced by to_paup(), and to_phylip().

bool FileWriter::ok ( ) const
inlinevirtual

Implements Writer.

Definition at line 138 of file reader.h.

void FileWriter::out ( char  ch)
inlinevirtual

Implements Writer.

Definition at line 139 of file reader.h.

References fputc(), and Writer::throw_write_error().

Referenced by genbank_to_gcg(), inject_STDIN(), to_macke(), to_paup(), to_phylip(), and to_printable().

const char* FileWriter::name ( ) const
inlinevirtual

Implements Writer.

Definition at line 143 of file reader.h.

int FileWriter::out ( const char text)
inlinevirtual

Reimplemented from Writer.

Definition at line 145 of file reader.h.

References Writer::out().

int FileWriter::outf ( const char format,
  ... 
)
virtual

Reimplemented from Writer.

Definition at line 112 of file reader.cxx.

References Writer::throw_write_error(), va_end(), va_start(), and vfprintf().

Referenced by to_phylip().

void FileWriter::seq_done ( )
inline
void FileWriter::seq_done ( int  count)
inline

Definition at line 149 of file reader.h.

References ca_assert.

void FileWriter::expect_written ( )

Definition at line 97 of file reader.cxx.

References ca_assert, and throw_errorf().

Referenced by GcgWriter::expect_written(), to_macke(), to_paup(), to_phylip(), and to_printable().

FileWriter::PREPARE_MARK_NONFINAL_CLASS ( FileWriter  )

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