00001 00002 //---------------------------------------------------------------------------------------------------------------- 00003 // Class definition include 00004 //---------------------------------------------------------------------------------------------------------------- 00005 #include "PerformingOperation.h" 00006 00007 //---------------------------------------------------------------------------------------------------------------- 00008 // Class implementation 00009 //---------------------------------------------------------------------------------------------------------------- 00013 //------------------------------------------------------------------------------------------------------------ 00014 // Includes 00015 //------------------------------------------------------------------------------------------------------------ 00016 00017 //------------------------------------------------------------------------------------------------------------ 00018 // Generated events declaration and definition 00019 //------------------------------------------------------------------------------------------------------------ 00020 00021 //DEFINE_EVENT_TYPE( wxEVT_CONCEPT_RELEASE ) 00022 00023 00024 //------------------------------------------------------------------------------------------------------------ 00025 // Constructors & Destructors 00026 //------------------------------------------------------------------------------------------------------------ 00027 PerformingOperation :: PerformingOperation() 00028 { 00029 _startCommand = '\0'; 00030 _endCommand = '\0'; 00031 } 00032 00033 PerformingOperation :: ~PerformingOperation() 00034 { 00035 reset(); 00036 } 00037 00038 00039 //------------------------------------------------------------------------------------------------------------ 00040 // Attributes PerformingOperation :: getters and PerformingOperation :: setters 00041 //------------------------------------------------------------------------------------------------------------ 00042 00043 void PerformingOperation :: setStartOperationInstantVector( std::vector<int> instantData ) 00044 { 00045 for (int i =0; i< instantData.size(); i++) 00046 { 00047 _startOperationInstantVector.push_back( instantData[i] ); 00048 } 00049 } 00050 //------------------------------------------------------------------------------------------------------------ 00051 std::vector<int> PerformingOperation :: getStartOperationInstantVector( ) 00052 { 00053 return _startOperationInstantVector; 00054 } 00055 //------------------------------------------------------------------------------------------------------------ 00056 void PerformingOperation :: setEndOperationInstantVector( std::vector<int> instantData ) 00057 { 00058 for (int i =0; i< instantData.size(); i++) 00059 { 00060 _endOperationInstantVector.push_back( instantData[i] ); 00061 } 00062 } 00063 //------------------------------------------------------------------------------------------------------------ 00064 std::vector<int> PerformingOperation :: getEndOperationInstantVector( ) 00065 { 00066 return _endOperationInstantVector; 00067 } 00068 //------------------------------------------------------------------------------------------------------------ 00069 char PerformingOperation :: getStartCommand() 00070 { 00071 return _startCommand; 00072 } 00073 //------------------------------------------------------------------------------------------------------------ 00074 void PerformingOperation :: setStartCommand( char theCommand ) 00075 { 00076 _startCommand = theCommand; 00077 } 00078 //------------------------------------------------------------------------------------------------------------ 00079 char PerformingOperation :: getEndCommand() 00080 { 00081 return _endCommand; 00082 } 00083 00084 //------------------------------------------------------------------------------------------------------------ 00085 void PerformingOperation :: setEndCommand( char theCommand ) 00086 { 00087 _endCommand = theCommand; 00088 } 00089 00090 //------------------------------------------------------------------------------------------------------------ 00091 std::vector<std::string> PerformingOperation:: getKeyNamesOperationElems( ) 00092 { 00093 return _keyNamesOperationElems; 00094 } 00095 //------------------------------------------------------------------------------------------------------------ 00096 void PerformingOperation:: setKeyNamesOperationElems( std::vector<std::string> dataVector) 00097 { 00098 _keyNamesOperationElems = dataVector; 00099 } 00100 00101 //------------------------------------------------------------------------------------------------------------ 00102 // Other functional methods 00103 //------------------------------------------------------------------------------------------------------------ 00104 00105 void PerformingOperation :: reset() 00106 { 00107 _startCommand = '\0'; 00108 _endCommand = '\0'; 00109 _startOperationInstantVector.clear(); 00110 _endOperationInstantVector.clear(); 00111 _keyNamesOperationElems.clear(); 00112 } 00113 00114 //------------------------------------------------------------------------------------------------------------ 00115 // Private methods 00116 //------------------------------------------------------------------------------------------------------------ 00117 00118 //------------------------------------------------------------------------------------------------------------ 00119 // Creational and initialization methods 00120 //------------------------------------------------------------------------------------------------------------ 00121