|
CLAW Library (a C++ Library Absolutely Wonderful) 1.5.5
|
Footer of a targa file. More...
#include <targa.hpp>
Public Member Functions | |
| footer () | |
| Constructor. | |
| bool | is_valid () const |
| Tell if the data of this footer is valid. | |
Public Attributes | |
| unsigned int | extension_offset |
| Offset of the extension area. | |
| unsigned int | developer_offset |
| Offset of the developer directory. | |
| char | signature [18] |
| Footer identier. Must be as long as std::string("TRUEVISION-XFILE.") + 1 (for the last '\0'). | |
Static Private Attributes | |
| static const std::string | s_signature |
| The string content in the signature. | |
| claw::graphic::targa::file_structure::footer::footer | ( | ) |
Constructor.
Definition at line 131 of file targa_file_structure.cpp.
References s_signature, and signature.
: extension_offset(0), developer_offset(0) { std::copy( s_signature.begin(), s_signature.end(), signature ); signature[s_signature.length()] = '\0'; } // targa::file_structure::footer::footer()
| bool claw::graphic::targa::file_structure::footer::is_valid | ( | ) | const |
Tell if the data of this footer is valid.
Definition at line 142 of file targa_file_structure.cpp.
Referenced by claw::graphic::targa::reader::check_if_targa().
{
return std::equal( s_signature.begin(), s_signature.end(), signature )
&& signature[s_signature.length()] == '\0';
} // targa::file_structure::footer::is_valid()
const std::string claw::graphic::targa::file_structure::footer::s_signature [static, private] |
1.7.3