| 112 | // Raise an exception if it can't be loaded. |
| 113 | |
| 114 | CachedFileRcPtr LocalFileFormat::read(std::istream & istream, |
| 115 | const std::string & fileName, |
| 116 | Interpolation /*interp*/) const |
| 117 | { |
| 118 | CDLParser parser(fileName); |
| 119 | parser.parse(istream); |
| 120 | |
| 121 | LocalCachedFileRcPtr cachedFile = LocalCachedFileRcPtr(new LocalCachedFile()); |
| 122 | |
| 123 | parser.getCDLTransforms(cachedFile->m_transformMap, |
| 124 | cachedFile->m_transformVec, |
| 125 | cachedFile->m_metadata); |
| 126 | |
| 127 | return cachedFile; |
| 128 | } |
| 129 | |
| 130 | void LocalFileFormat::write(const ConstConfigRcPtr & /*config*/, |
| 131 | const ConstContextRcPtr & /*context*/, |
nothing calls this directly
no test coverage detected