Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cwchess::pgn::Database Class Referenceabstract
Inheritance diagram for cwchess::pgn::Database:
Inheritance graph
[legend]

Public Member Functions

virtual std::string get_path (void) const =0
 Return the path name of the database.
 
int number_of_lines (void) const
 
size_t number_of_characters (void) const
 
- Public Member Functions inherited from util::Referenceable
void reference (void) const
 
void unreference (void) const
 

Protected Member Functions

 Database (void)
 Constructor.
 
void process_next_data_block (char const* data, size_t size)
 Process next data block. More...
 

Protected Attributes

MemoryBlockList*  M_buffer
 Linked list of blocks with valid data.
 
Glib::RefPtr< MemoryBlockNode > M_new_block
 

Detailed Description

Definition at line 43 of file PgnDatabase.h.

Member Function Documentation

void cwchess::pgn::Database::process_next_data_block ( char const*   data,
size_t  size 
)
protected

Process next data block.

This function is called for all subsequent blocks of data during the initialization of the Database object.

Definition at line 48 of file PgnDatabase.cc.

References M_buffer, and M_new_block.

Referenced by Database().

Member Data Documentation

Glib::RefPtr<MemoryBlockNode> cwchess::pgn::Database::M_new_block
protected

Temporary storage for new block that is being read and not linked yet.

Definition at line 63 of file PgnDatabase.h.

Referenced by process_next_data_block().


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

Copyright © 2006 - 2010 Carlo Wood.  All rights reserved.