OpenStudio:utilities
 AllClasses Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages

#include "Date.hpp"

Inheritance diagram for openstudio::NthDayOfWeekInMonth:

Public Types

enum  domain { BOOST_PP_SEQ_FOR_EACH =(OPENSTUDIO_ENUM_DOMAIN_ELEM, NthDayOfWeekInMonth , ((first)(first)(boost::gregorian::nth_day_of_the_week_in_month::first)) ((second)(second)(boost::gregorian::nth_day_of_the_week_in_month::second)) ((third)(third)(boost::gregorian::nth_day_of_the_week_in_month::third)) ((fourth)(fourth)(boost::gregorian::nth_day_of_the_week_in_month::fourth)) ((fifth)(fifth)(boost::gregorian::nth_day_of_the_week_in_month::fifth)) ) }

Public Member Functions

 NthDayOfWeekInMonth ()
 NthDayOfWeekInMonth (const std::string &t_name)
 NthDayOfWeekInMonth (int t_value)
domain value () const

Static Public Member Functions

static std::string enumName ()

Detailed Description

NthDayOfWeekInMonth is an enum for the nth DayOfWeek in MonthOfYear (e.g.

first Saturday in January).

The fifth NthDayOfWeekInMonth is equivalent to the last DayOfWeek in MonthOfYear. See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp for documentation of the class structure. The actual macro call is:

OPENSTUDIO_ENUM( NthDayOfWeekInMonth,
((first)(first)(boost::gregorian::nth_day_of_the_week_in_month::first))
((second)(second)(boost::gregorian::nth_day_of_the_week_in_month::second))
((third)(third)(boost::gregorian::nth_day_of_the_week_in_month::third))
((fourth)(fourth)(boost::gregorian::nth_day_of_the_week_in_month::fourth))
((fifth)(fifth)(boost::gregorian::nth_day_of_the_week_in_month::fifth))
);

Member Enumeration Documentation

Enumerator
BOOST_PP_SEQ_FOR_EACH 

Constructor & Destructor Documentation

openstudio::NthDayOfWeekInMonth::NthDayOfWeekInMonth ( )
inline
openstudio::NthDayOfWeekInMonth::NthDayOfWeekInMonth ( const std::string &  t_name)
inline
openstudio::NthDayOfWeekInMonth::NthDayOfWeekInMonth ( int  t_value)
inline

Member Function Documentation

static std::string openstudio::NthDayOfWeekInMonth::enumName ( )
inlinestatic
domain openstudio::NthDayOfWeekInMonth::value ( ) const
inline