Tawara  0.1.0
Public Types | Public Member Functions | List of all members
tawara::TrackOperationBase Class Referenceabstract

Abstract base class for individual track operations. More...

#include <tawara/track_operation.h>

Inheritance diagram for tawara::TrackOperationBase:
Inheritance graph
[legend]
Collaboration diagram for tawara::TrackOperationBase:
Collaboration graph
[legend]

Public Types

typedef boost::shared_ptr
< TrackOperationBase
Ptr
 Base type of a track operation pointer. More...
 

Public Member Functions

 TrackOperationBase (ids::ID id)
 Constructor - this must be called to set the Class ID. More...
 
virtual ~TrackOperationBase ()
 Desctructor. More...
 
virtual std::string type () const =0
 Get the type of operation to be performed. More...
 
- Public Member Functions inherited from tawara::MasterElement
 MasterElement (uint32_t id, bool crc=false)
 Create a new MasterElement. More...
 
virtual ~MasterElement ()
 Destructor. More...
 
- Public Member Functions inherited from tawara::Element
 Element (tawara::ids::ID id)
 Create a new Element. More...
 
virtual ~Element ()
 Destructor. More...
 
uint32_t id () const
 Get the element's ID. More...
 
std::streampos offset () const
 Get the element's offset in the byte stream. More...
 
virtual std::streamsize size () const
 Get the total size of the element. More...
 
virtual std::streamsize write (std::ostream &output)
 Element writing. More...
 
virtual std::streamsize read (std::istream &input)
 Element reading. More...
 

Additional Inherited Members

- Protected Member Functions inherited from tawara::Element
virtual std::streamsize body_size () const =0
 Get the size of the body of this element. More...
 
std::streamsize write_id (std::ostream &output)
 Element ID writing. More...
 
virtual std::streamsize write_size (std::ostream &output)
 Element size writing. More...
 
virtual std::streamsize write_body (std::ostream &output)=0
 Element body writing. More...
 
virtual std::streamsize read_body (std::istream &input, std::streamsize size)=0
 Element body reading implementation. More...
 
- Protected Attributes inherited from tawara::Element
tawara::ids::ID id_
 
std::streampos offset_
 

Detailed Description

Abstract base class for individual track operations.

All track operations must inherit from this base class.

Definition at line 59 of file track_operation.h.

Member Typedef Documentation

Base type of a track operation pointer.

Definition at line 77 of file track_operation.h.

Constructor & Destructor Documentation

tawara::TrackOperationBase::TrackOperationBase ( ids::ID  id)
inline

Constructor - this must be called to set the Class ID.

Definition at line 63 of file track_operation.h.

virtual tawara::TrackOperationBase::~TrackOperationBase ( )
inlinevirtual

Desctructor.

Definition at line 68 of file track_operation.h.

Member Function Documentation

virtual std::string tawara::TrackOperationBase::type ( ) const
pure virtual

Get the type of operation to be performed.

Returns
A string describing the operation.

Implemented in tawara::TrackJoinBlocks.


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