| 91 | \*---------------------------------------------------------------------------*/ |
| 92 | |
| 93 | class IOobject |
| 94 | { |
| 95 | |
| 96 | public: |
| 97 | |
| 98 | // Public data types |
| 99 | |
| 100 | //- Enumeration defining the valid states of an IOobject |
| 101 | enum objectState |
| 102 | { |
| 103 | GOOD, |
| 104 | BAD |
| 105 | }; |
| 106 | |
| 107 | //- Enumeration defining the read options |
| 108 | enum readOption |
| 109 | { |
| 110 | MUST_READ, |
| 111 | MUST_READ_IF_MODIFIED, |
| 112 | READ_IF_PRESENT, |
| 113 | NO_READ |
| 114 | }; |
| 115 | |
| 116 | //- Enumeration defining the write options |
| 117 | enum writeOption |
| 118 | { |
| 119 | AUTO_WRITE = 0, |
| 120 | NO_WRITE = 1 |
| 121 | }; |
| 122 | |
| 123 | //- Enumeration defining the file checking options |
| 124 | enum fileCheckTypes |
| 125 | { |
| 126 | timeStamp, |
| 127 | timeStampMaster, |
| 128 | inotify, |
| 129 | inotifyMaster |
| 130 | }; |
| 131 | |
| 132 | static const NamedEnum<fileCheckTypes, 4> fileCheckTypesNames; |
| 133 | |
| 134 | private: |
| 135 | |
| 136 | // Private data |
| 137 | |
| 138 | //- Name |
| 139 | word name_; |
| 140 | |
| 141 | //- Class name read from header |
| 142 | word headerClassName_; |
| 143 | |
| 144 | //- Optional note |
| 145 | string note_; |
| 146 | |
| 147 | //- Instance path component |
| 148 | fileName instance_; |
| 149 | |
| 150 | //- Local path component |
no outgoing calls