libnative-utilities/include/png/PNGChunkTIME.hpp
2024-08-15 18:40:30 +08:00

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