
#include "Raster/RasterFileFormat.H"#include "Util/StringConversions.H"#include "Util/log.H"
Go to the source code of this file.
Functions | |
| std::string | convertToString (const RasterFileFormat val) |
| RasterFileFormat string conversion. | |
| void | convertFromString (const std::string &str, RasterFileFormat &val) |
| RasterFileFormat string conversion. | |
file formats supported by Raster
Definition in file RasterFileFormat.C.
| void convertFromString | ( | const std::string & | str, | |
| RasterFileFormat & | val | |||
| ) |
RasterFileFormat string conversion.
The names used in the definition of the enum RasterFileFormat will be returned
Definition at line 67 of file RasterFileFormat.C.
References RASFMT_CCODE, RASFMT_DPX, RASFMT_JPEG, RASFMT_PFM, RASFMT_PFZ, RASFMT_PNG, RASFMT_PNM, RASFMT_RAW_IMAGE, RASFMT_RAW_VIDEO, and RASFMT_TXT.
| std::string convertToString | ( | const RasterFileFormat | val | ) |
RasterFileFormat string conversion.
Use it, for example, if you got a file format as text from the command line and need to convert that to a RasterFileFormat value for a ModelParam. Text strings should match the symbolic names of the RasterFileFormat enum.
Definition at line 47 of file RasterFileFormat.C.
References RASFMT_CCODE, RASFMT_DPX, RASFMT_JPEG, RASFMT_PFM, RASFMT_PFZ, RASFMT_PNG, RASFMT_PNM, RASFMT_RAW_IMAGE, RASFMT_RAW_VIDEO, and RASFMT_TXT.
1.6.3