41 lines
804 B
C++
41 lines
804 B
C++
#ifndef PNGCHUNKTIME_HPP
|
|
#define PNGCHUNKTIME_HPP
|
|
|
|
#include "include/png/PNGChunk.hpp"
|
|
|
|
class PNGChunkTIME : public PNGChunk{
|
|
|
|
private:
|
|
|
|
unsigned short year;
|
|
unsigned char month;
|
|
unsigned char day;
|
|
unsigned char hour;
|
|
unsigned char minute;
|
|
unsigned char seconds;
|
|
unsigned char* timeString=0;
|
|
|
|
public:
|
|
|
|
PNGChunkTIME(unsigned int chunkLength, unsigned int chunkType, const unsigned char* chunkData, unsigned int crc32);
|
|
|
|
unsigned short getYear();
|
|
|
|
unsigned char getMonth();
|
|
|
|
unsigned char getDay();
|
|
|
|
unsigned char getHour();
|
|
|
|
unsigned char getMinute();
|
|
|
|
unsigned char getSecond();
|
|
|
|
const unsigned char* getTimeString();
|
|
|
|
~PNGChunkTIME();
|
|
|
|
};
|
|
|
|
#endif // PNGCHUNKTIME_HPP
|