| 59 | \*---------------------------------------------------------------------------*/ |
| 60 | |
| 61 | class surfaceFormatsCore |
| 62 | { |
| 63 | protected: |
| 64 | |
| 65 | //- Return a list with a single entry, |
| 66 | // the size corresponds to that of the container |
| 67 | template<class Container> |
| 68 | static List<surfZone> oneZone |
| 69 | ( |
| 70 | const Container& container, |
| 71 | const word& name = "zone0" |
| 72 | ) |
| 73 | { |
| 74 | return List<surfZone>(1, surfZone(name, container.size(), 0, 0)); |
| 75 | } |
| 76 | |
| 77 | //- Read non-comment line |
| 78 | static string getLineNoComment(IFstream&); |
| 79 | |
| 80 | |
| 81 | public: |
| 82 | |
| 83 | // Static Data |
| 84 | |
| 85 | //- The file extension corresponding to 'native' surface format |
| 86 | // Normally "ofs" (mnemonic: OF = OpenFOAM, S = Surface) |
| 87 | static word nativeExt; |
| 88 | |
| 89 | |
| 90 | // Static Member Functions |
| 91 | |
| 92 | static bool checkSupport |
| 93 | ( |
| 94 | const wordHashSet& available, |
| 95 | const word& ext, |
| 96 | const bool verbose, |
| 97 | const word& functionName |
| 98 | ); |
| 99 | |
| 100 | //- Return the local file name (within time directory) |
| 101 | // NEEDS FIXING |
| 102 | static fileName localMeshFileName(const word& surfName=""); |
| 103 | |
| 104 | //- Find instance with surfName |
| 105 | // NEEDS FIXING |
| 106 | static fileName findMeshInstance(const Time&, const word& surfName=""); |
| 107 | |
| 108 | //- Find mesh file with surfName |
| 109 | // NEEDS FIXING |
| 110 | static fileName findMeshFile(const Time&, const word& surfName=""); |
| 111 | |
| 112 | |
| 113 | // Constructors |
| 114 | |
| 115 | //- Construct null |
| 116 | surfaceFormatsCore(); |
| 117 | |
| 118 | |