]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#28,!20] Added commentary to BaseConfigBackend class.
authorMarcin Siodelski <marcin@isc.org>
Wed, 5 Sep 2018 10:23:26 +0000 (12:23 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 18 Sep 2018 05:06:26 +0000 (07:06 +0200)
src/lib/config_backend/base_config_backend.h

index 0ca6671269e9977e53c50f1807820b87d372ba13..b92d2079be6996fc1f3c0fc0e315613487cbac47 100644 (file)
 namespace isc {
 namespace cb {
 
+/// @brief Base class for server specific configuration backends.
 class BaseConfigBackend {
 public:
 
+    /// @brief Virtual destructor.
+    virtual ~BaseConfigBackend() { }
 
-    virtual ~BaseConfigBackend() {
-    }
-
+    /// @brief Returns backend type in the textual format.
     virtual std::string getType() const = 0;
 
+    /// @brief Returns backend host.
+    ///
+    /// This is used by the @c BaseConfigBackendPool to select backend
+    /// when @c BackendSelector is specified.
+    ///
+    /// @return host on which the database is located.
     virtual std::string getHost() const = 0;
 
+    /// @brief Returns backend port number.
+    ///
+    /// This is used by the @c BaseConfigBackendPool to select backend
+    /// when @c BackendSelector is specified.
+    ///
+    /// @return Port number on which database service is available.
     virtual uint16_t getPort() const = 0;
 };
 
+/// @brief Shared pointer to the @c BaseConfigBackend.
 typedef boost::shared_ptr<BaseConfigBackend> BaseConfigBackendPtr;
 
 } // end of namespace isc::cb