diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-01-25 14:19:27 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2009-01-25 14:19:27 +0000 |
| commit | 873231fe1e8203204f4dbf22e1e2c8283ebc7a12 (patch) | |
| tree | b0f4acc150e133c137824dee4bf456ffc54cd5d8 /src/PStringSegment.h | |
| parent | 5def96906fd17d9b48e9fda192617c6ad1b95683 (diff) | |
2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Rewritten PStringVisitor and its implementation.
* src/PStringBuildVisitor.cc
* src/PStringBuildVisitor.h
* src/PStringDatum.h
* src/PStringNumLoop.h
* src/PStringSegment.cc
* src/PStringSegment.h
* src/PStringSelect.h
* src/PStringVisitor.h
* src/download_helper.cc
* test/PStringBuildVisitorTest.cc
* test/ParameterizedStringParserTest.cc
Diffstat (limited to 'src/PStringSegment.h')
| -rw-r--r-- | src/PStringSegment.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/PStringSegment.h b/src/PStringSegment.h index 9b6036d3..e98a847c 100644 --- a/src/PStringSegment.h +++ b/src/PStringSegment.h @@ -40,8 +40,6 @@ namespace aria2 { -class PStringSegmentVisitor; - class PStringSegment : public PStringDatum { private: @@ -58,7 +56,7 @@ public: virtual ~PStringSegment(); - virtual void accept(PStringVisitor* visitor); + virtual void accept(PStringVisitor& visitor); const std::string& getValue() const; @@ -69,17 +67,6 @@ public: typedef SharedHandle<PStringSegment> PStringSegmentHandle; -class PStringSegmentVisitor { -public: - virtual ~PStringSegmentVisitor() {} - - virtual void hello(PStringSegment* s) = 0; - - virtual void goodbye(PStringSegment* s) = 0; -}; - -typedef SharedHandle<PStringSegmentVisitor> PStringSegmentVisitorHandle; - } // namespace aria2 #endif // _D_P_STRING_SEGMENT_H_ |
