Changeset 128 for trunk/lib


Ignore:
Timestamp:
Aug 2, 2006, 6:39:54 PM (15 years ago)
Author:
Jari Häkkinen
Message:

No need to include fstream, iosfwd is enough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Parser.h

    r125 r128  
    22
    33/*
    4   Copyright (C) 2006 Peter Johansson
     4  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
    55
    66  This file is part of svnstat, http://lev.thep.lu.se/trac/svnstat
     
    2525#define _theplu_svnstat_parser_
    2626
    27 #include <fstream>
     27#include <iosfwd>
    2828#include <string>
    2929#include <vector>
     
    3232namespace svnstat{
    3333
    34   ///
    35   /// Class parsing files
    36   ///
    37   class Parser
    38   {
    39   public:
     34  ///
     35  /// Class parsing files
     36  ///
     37  class Parser
     38  {
     39  public:
    4040    ///
    4141    /// A line is considered empty if it only contains spaces and tabs.
     
    5252    };
    5353
    54     ///
    55     /// @brief Constructor
     54    ///
     55    /// @brief Constructor
    5656    ///
    5757    explicit Parser(const std::string&);
     
    6262    inline const std::vector<line_type>& type(void) const { return type_; }
    6363
    64   private:
     64  private:
    6565    ///
    6666    /// Copy constructor (not implemented)
    6767    ///
    68     Parser(const Parser& other);
     68    Parser(const Parser& other);
    6969
    7070    void cc_mode(std::istream&);
     
    7272    std::vector<line_type> type_;
    7373
    74   };
     74  };
    7575
    7676  ///
Note: See TracChangeset for help on using the changeset viewer.