]> Creatis software - creaContours.git/blob - lib/Interface_ManagerContour_NDimensions/PerformingOperation.cxx
Some fixes for wxString vs std::string pb.
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / PerformingOperation.cxx
1
2 //----------------------------------------------------------------------------------------------------------------
3 // Class definition include
4 //----------------------------------------------------------------------------------------------------------------
5 #include "PerformingOperation.h"
6
7 //----------------------------------------------------------------------------------------------------------------
8 // Class implementation
9 //----------------------------------------------------------------------------------------------------------------
10 /** @file PerformingOperation.cxx */
11
12
13 //------------------------------------------------------------------------------------------------------------
14 // Includes
15 //------------------------------------------------------------------------------------------------------------
16
17 //------------------------------------------------------------------------------------------------------------
18 // Generated events declaration and definition
19 //------------------------------------------------------------------------------------------------------------
20
21 //DEFINE_EVENT_TYPE( wxEVT_CONCEPT_RELEASE )
22
23
24         //------------------------------------------------------------------------------------------------------------
25         // Constructors & Destructors
26         //------------------------------------------------------------------------------------------------------------
27         PerformingOperation :: PerformingOperation()
28         {
29                 _startCommand = '\0';
30                 _endCommand = '\0';
31         }
32
33         PerformingOperation :: ~PerformingOperation()
34         {
35                 reset();
36         }
37                 
38         
39         //------------------------------------------------------------------------------------------------------------
40         //  Attributes PerformingOperation :: getters and PerformingOperation :: setters
41         //------------------------------------------------------------------------------------------------------------
42
43         void PerformingOperation :: setStartOperationInstantVector( std::vector<int> instantData )
44         {
45                 for (int i =0; i< instantData.size(); i++)
46                 {
47                         _startOperationInstantVector.push_back( instantData[i] );
48                 }
49         }
50         //------------------------------------------------------------------------------------------------------------
51         std::vector<int> PerformingOperation :: getStartOperationInstantVector( )
52         {
53                 return _startOperationInstantVector;
54         }
55         //------------------------------------------------------------------------------------------------------------
56         void PerformingOperation :: setEndOperationInstantVector( std::vector<int> instantData )
57         {
58                 for (int i =0; i< instantData.size(); i++)
59                 {
60                         _endOperationInstantVector.push_back( instantData[i] );
61                 }               
62         }
63         //------------------------------------------------------------------------------------------------------------
64         std::vector<int> PerformingOperation :: getEndOperationInstantVector( )
65         {
66                 return _endOperationInstantVector;
67         }
68         //------------------------------------------------------------------------------------------------------------
69         char PerformingOperation :: getStartCommand()
70         {
71                 return _startCommand;
72         }
73         //------------------------------------------------------------------------------------------------------------
74         void PerformingOperation :: setStartCommand( char theCommand )
75         {
76                 _startCommand = theCommand;
77         }
78         //------------------------------------------------------------------------------------------------------------
79         char PerformingOperation :: getEndCommand()
80         {
81                 return _endCommand;
82         }
83
84         //------------------------------------------------------------------------------------------------------------
85         void PerformingOperation :: setEndCommand( char theCommand )
86         {
87                 _endCommand = theCommand;
88         }
89
90         //------------------------------------------------------------------------------------------------------------
91         std::vector<std::string> PerformingOperation:: getKeyNamesOperationElems(  )
92         {
93                 return _keyNamesOperationElems;
94         }
95         //------------------------------------------------------------------------------------------------------------
96         void PerformingOperation:: setKeyNamesOperationElems( std::vector<std::string> dataVector)
97         {
98                 _keyNamesOperationElems = dataVector;
99         }
100
101         //------------------------------------------------------------------------------------------------------------
102         //  Other functional methods
103         //------------------------------------------------------------------------------------------------------------
104
105         void PerformingOperation :: reset()
106         {
107                 _startCommand = '\0';
108                 _endCommand = '\0';
109                 _startOperationInstantVector.clear();
110                 _endOperationInstantVector.clear();
111                 _keyNamesOperationElems.clear();
112         }
113
114         //------------------------------------------------------------------------------------------------------------
115         //  Private methods
116         //------------------------------------------------------------------------------------------------------------
117
118         //------------------------------------------------------------------------------------------------------------
119         // Creational and initialization methods
120         //------------------------------------------------------------------------------------------------------------
121