[4] | 1 | /*--------------------------------------------------------------------------*/ |
---|
| 2 | /* Volume Rendering Application */ |
---|
| 3 | /* Copyright (C) 2006-2007 Nicholas Schwarz */ |
---|
| 4 | /* */ |
---|
| 5 | /* This software is free software; you can redistribute it and/or modify it */ |
---|
| 6 | /* under the terms of the GNU Lesser General Public License as published by */ |
---|
| 7 | /* the Free Software Foundation; either Version 2.1 of the License, or */ |
---|
| 8 | /* (at your option) any later version. */ |
---|
| 9 | /* */ |
---|
| 10 | /* This software is distributed in the hope that it will be useful, but */ |
---|
| 11 | /* WITHOUT ANY WARRANTY; without even the implied warranty of */ |
---|
| 12 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser */ |
---|
| 13 | /* General Public License for more details. */ |
---|
| 14 | /* */ |
---|
| 15 | /* You should have received a copy of the GNU Lesser Public License along */ |
---|
| 16 | /* with this library; if not, write to the Free Software Foundation, Inc., */ |
---|
| 17 | /* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ |
---|
| 18 | /*--------------------------------------------------------------------------*/ |
---|
| 19 | |
---|
| 20 | #ifndef OPERATION_H |
---|
| 21 | #define OPERATION_H |
---|
| 22 | |
---|
| 23 | /*--------------------------------------------------------------------------*/ |
---|
| 24 | |
---|
| 25 | #include <stdio.h> |
---|
| 26 | #include <stdlib.h> |
---|
| 27 | #include <string.h> |
---|
| 28 | |
---|
| 29 | /*--------------------------------------------------------------------------*/ |
---|
| 30 | |
---|
| 31 | class Operation { |
---|
| 32 | |
---|
| 33 | public: |
---|
| 34 | |
---|
| 35 | // Default constructor |
---|
| 36 | Operation(); |
---|
| 37 | |
---|
| 38 | // Constructor that parses a message string |
---|
| 39 | Operation(char* string); |
---|
| 40 | |
---|
| 41 | // Default destructor |
---|
| 42 | ~Operation(); |
---|
| 43 | |
---|
| 44 | // Get class name |
---|
| 45 | char* GetClassName(); |
---|
| 46 | |
---|
| 47 | // Get operation information |
---|
| 48 | char* GetInfo(); |
---|
| 49 | |
---|
| 50 | // Get log number |
---|
| 51 | int GetLogNumber(); |
---|
| 52 | |
---|
| 53 | // Get process number |
---|
| 54 | int GetProcessNumber(); |
---|
| 55 | |
---|
| 56 | // Get operation time |
---|
| 57 | long long GetTime(); |
---|
| 58 | |
---|
| 59 | private: |
---|
| 60 | |
---|
| 61 | // Class name |
---|
| 62 | char _className[1024]; |
---|
| 63 | |
---|
| 64 | // Operation information |
---|
| 65 | char _info[4096]; |
---|
| 66 | |
---|
| 67 | // Log number |
---|
| 68 | int _logNumber; |
---|
| 69 | |
---|
| 70 | // Process number |
---|
| 71 | int _processNumber; |
---|
| 72 | |
---|
| 73 | // Operation time |
---|
| 74 | long long _time; |
---|
| 75 | |
---|
| 76 | }; |
---|
| 77 | |
---|
| 78 | /*--------------------------------------------------------------------------*/ |
---|
| 79 | |
---|
| 80 | #endif |
---|
| 81 | |
---|
| 82 | /*--------------------------------------------------------------------------*/ |
---|