Tawara
0.1.0
|
Abstract base class for individual track operations. More...
#include <tawara/track_operation.h>
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... | |
![]() | |
MasterElement (uint32_t id, bool crc=false) | |
Create a new MasterElement. More... | |
virtual | ~MasterElement () |
Destructor. More... | |
![]() | |
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 | |
![]() | |
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... | |
![]() | |
tawara::ids::ID | id_ |
std::streampos | offset_ |
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.
typedef boost::shared_ptr<TrackOperationBase> tawara::TrackOperationBase::Ptr |
Base type of a track operation pointer.
Definition at line 77 of file track_operation.h.
|
inline |
Constructor - this must be called to set the Class ID.
Definition at line 63 of file track_operation.h.
|
inlinevirtual |
Desctructor.
Definition at line 68 of file track_operation.h.
|
pure virtual |
Get the type of operation to be performed.
Implemented in tawara::TrackJoinBlocks.