#include <gnSourceHeader.h>
Inheritance diagram for gnSourceHeader:
Public Member Functions | |
gnSourceHeader () | |
Empty constructor. | |
gnSourceHeader (gnBaseSource *source, const string &name, const uint32 begin, const uint32 length) | |
Constructor, records the header's name and byte offset in the source. | |
gnSourceHeader (const gnSourceHeader &s) | |
Copy constructor. | |
~gnSourceHeader () | |
Destructor, frees memory. | |
gnSourceHeader * | Clone () const |
string | GetHeader () const |
Get the header. | |
string | GetHeaderName () const |
Get the header's name, if any. | |
uint32 | GetLength () const |
Not implemented, use gnStringHeader. | |
uint32 | GetHeaderStart () const |
Get the header's start position within the source. | |
pair< uint32, uint32 > | GetHeaderLoc () const |
Get the header's start position and length within the source. | |
void | SetHeaderStart (const uint32 start) |
Set the header's start position within the source. | |
void | SetHeaderLength (const uint32 length) |
Get the header's length within the source. | |
void | SetHeaderLoc (const pair< uint32, uint32 > startLen) |
Set the header's start position and length within the source. | |
Private Attributes | |
string | m_name |
uint32 | m_start |
uint32 | m_length |
gnBaseSource * | m_source |
gnSourceHeaders are created by gnSEQSource and other sources and placed into a spec.
Definition at line 27 of file gnSourceHeader.h.
|
Empty constructor.
Definition at line 18 of file gnSourceHeader.cpp. References m_length, m_source, and m_start. Referenced by Clone(). |
|
Constructor, records the header's name and byte offset in the source.
Definition at line 23 of file gnSourceHeader.cpp. |
|
Copy constructor.
Definition at line 29 of file gnSourceHeader.cpp. |
|
Destructor, frees memory.
Definition at line 35 of file gnSourceHeader.cpp. |
|
Implements gnBaseHeader. Definition at line 96 of file gnSourceHeader.h. References gnSourceHeader(). |
|
Get the header.
Implements gnBaseHeader. Definition at line 37 of file gnSourceHeader.cpp. References Array< T >::data, m_length, m_source, gnBaseSource::Read(), and uint32. |
|
Get the header's start position and length within the source.
Definition at line 112 of file gnSourceHeader.h. |
|
Get the header's name, if any.
Implements gnBaseHeader. Definition at line 100 of file gnSourceHeader.h. References m_name. |
|
Get the header's start position within the source.
Definition at line 104 of file gnSourceHeader.h. |
|
Not implemented, use gnStringHeader.
Implements gnBaseHeader. Definition at line 108 of file gnSourceHeader.h. |
|
Get the header's length within the source.
Definition at line 123 of file gnSourceHeader.h. References m_length. |
|
Set the header's start position and length within the source.
Definition at line 127 of file gnSourceHeader.h. |
|
Set the header's start position within the source.
Definition at line 119 of file gnSourceHeader.h. References m_start. |
|
Definition at line 91 of file gnSourceHeader.h. Referenced by GetHeader(), GetHeaderLoc(), GetLength(), gnSourceHeader(), SetHeaderLength(), and SetHeaderLoc(). |
|
Definition at line 90 of file gnSourceHeader.h. Referenced by GetHeaderName(), and gnSourceHeader(). |
|
Definition at line 92 of file gnSourceHeader.h. Referenced by GetHeader(), and gnSourceHeader(). |
|
Definition at line 91 of file gnSourceHeader.h. Referenced by GetHeaderLoc(), GetHeaderStart(), gnSourceHeader(), SetHeaderLoc(), and SetHeaderStart(). |