| 89 | // Raise an exception if it can't be loaded. |
| 90 | |
| 91 | CachedFileRcPtr LocalFileFormat::read(std::istream & istream, |
| 92 | const std::string & fileName, |
| 93 | Interpolation /*interp*/) const |
| 94 | { |
| 95 | CDLParser parser(fileName); |
| 96 | parser.parse(istream); |
| 97 | |
| 98 | LocalCachedFileRcPtr cachedFile = LocalCachedFileRcPtr(new LocalCachedFile()); |
| 99 | |
| 100 | parser.getCDLTransforms(cachedFile->m_transformMap, |
| 101 | cachedFile->m_transformVec, |
| 102 | cachedFile->m_metadata); |
| 103 | |
| 104 | return cachedFile; |
| 105 | } |
| 106 | |
| 107 | void LocalFileFormat::write(const ConstConfigRcPtr & /*config*/, |
| 108 | const ConstContextRcPtr & /*context*/, |
nothing calls this directly
no test coverage detected