LibreOffice Module hwpfilter (master) 1
Public Types | Public Member Functions | Public Attributes | List of all members
DateCode Struct Reference

Class for current date and time with specified format. More...

#include <hbox.h>

Inheritance diagram for DateCode:
[legend]
Collaboration diagram for DateCode:
[legend]

Public Types

enum  {
  YEAR ,
  MONTH ,
  WEEK ,
  DAY ,
  HOUR ,
  MIN
}
 

Public Member Functions

 DateCode ()
 
virtual bool Read (HWPFile &hwpf) override
 Read properties from HIODevice object like stream, file, memory. More...
 
hchar_string GetString ()
 
- Public Member Functions inherited from HBox
 HBox (hchar hch)
 Construct a HBox object with parameter hch. More...
 
virtual ~HBox ()
 
int WSize ()
 
virtual bool Read (HWPFile &hwpf)
 Read properties from HIODevice object like stream, file, memory. More...
 

Public Attributes

hchar format [DATE_SIZE]
 
short date [6]
 year/month/week/day/hour/minute More...
 
hchar dummy
 
unsigned char key
 
- Public Attributes inherited from HBox
hchar hh
 

Detailed Description

Class for current date and time with specified format.

Definition at line 141 of file hbox.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
YEAR 
MONTH 
WEEK 
DAY 
HOUR 
MIN 

Definition at line 143 of file hbox.h.

Constructor & Destructor Documentation

◆ DateCode()

DateCode::DateCode ( )

Definition at line 111 of file hbox.cxx.

Member Function Documentation

◆ GetString()

hchar_string DateCode::GetString ( )

◆ Read()

bool DateCode::Read ( HWPFile hwpf)
overridevirtual

Read properties from HIODevice object like stream, file, memory.

Parameters
hwpfHWPFile Object having all information for a hwp file.
Returns
True if reading from stream is successful.

Reimplemented from HBox.

Definition at line 159 of file hwpread.cxx.

References HWPFile::AddDateFormat(), CH_DATE_CODE, date, DATE_SIZE, dummy, format, HBox::hh, HWP_InvalidFileFormat, HWPFile::Read2b(), and HWPFile::SetState().

Member Data Documentation

◆ date

short DateCode::date[6]

year/month/week/day/hour/minute

Definition at line 152 of file hbox.h.

Referenced by GetString(), HwpReader::makeDateFormat(), and Read().

◆ dummy

hchar DateCode::dummy

Definition at line 153 of file hbox.h.

Referenced by Read().

◆ format

hchar DateCode::format[DATE_SIZE]

Definition at line 148 of file hbox.h.

Referenced by GetString(), HwpReader::makeDateFormat(), FieldCode::Read(), and Read().

◆ key

unsigned char DateCode::key

The documentation for this struct was generated from the following files: