~ubuntu-branches/ubuntu/quantal/config-manager/quantal

« back to all changes in this revision

Viewing changes to src/ConfigEntry.h

  • Committer: Bazaar Package Importer
  • Author(s): Anand Kumria
  • Date: 2004-07-19 22:27:50 UTC
  • mto: (3.1.1 dapper)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040719222750-sztqdj1aoj2r6frr
Tags: upstream-0.1p83
ImportĀ upstreamĀ versionĀ 0.1p83

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2003  Robert Collins  <robertc@squid-cache.org>
 
3
 * 
 
4
 * 
 
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.
 
9
 * 
 
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.
 
14
 * 
 
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
 
18
 * 
 
19
 * DO NOT ALTER THE NEXT LINE
 
20
 * arch-tag: c54c952b-9065-404d-b1ed-e46b9dee5be3
 
21
 * 
 
22
 */
 
23
 
 
24
#ifndef   _CM_CONFIGENTRY_H_
 
25
#define   _CM_CONFIGENTRY_H_
 
26
 
 
27
#include <string>
 
28
class ConfigSource;
 
29
class ConfigEntry
 
30
{
 
31
 
 
32
public:
 
33
    ConfigEntry(std::string const &path, ConfigSource *source);
 
34
    ConfigEntry(ConfigEntry const &);
 
35
    ConfigEntry& operator=(ConfigEntry const &);
 
36
    std::string const &path() const;
 
37
    ConfigSource const *source();
 
38
    void path(std::string const &);
 
39
 
 
40
private:
 
41
    std::string thePath;
 
42
    ConfigSource *theSource;
 
43
};
 
44
 
 
45
#endif /* _CM_CONFIGENTRY_H_ */