00001 #if !defined(__Select_HPP)
00002 #define __Select_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if !defined(__COMMON_HPP)
00025 #include <corelinux/Common.hpp>
00026 #endif
00027
00028 #if !defined(__VECTOR_HPP)
00029 #include <corelinux/Vector.hpp>
00030 #endif
00031
00032 #if !defined(__SUBJECTOBSERVER_HPP)
00033 #include <SubjectObserver.hpp>
00034 #endif
00035
00036 DECLARE_CLASS( Select );
00037
00043 class Select : public SubjectObserver
00044 {
00045 CORELINUX_VECTOR( string , ListEntries );
00046
00047 public:
00048
00049
00050
00051
00052
00054
00055 Select( void );
00056
00058
00059 virtual ~Select( void );
00060
00061
00062
00063
00064
00066
00067 bool operator==( SelectCref ) const;
00068
00069
00070
00071
00072
00073
00074
00075
00076
00078
00079 bool getSelection( void );
00080
00087 virtual void event( CORELINUX( Event<corelinux::Identifier> ) * ) throw ( CORELINUX(NullPointerException) );
00088
00089
00090 protected:
00091
00093
00094 Select( SelectCref ) throw ( CORELINUX( Assertion ) );
00095
00097
00098 SelectRef operator=( SelectCref ) throw ( CORELINUX( Assertion ) );
00099
00100
00101 private:
00102
00104
00105 ListEntries theCurrentList;
00106
00107
00108 };
00109
00110 #endif // if !defined(__SELECT_HPP)
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121