00001 #if !defined(__UPPERCASECOMMAND_HPP)
00002 #define __UPPERCASECOMMAND_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(__COMMAND_HPP)
00029 #include <corelinux/Command.hpp>
00030 #endif
00031
00039 DECLARE_CLASS( UpperCaseCommand );
00040
00041 class UpperCaseCommand : public CORELINUX( Command )
00042 {
00043
00044 public:
00045
00046
00047
00048
00049
00051
00052 UpperCaseCommand( const std::string & );
00053
00055
00056 UpperCaseCommand( UpperCaseCommandCref );
00057
00059
00060 virtual ~UpperCaseCommand( void );
00061
00062
00063
00064
00066
00067 UpperCaseCommandRef operator=( UpperCaseCommandCref );
00068
00070
00071 bool operator==( UpperCaseCommandCref ) const;
00072
00073
00074
00075
00077
00078 const std::string & getOriginalValue( void ) const;
00079
00081
00082 const std::string & getNewValue( void ) const;
00083
00084
00085
00087
00088 virtual void setReverseCommand( CORELINUX(AbstractCommandPtr) );
00089
00091
00092 virtual void execute( void ) ;
00093
00094 protected:
00095
00097
00098 UpperCaseCommand( void )
00099 throw ( CORELINUX( Assertion ) );
00100
00101 protected:
00102
00103 std::string *theOriginalValue;
00104 std::string *theNewValue;
00105 private:
00106
00107
00108 };
00109
00110 #endif // if !defined(__UPPERCASECOMMAND_HPP)
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120