ALMA Computing Group

Calendar Class Reference
[ACS Components Examples]

Simulates the behavior of a calendar using enums and pattern properties. More...

#include <acsexmplCalendarImpl.h>

List of all members.

Public Member Functions

 Calendar (const ACE_CString &name, maci::ContainerServices *containerServices)
 Constructor.
virtual ~Calendar ()
 Destructor.
virtual::acsexmplCalendar::RWDaysEnum_ptr day ()
 Returns a reference to the day property Implementation of IDL interface for the property.
virtual::acsexmplCalendar::RWMonthEnum_ptr month ()
 Returns a reference to the month property Implementation of IDL interface for the property.
virtual::ACS::RWpattern_ptr yearAttributes ()
 Returns a reference to the yearAttributes property Implementation of IDL interface for the property.
virtual::acsexmplCalendar::ROStateEnum_ptr state ()
 Returns a reference to the state property Implementation of IDL interface for the property.

Private Member Functions

void operator= (const Calendar &)
 ALMA C++ coding standards state copy operators should be disabled.

Private Attributes

baci::SmartPropertyPointer<
baci::RWpattern > 
m_yearAttributes_sp
 m_yearAttributes_sp is the calendar's year "attribute"
baci::SmartPropertyPointer<
RWEnumImpl< ACS_ENUM_T(acsexmplCalendar::DaysEnum),
POA_acsexmplCalendar::RWDaysEnum > 
m_day_sp )
 m_day_sp represents the day of the year.
baci::SmartPropertyPointer<
RWEnumImpl< ACS_ENUM_T(acsexmplCalendar::MonthEnum),
POA_acsexmplCalendar::RWMonthEnum > 
m_month_sp )
 m_month_sp represents the month of the year.
baci::SmartPropertyPointer<
ROEnumImpl< ACS_ENUM_T(acsexmplCalendar::StateEnum),
POA_acsexmplCalendar::ROStateEnum > 
m_state_sp )
 m_state_sp represents how good are we with the plan this year...


Detailed Description

Simulates the behavior of a calendar using enums and pattern properties.

This is an example component which includes enums and pattern types. It represents a simple calendar. Calendar provides no methods, but it has four enum/pattern properties.

Author:
Matej Sekoranja, Jozef Stefan Institute, Slovenia
Version:
"@(#) $Id: acsexmplCalendarImpl.h,v 1.98 2008/10/01 04:30:47 cparedes Exp $"

Definition at line 104 of file acsexmplCalendarImpl.h.


Constructor & Destructor Documentation

Calendar::Calendar const ACE_CString &  name,
maci::ContainerServices *  containerServices
 

Constructor.

Parameters:
poa poa which will activate this and also all other components
name component name
Definition at line 40 of file acsexmplCalendarImpl.cpp.

Calendar::~Calendar  )  [virtual]
 

Destructor.

Definition at line 52 of file acsexmplCalendarImpl.cpp.


Member Function Documentation

acsexmplCalendar::RWDaysEnum_ptr Calendar::day  ) 
 

Returns a reference to the day property Implementation of IDL interface for the property.



Definition at line 59 of file acsexmplCalendarImpl.cpp.

References m_day_sp.

acsexmplCalendar::RWMonthEnum_ptr Calendar::month  ) 
 

Returns a reference to the month property Implementation of IDL interface for the property.



Definition at line 71 of file acsexmplCalendarImpl.cpp.

References m_month_sp.

void Calendar::operator= const Calendar  )  [private]
 

ALMA C++ coding standards state copy operators should be disabled.

acsexmplCalendar::ROStateEnum_ptr Calendar::state  ) 
 

Returns a reference to the state property Implementation of IDL interface for the property.



Definition at line 95 of file acsexmplCalendarImpl.cpp.

References m_state_sp.

ACS::RWpattern_ptr Calendar::yearAttributes  ) 
 

Returns a reference to the yearAttributes property Implementation of IDL interface for the property.



Definition at line 83 of file acsexmplCalendarImpl.cpp.

References m_yearAttributes_sp.


Member Data Documentation

baci::SmartPropertyPointer< RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::DaysEnum), POA_acsexmplCalendar::RWDaysEnum> Calendar::m_day_sp) [private]
 

m_day_sp represents the day of the year.

Definition at line 174 of file acsexmplCalendarImpl.h.

Referenced by day().

baci::SmartPropertyPointer< RWEnumImpl<ACS_ENUM_T(acsexmplCalendar::MonthEnum), POA_acsexmplCalendar::RWMonthEnum> Calendar::m_month_sp) [private]
 

m_month_sp represents the month of the year.

Definition at line 181 of file acsexmplCalendarImpl.h.

Referenced by month().

baci::SmartPropertyPointer< ROEnumImpl<ACS_ENUM_T(acsexmplCalendar::StateEnum), POA_acsexmplCalendar::ROStateEnum> Calendar::m_state_sp) [private]
 

m_state_sp represents how good are we with the plan this year...

Definition at line 188 of file acsexmplCalendarImpl.h.

Referenced by state().

baci::SmartPropertyPointer<baci::RWpattern> Calendar::m_yearAttributes_sp [private]
 

m_yearAttributes_sp is the calendar's year "attribute"

Definition at line 167 of file acsexmplCalendarImpl.h.

Referenced by yearAttributes().


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