| 46 | \*---------------------------------------------------------------------------*/ |
| 47 | |
| 48 | class ensightFile |
| 49 | : |
| 50 | public OFstream |
| 51 | { |
| 52 | // Private data |
| 53 | |
| 54 | //- Allow undef in results |
| 55 | static bool allowUndef_; |
| 56 | |
| 57 | //- Value to represent undef in results |
| 58 | static scalar undefValue_; |
| 59 | |
| 60 | //- The '*' mask appropriate for subDir |
| 61 | static string mask_; |
| 62 | |
| 63 | //- The printf format for zero-padded subdirectory numbers |
| 64 | static string dirFmt_; |
| 65 | |
| 66 | |
| 67 | // Private Member Functions |
| 68 | |
| 69 | //- Disallow default bitwise assignment |
| 70 | void operator=(const ensightFile&); |
| 71 | |
| 72 | //- Disallow default copy constructor |
| 73 | ensightFile(const ensightFile&); |
| 74 | |
| 75 | |
| 76 | public: |
| 77 | |
| 78 | // Constructors |
| 79 | |
| 80 | //- Construct from pathname |
| 81 | ensightFile |
| 82 | ( |
| 83 | const fileName& pathname, |
| 84 | IOstream::streamFormat format=IOstream::BINARY |
| 85 | ); |
| 86 | |
| 87 | |
| 88 | //- Destructor |
| 89 | ~ensightFile(); |
| 90 | |
| 91 | |
| 92 | // Access |
| 93 | |
| 94 | //- Return setting for whether 'undef' values are allowed in results |
| 95 | static bool allowUndef(); |
| 96 | |
| 97 | //- The '*' mask appropriate for subDir |
| 98 | static string mask(); |
| 99 | |
| 100 | //- Consistent zero-padded numbers for subdirectories |
| 101 | static string subDir(const label); |
| 102 | |
| 103 | //- Set width of subDir and mask. Default width is 8 digits. |
| 104 | // Max width is 31 digits. |
| 105 | static void subDirWidth(const label); |
no outgoing calls
no test coverage detected