]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Renamed MessageTranslator to MessageRep for consistency and brivety.
authorAlex Rousskov <rousskov@measurement-factory.com>
Thu, 8 May 2008 21:02:24 +0000 (15:02 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 8 May 2008 21:02:24 +0000 (15:02 -0600)
src/eCAP/Makefile.am
src/eCAP/MessageRep.cc [moved from src/eCAP/MessageTranslator.cc with 69% similarity]
src/eCAP/MessageRep.h [moved from src/eCAP/MessageTranslator.h with 53% similarity]
src/eCAP/XactionRep.cc
src/eCAP/XactionRep.h

index f7d2478e47fee4c81ea80a38faee9fed483f77a0..d52aac9b905c09e3042e5328dc66fa8bfabcfac3 100644 (file)
@@ -13,8 +13,8 @@ libeCAP_la_SOURCES = \
        Config.cc \
        Host.h \
        Host.cc \
-       MessageTranslator.h \
-       MessageTranslator.cc \
+       MessageRep.h \
+       MessageRep.cc \
        ServiceRep.h \
        ServiceRep.cc \
        XactionRep.h \
similarity index 69%
rename from src/eCAP/MessageTranslator.cc
rename to src/eCAP/MessageRep.cc
index f7fabe2c86b9ffca486e6daa5435cd331c0f26f8..e808c347f808b3d57d6e9261c8a335f4e8e24430 100644 (file)
@@ -4,5 +4,5 @@
 
 #include "squid.h"
 #include "adaptation/Message.h"
-#include "eCAP/MessageTranslator.h"
+#include "eCAP/MessageRep.h"
 
similarity index 53%
rename from src/eCAP/MessageTranslator.h
rename to src/eCAP/MessageRep.h
index 5abe8d7aa5bf76ac6e19dfd771fce4ad318c3d79..374c6d31b576d8b371769d7220a6fe50986e3266 100644 (file)
@@ -3,8 +3,8 @@
  * $Id$
  */
 
-#ifndef SQUID__ECAP__MESSAGE_TRANSLATOR_H
-#define SQUID__ECAP__MESSAGE_TRANSLATOR_H
+#ifndef SQUID__ECAP__MESSAGE_REP_H
+#define SQUID__ECAP__MESSAGE_REP_H
 
 #include "adaptation/forward.h"
 #include <libecap/common/message.h>
 namespace Ecap {
 
 // Translates Squid Adaptation::Message into libecap::Message.
-class MessageTranslator: public libecap::Message
+class MessageRep: public libecap::Message
 {
 
 public:
-    MessageTranslator(Adaptation::Message &aMessage): theMessage(aMessage) {}
+    MessageRep(Adaptation::Message &aMessage): theMessage(aMessage) {}
 
 private:
     Adaptation::Message &theMessage; // the message being translated to libecap
@@ -24,4 +24,4 @@ private:
 
 } // namespace Ecap;
 
-#endif /* SQUID__E_CAP__MESSAGE_TRANSLATOR_H */
+#endif /* SQUID__E_CAP__MESSAGE_REP_H */
index 46596d0c21d59b31bf61aa1a4b951315b93df022..b45c622d48c188196060e5166615a179fd04b302 100644 (file)
@@ -17,8 +17,8 @@ Ecap::XactionRep::XactionRep(Adaptation::Initiator *anInitiator,
     AsyncJob("Ecap::XactionRep"),
     Adaptation::Initiate("Ecap::XactionRep", anInitiator, aService),
     theVirgin(virginHeader), theCause(virginCause),
-    theVirginTranslator(theVirgin), theCauseTranslator(theCause),
-    theAnswerTranslator(theAnswer)
+    theVirginRep(theVirgin), theCauseRep(theCause),
+    theAnswerRep(theAnswer)
 {
 }
 
@@ -62,13 +62,13 @@ Ecap::XactionRep::terminateMaster()
 libecap::Message &
 Ecap::XactionRep::virginMessage()
 {
-    return theVirginTranslator;
+    return theVirginRep;
 }
 
 libecap::Message &
 Ecap::XactionRep::virginCause()
 {
-    return theCauseTranslator;
+    return theCauseRep;
 }
 
 void 
@@ -100,7 +100,7 @@ Ecap::XactionRep::makeAdaptedResponse()
 libecap::Message &
 Ecap::XactionRep::adaptedMessage()
 {
-    return theAnswerTranslator;
+    return theAnswerRep;
 }
 
 void 
index c1b9c0bc83a4ebe6aa8314332e38e3d42be6eb42..d01db0413fc660db5d70796abcfd9cf7fbf1520f 100644 (file)
@@ -10,7 +10,7 @@
 #include "adaptation/Initiate.h"
 #include "adaptation/Service.h"
 #include "adaptation/Message.h"
-#include "eCAP/MessageTranslator.h"
+#include "eCAP/MessageRep.h"
 #include <libecap/common/forward.h>
 #include <libecap/common/memory.h>
 #include <libecap/host/xaction.h>
@@ -68,9 +68,9 @@ private:
        Adaptation::Message theVirgin;
        Adaptation::Message theCause;
        Adaptation::Message theAnswer;
-       MessageTranslator theVirginTranslator;
-       MessageTranslator theCauseTranslator;
-       MessageTranslator theAnswerTranslator;
+       MessageRep theVirginRep;
+       MessageRep theCauseRep;
+       MessageRep theAnswerRep;
 
        CBDATA_CLASS2(XactionRep);
 };