]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Document more of AccessLogEntry class
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 20 Apr 2010 09:59:12 +0000 (21:59 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 20 Apr 2010 09:59:12 +0000 (21:59 +1200)
src/AccessLogEntry.h

index 2de05b84e573749337d636cf90baa6445a5865d8..4ca4de8e26b0dc65d786860199fc7de9255fab88 100644 (file)
@@ -52,6 +52,10 @@ public:
 
     const char *url;
 
+    /** \brief This subclass holds log info for HTTP protocol
+     * \todo Inner class declarations should be moved outside
+     * \todo details of HTTP held in the parent class need moving into here.
+     */
     class HttpDetails
     {
 
@@ -72,15 +76,21 @@ public:
         }
     } http;
 
-    class ICPDetails
+    /** \brief This subclass holds log info for ICP protocol
+     * \todo Inner class declarations should be moved outside
+     */
+    class IcpDetails
     {
 
     public:
-        ICPDetails() : opcode(ICP_INVALID) {}
+        IcpDetails() : opcode(ICP_INVALID) {}
 
         icp_opcode opcode;
     } icp;
 
+    /** \brief This subclass holds log info for HTCP protocol
+     * \todo Inner class declarations should be moved outside
+     */
     class HtcpDetails
     {
     public:
@@ -89,6 +99,11 @@ public:
         const char *opcode;
     } htcp;
 
+    /** \brief This subclass holds log info for Squid internal stats
+     * \todo Inner class declarations should be moved outside
+     * \todo some details relevant to particular protocols need shuffling to other sub-classes
+     * \todo this object field need renaming to 'squid' or something.
+     */
     class CacheDetails
     {
 
@@ -130,6 +145,9 @@ public:
 
     } cache;
 
+    /** \brief This subclass holds log info for various headers in raw format
+     * \todo shuffle this to the relevant protocol section.
+     */
     class Headers
     {
 
@@ -155,6 +173,7 @@ public:
 
     // Why is this a sub-class and not a set of real "private:" fields?
     // It looks like its duplicating HTTPRequestMethod anyway!
+    // TODO: shuffle this to the relevant protocol section OR replace with request->method
     class Private
     {