// SimpleTableClaimManager.h #ifndef dset_SimpleTableClaimManager #define dset_SimpleTableClaimManager // A claim manager making use of tables through the SqlTable interface. #include "dataset_claim/ClaimManager.h" namespace dset { class SimpleTableClaimManager : public ClaimManager { private: // Implementation class. class Imp; private: // data Imp* m_pimp; public: // typedefs // Creator. typedef int (*Creator) (std::string); public: // static methods // Register a creator. // The name is the prefix of the connection string, e.g. MYSQL. int register_creator(std::string name, Creator pcre); // Fetch the connection for a file-based test catalog. // Catalog is created if it does not yet exist. static std::string test_instance(); public: // Constructor from a specified address. SimpleTableClaimManager(std::string add =""); // Is this a valid claim manager? bool is_valid() const; // Return the connection string. virtual std::string connection() const; }; } // end namespace dset #endif