Skip to content

Commit 4d386aa

Browse files
committed
[#28,!20] Added commentary to BaseConfigBackend class.
1 parent 455dc3f commit 4d386aa

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/lib/config_backend/base_config_backend.h

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,34 @@
1414
namespace isc {
1515
namespace cb {
1616

17+
/// @brief Base class for server specific configuration backends.
1718
class BaseConfigBackend {
1819
public:
1920

21+
/// @brief Virtual destructor.
22+
virtual ~BaseConfigBackend() { }
2023

21-
virtual ~BaseConfigBackend() {
22-
}
23-
24+
/// @brief Returns backend type in the textual format.
2425
virtual std::string getType() const = 0;
2526

27+
/// @brief Returns backend host.
28+
///
29+
/// This is used by the @c BaseConfigBackendPool to select backend
30+
/// when @c BackendSelector is specified.
31+
///
32+
/// @return host on which the database is located.
2633
virtual std::string getHost() const = 0;
2734

35+
/// @brief Returns backend port number.
36+
///
37+
/// This is used by the @c BaseConfigBackendPool to select backend
38+
/// when @c BackendSelector is specified.
39+
///
40+
/// @return Port number on which database service is available.
2841
virtual uint16_t getPort() const = 0;
2942
};
3043

44+
/// @brief Shared pointer to the @c BaseConfigBackend.
3145
typedef boost::shared_ptr<BaseConfigBackend> BaseConfigBackendPtr;
3246

3347
} // end of namespace isc::cb

0 commit comments

Comments
 (0)