OpenStructure
Public Member Functions | Static Public Member Functions | Data Fields
Date Struct Reference

#include <compound.hh>

Public Member Functions

 Date (int y, int m, int d)
 
 Date ()
 
bool operator< (const Date &date) const
 
bool operator== (const Date &date) const
 
bool operator!= (const Date &date) const
 
String ToString () const
 

Static Public Member Functions

static Date FromString (const StringRef &str)
 

Data Fields

int year
 
int month
 
int day
 

Detailed Description

Definition at line 35 of file compound.hh.

Constructor & Destructor Documentation

◆ Date() [1/2]

Date ( int  y,
int  m,
int  d 
)
inline

Definition at line 36 of file compound.hh.

◆ Date() [2/2]

Date ( )
inline

Definition at line 39 of file compound.hh.

Member Function Documentation

◆ FromString()

static Date FromString ( const StringRef str)
inlinestatic

Definition at line 56 of file compound.hh.

◆ operator!=()

bool operator!= ( const Date date) const
inline

Definition at line 51 of file compound.hh.

◆ operator<()

bool operator< ( const Date date) const
inline

Definition at line 42 of file compound.hh.

◆ operator==()

bool operator== ( const Date date) const
inline

Definition at line 46 of file compound.hh.

◆ ToString()

String ToString ( ) const

Field Documentation

◆ day

int day

Definition at line 79 of file compound.hh.

◆ month

int month

Definition at line 78 of file compound.hh.

◆ year

int year

Definition at line 77 of file compound.hh.


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