libzypp  13.10.6
RepoInfoBaseImpl.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef REPOINFOBASEIMPL_H_
13 #define REPOINFOBASEIMPL_H_
14 
15 #include <string>
16 
17 #include "zypp/TriBool.h"
18 #include "zypp/Pathname.h"
19 
21 namespace zypp
22 {
23  namespace repo
25  {
26 
28  //
29  // CLASS NAME : RepoInfoBase::Impl
30  //
32  {
33  Impl()
34  : enabled (indeterminate)
35  , autorefresh (indeterminate)
36  {}
37 
38  Impl(const std::string & alias_)
39  : enabled(indeterminate)
40  , autorefresh(indeterminate)
41  { setAlias(alias_); }
42 
44  {}
45 
46  public:
49  std::string alias;
50  std::string escaped_alias;
51  std::string name;
52  Pathname filepath;
53  public:
54 
55  void setAlias(const std::string & alias_);
56 
57  private:
58  friend Impl * rwcowClone<Impl>( const Impl * rhs );
60  Impl * clone() const
61  { return new Impl( *this ); }
62  };
64 
66  } // namespace repo
69 } // namespace zypp
71 
72 #endif /*REPOINFOBASEIMPL_H_*/
Impl(const std::string &alias_)
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
Definition: TriBool.h:39
Impl * clone() const
clone for RWCOW_pointer
void setAlias(const std::string &alias_)
Definition: RepoInfoBase.cc:41