Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:55:05

0001 #ifndef DDL_DocumentProvider_H
0002 #define DDL_DocumentProvider_H
0003 
0004 #include <vector>
0005 #include <string>
0006 
0007 /// DDLDocumentProvider provides a set of URLs and filenames.
0008 /** @class DDLDocumentProvider
0009  * @author Michael Case
0010  *
0011  *  DDLDocumentProvider.h  -  description
0012  *  -------------------
0013  *  begin: Mon Feb 24 2003
0014  *  email: case@ucdhep.ucdavis.edu
0015  *
0016  *  This abstract class defines the interface that is expected by the
0017  *  DDLParser to obtain its list of files for parsing.
0018  *
0019  */
0020 class DDLDocumentProvider {
0021 public:
0022   virtual ~DDLDocumentProvider() {}
0023 
0024   /// Return a list of files as a vector of strings.
0025   virtual const std::vector<std::string>& getFileList(void) const = 0;
0026 
0027   /// Return a list of urls as a vector of strings.
0028   virtual const std::vector<std::string>& getURLList(void) const = 0;
0029 
0030   /// Return a flag whether to do xml validation or not.
0031   virtual bool doValidation() const = 0;
0032 
0033   /// Return the Schema Location.
0034   virtual std::string getSchemaLocation() const = 0;
0035 
0036   /// Print out the list of files.
0037   virtual void dumpFileList(void) const = 0;
0038 
0039   /// (does not belong here) Read in the configuration file.
0040   virtual int readConfig(const std::string& filename) = 0;
0041 
0042 protected:
0043 private:
0044 };
0045 
0046 #endif