1 // Counter.h: interface for the CCounter class.
3 //////////////////////////////////////////////////////////////////////
5 #if !defined(AFX_COUNTER_H__0C20D48D_E90E_4B32_B53C_2C91974411DB__INCLUDED_)
6 #define AFX_COUNTER_H__0C20D48D_E90E_4B32_B53C_2C91974411DB__INCLUDED_
10 #endif // _MSC_VER > 1000
18 * Classe CCounter : represent counters in .LOGIC files
23 CCounter( const CString
&name
= "");
27 inline const CString
&name() const { return m_sName
; }
28 inline const CString
&way() const { return m_sWay
; }
29 inline const CString
&mode() const { return m_sMode
; }
30 inline long upperLimit() const { return m_nUpperLimit
; }
31 inline long lowerLimit() const { return m_nLowerLimit
; }
33 inline void name( const CString
&name
) { m_sName
= name
; }
34 inline void way( const CString
&way
) { m_sWay
= way
; }
35 inline void mode( const CString
&mode
) { m_sMode
= mode
; }
36 inline void lowerLimit( long min
) { m_nLowerLimit
= min
; }
37 inline void upperLimit( long max
) { m_nUpperLimit
= max
; }
44 /// mode (shuttle/loop/stop_on_arrival)
59 * Set a CLogicCounter object from a CCounter
61 void cCounterToCLogicCounter( CCounter
& counter
, NLLOGIC::CLogicCounter
& logicCounter
);
65 * Set a CCounter object from a CLogicCounter
67 void cLogicCounterToCCounter( const NLLOGIC::CLogicCounter
& logicCounter
, CCounter
& counter
);
71 #endif // !defined(AFX_COUNTER_H__0C20D48D_E90E_4B32_B53C_2C91974411DB__INCLUDED_)