2
* Copyright (C) 2003 Robert Collins <robertc@squid-cache.org>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
* DO NOT ALTER THE NEXT LINE
20
* arch-tag: 36338b91-3298-40cf-ad88-dca8c7215280
24
#ifndef _CM_CONFIGCVSSOURCE_H_
25
#define _CM_CONFIGCVSSOURCE_H_
28
#include <getopt++/StringOption.h>
29
#include "ConfigSource.h"
31
class ConfigCVSSource : public ConfigSource
35
static ConfigCVSSource* Create(Path const &location,ConfigSource const *mayBeParent) throw (std::exception *);
37
ConfigCVSSource(std::string const &url);
38
virtual std::string url(bool const &) const;
40
virtual void get (std::string const &) const throw (std::exception *);
41
virtual void update (std::string const &) const throw(std::exception *);
42
virtual int changes (std::string const &) const throw(std::exception *);
43
virtual int missing (std::string const &) const throw(std::exception *);
44
virtual void ignore (ConfigSource const *, std::string const &) const throw (std::exception *);
46
virtual std::string treeVersion(std::string const &where) const;
49
static std::string schemeFromRepository(std::string &result);
50
void processRepository();
51
std::string getOneLineFile(std::string const &where) const;
52
std::string getRoot(std::string const &where) const;
53
std::string getRepository(std::string const &where) const;
54
static std::string urlScheme(std::string const &);
60
std::string repository;
70
#endif /* _CM_CONFIGCVSSOURCE_H_ */