]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/snmp/Inquirer.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / snmp / Inquirer.h
index 4e10c3cb1dacbca87459cc96c488d37e1d64e6de..0f08a02c96849490ceb97e3b583f1d0074120555 100644 (file)
@@ -1,8 +1,13 @@
 /*
- * DEBUG: section 49    SNMP Interface
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
  *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
  */
 
+/* DEBUG: section 49    SNMP Interface */
+
 #ifndef SQUID_SNMPX_INQUIRER_H
 #define SQUID_SNMPX_INQUIRER_H
 
@@ -20,19 +25,21 @@ namespace Snmp
 /// aggregates strand responses and send back the result to client
 class Inquirer: public Ipc::Inquirer
 {
+    CBDATA_CHILD(Inquirer);
+
 public:
     Inquirer(const Request& aRequest, const Ipc::StrandCoords& coords);
 
 protected:
     /* AsyncJob API */
-    virtual void start();
-    virtual bool doneAll() const;
+    void start() override;
+    bool doneAll() const override;
 
     /* Ipc::Inquirer API */
-    virtual void cleanup();
-    virtual void handleException(const std::exception& e);
-    virtual void sendResponse();
-    virtual bool aggregate(Ipc::Response::Pointer aResponse);
+    void cleanup() override;
+    void handleException(const std::exception& e) override;
+    void sendResponse() override;
+    bool aggregate(Ipc::Response::Pointer aResponse) override;
 
 private:
     void noteCommClosed(const CommCloseCbParams& params);
@@ -43,10 +50,9 @@ private:
 
     AsyncCall::Pointer writer; ///< comm_write callback
     AsyncCall::Pointer closer; ///< comm_close handler
-
-    CBDATA_CLASS2(Inquirer);
 };
 
 } // namespace Snmp
 
 #endif /* SQUID_SNMPX_INQUIRER_H */
+