lib/SVNcat.h

Code
Comments
Other
Rev Date Author Line
1168 15 Aug 10 peter 1 #ifndef _theplu_svndigest_svndiff_
1168 15 Aug 10 peter 2 #define _theplu_svndigest_svndiff_
1168 15 Aug 10 peter 3
1168 15 Aug 10 peter 4 // $Id$
1168 15 Aug 10 peter 5
1168 15 Aug 10 peter 6 /*
1635 30 Mar 23 peter 7   Copyright (C) 2010, 2012 Peter Johansson
1168 15 Aug 10 peter 8
1168 15 Aug 10 peter 9   This file is part of svndigest, http://dev.thep.lu.se/svndigest
1168 15 Aug 10 peter 10
1168 15 Aug 10 peter 11   svndigest is free software; you can redistribute it and/or modify it
1168 15 Aug 10 peter 12   under the terms of the GNU General Public License as published by
1168 15 Aug 10 peter 13   the Free Software Foundation; either version 3 of the License, or
1168 15 Aug 10 peter 14   (at your option) any later version.
1168 15 Aug 10 peter 15
1168 15 Aug 10 peter 16   svndigest is distributed in the hope that it will be useful, but
1168 15 Aug 10 peter 17   WITHOUT ANY WARRANTY; without even the implied warranty of
1168 15 Aug 10 peter 18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1168 15 Aug 10 peter 19   General Public License for more details.
1168 15 Aug 10 peter 20
1168 15 Aug 10 peter 21   You should have received a copy of the GNU General Public License
1168 15 Aug 10 peter 22   along with svndigest. If not, see <http://www.gnu.org/licenses/>.
1168 15 Aug 10 peter 23 */
1168 15 Aug 10 peter 24
1168 15 Aug 10 peter 25 #include <string>
1168 15 Aug 10 peter 26 #include <vector>
1168 15 Aug 10 peter 27
1168 15 Aug 10 peter 28 #include <subversion-1/svn_client.h>
1168 15 Aug 10 peter 29
1168 15 Aug 10 peter 30 namespace theplu {
1168 15 Aug 10 peter 31 namespace svndigest {
1168 15 Aug 10 peter 32
1168 15 Aug 10 peter 33   /**
1541 10 Oct 12 peter 34      Class to access content of a file at a specifici revision
1168 15 Aug 10 peter 35   */
1541 10 Oct 12 peter 36   class SVNcat
1541 10 Oct 12 peter 37   {
1168 15 Aug 10 peter 38   public:
1541 10 Oct 12 peter 39     SVNcat(const std::string& path1, svn_revnum_t revision1);
1168 15 Aug 10 peter 40
1541 10 Oct 12 peter 41     /**
1541 10 Oct 12 peter 42        \brief access string content of file
1541 10 Oct 12 peter 43      */
1542 11 Oct 12 peter 44     const std::string& str(void) const;
1541 10 Oct 12 peter 45
1168 15 Aug 10 peter 46   private:
1541 10 Oct 12 peter 47     std::string str_;
1168 15 Aug 10 peter 48
1541 10 Oct 12 peter 49     // user compiler generated copy
1541 10 Oct 12 peter 50     //SVNcat(const SVNcat&);
1541 10 Oct 12 peter 51     //SVNcat& operator=(const SVNcat&);
1168 15 Aug 10 peter 52   };
1168 15 Aug 10 peter 53
1168 15 Aug 10 peter 54 }} // end of namespace svndigest and namespace theplu
1168 15 Aug 10 peter 55
1168 15 Aug 10 peter 56 #endif