34 #ifndef SOMAIO_DATASOURCEINFO_DATASOURCEINFOLOADER_H 
   35 #define SOMAIO_DATASOURCEINFO_DATASOURCEINFOLOADER_H 
  120                                   const std::vector<std::string> & 
 
  145                             int passbegin = 1, 
int passend = 3 );
 
  163       static std::set<std::string> 
extensions( 
const std::string & format );
 
  166       static std::set<std::string> 
formats( 
const std::string & ext );
 
  170                                                const std::string & data_type_name);
 
  174                                                 const std::string & data_type_name);
 
  179           const std::string & ext, 
 
Generic information retreiver / checker for all data sources and file formats.
static std::set< std::string > formats(const std::string &ext)
Formats matching a specified extension.
static carto::Object readMinf(DataSource &ds, carto::Object base=carto::none(), carto::Object options=carto::none())
Called inter alia by format-specific FormatChecker to complete header information.
static carto::SyntaxSet & minfSyntax()
Syntax for minf dictionaries.
static std::set< std::string > writeFormats(const std::string &ext, const std::string &data_type_name)
Available writing formats for an extension and a data type.
static std::set< std::string > extensions(const std::string &format)
Extensions matching a specified format.
static void registerFormat(const std::string &fmtid, FormatChecker *format, const std::vector< std::string > &extensions)
Registers a FormatChecker into the dictionary.
static std::set< std::string > formats(const std::string &ext, soma::IOObjectTypesDictionary::FormatInfo &format_info)
Available formats for an extension and a format info.
DataSourceInfo check(DataSourceInfo dsi, carto::Object options=carto::none(), int passbegin=1, int passend=3)
Finds the right format checker.
static std::set< std::string > readFormats(const std::string &ext, const std::string &data_type_name)
Available reading formats for an extension and a data type.
static FormatChecker * formatInfo(const std::string &format)
Returns the corresponding FormatChecker.
std::string errorMessage() const
Informative object used by IO system.
Abstraction layer for various data sources (file, buffer, socket...).
std::set< std::string >(* FormatInfo)()
std::map< std::string, Syntax > SyntaxSet