00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_SOURCE_PLAINDIR_PLAINDIRIMPL_H 00013 #define ZYPP_SOURCE_PLAINDIR_PLAINDIRIMPL_H 00014 00015 #include <iosfwd> 00016 00017 #include <zypp/target/rpm/RpmHeader.h> 00018 #include <zypp/target/rpm/RpmDb.h> 00019 00020 #include "zypp/source/SourceImpl.h" 00021 00023 namespace zypp 00024 { 00025 00026 namespace source 00027 { 00028 00029 namespace plaindir 00030 { 00031 00033 // 00034 // CLASS NAME : PlaindirImpl 00035 // 00037 class PlaindirImpl : public SourceImpl 00038 { 00039 public: 00040 typedef intrusive_ptr<PlaindirImpl> Ptr; 00041 typedef intrusive_ptr<const PlaindirImpl> constPtr; 00042 00043 public: 00045 PlaindirImpl(); 00047 ~PlaindirImpl(); 00048 00049 public: 00051 static std::string typeString() 00052 { return "Plaindir"; } 00053 00055 virtual std::string type() const 00056 { return typeString(); } 00057 00058 private: 00063 virtual void factoryInit(); 00064 virtual void createResolvables(Source_Ref source_r); 00065 00066 int extract_packages_from_directory (ResStore & store, const Pathname & path, Source_Ref source, bool recursive); 00067 00068 }; 00070 00072 } // namespace plaindir 00074 00075 using plaindir::PlaindirImpl; 00076 00078 } // namespace source 00081 } // namespace zypp 00083 #endif // ZYPP_SOURCE_PLAINDIR_PLAINDIRIMPL_H
1.5.0