Classes | Typedefs | Functions
openfluid::utils Namespace Reference

Classes

class  CMakeProxy
 
class  CommandLineCommand
 
class  CommandLineOption
 
class  CommandLineParser
 
class  ExternalProgram
 
class  FileDownloader
 
class  FluidHubAPIClient
 
struct  GDALDriverInfos_t
 
class  GitProxy
 
class  GrassGISProxy
 
class  KillableSingleton
 
class  MeyerSingleton
 
class  ProgramProxy
 
class  RESTClient
 

Typedefs

typedef std::map< std::string, GDALDriverInfos_tGDALDriversFilesExts_t
 

Functions

const GDALDriversFilesExts_t OPENFLUID_API getOGRFilesDriversForOpenFLUID ()
 
const GDALDriversFilesExts_t OPENFLUID_API getGDALFilesDriversForOpenFLUID ()
 
const std::set< std::string > OPENFLUID_API getOGRFilesExtensionsForOpenFLUID ()
 
QString OPENFLUID_API getOGRGDALFormatsForQFileDialogs (const GDALDriversFilesExts_t &Drivers, const QString &AllFormatsLabel)
 

Typedef Documentation

Function Documentation

const GDALDriversFilesExts_t OPENFLUID_API openfluid::utils::getGDALFilesDriversForOpenFLUID ( )

Returns a list of GDAL drivers available in OpenFLUID for GIS vector files

Returns
an openfluid::utils::GDALDriversFilesExts_t
const GDALDriversFilesExts_t OPENFLUID_API openfluid::utils::getOGRFilesDriversForOpenFLUID ( )

Returns a list of OGR drivers available in OpenFLUID for GIS vector files

Returns
an openfluid::utils::GDALDriversFilesExts_t
const std::set<std::string> OPENFLUID_API openfluid::utils::getOGRFilesExtensionsForOpenFLUID ( )

Returns a set of GIS vector files extensions available in OpenFLUID

Returns
a set of files extensions
QString OPENFLUID_API openfluid::utils::getOGRGDALFormatsForQFileDialogs ( const GDALDriversFilesExts_t Drivers,
const QString &  AllFormatsLabel 
)

Returns the available GDAL/OGR formats as a QFileDialog formats string. The string is built according to GDAL/OGR available drivers. The OGRRegisterAll() and/or GDALAllRegister() instruction must be called before using this function.

Parameters
[in]DriversThe available extensions list
[in]AllFormatsLabelthe label displayed for all formats
Returns
the format string (e.g. "All vector files (*.shp *.mif *.tab);;ESRI Shapefiles (*.shp);;Mapinfo (*.mif *.tab)")