From c08f69b2aed41180b6a8e77d1f88c0630cfd8c28 Mon Sep 17 00:00:00 2001 From: Stanislav Visnovsky Date: Sun, 12 Feb 2006 19:50:26 +0000 Subject: [PATCH] basic susetags product resolvable --- zypp/source/susetags/Makefile.am | 2 ++ zypp/source/susetags/SuseTagsProductImpl.cc | 56 +++++++++++++++++++++++++++++ zypp/source/susetags/SuseTagsProductImpl.h | 55 ++++++++++++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 zypp/source/susetags/SuseTagsProductImpl.cc create mode 100644 zypp/source/susetags/SuseTagsProductImpl.h diff --git a/zypp/source/susetags/Makefile.am b/zypp/source/susetags/Makefile.am index a114760..dd50685 100644 --- a/zypp/source/susetags/Makefile.am +++ b/zypp/source/susetags/Makefile.am @@ -14,6 +14,7 @@ sourceinclude_HEADERS = \ SuseTagsSelectionImpl.h \ SuseTagsPatternImpl.h \ SuseTagsPackageImpl.h \ + SuseTagsProductImpl.h \ SelectionTagFileParser.h \ PatternTagFileParser.h \ ProductMetadataParser.h \ @@ -31,6 +32,7 @@ lib@PACKAGE@_source_susetags_la_SOURCES = \ SuseTagsSelectionImpl.cc \ SuseTagsPatternImpl.cc \ SuseTagsPackageImpl.cc \ + SuseTagsProductImpl.cc \ SelectionTagFileParser.cc \ PatternTagFileParser.cc \ ProductMetadataParser.cc \ diff --git a/zypp/source/susetags/SuseTagsProductImpl.cc b/zypp/source/susetags/SuseTagsProductImpl.cc new file mode 100644 index 0000000..0c9544e --- /dev/null +++ b/zypp/source/susetags/SuseTagsProductImpl.cc @@ -0,0 +1,56 @@ +/*---------------------------------------------------------------------\ +| ____ _ __ __ ___ | +| |__ / \ / / . \ . \ | +| / / \ V /| _/ _/ | +| / /__ | | | | | | | +| /_____||_| |_| |_| | +| | +\---------------------------------------------------------------------*/ +/** \file zypp/detail/SuseTagsProductImpl.cc + * +*/ +#include "zypp/source/susetags/SuseTagsProductImpl.h" + +using namespace std; + +/////////////////////////////////////////////////////////////////// +namespace zypp +{ ///////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////// + namespace source + { ///////////////////////////////////////////////////////////////// + namespace susetags + { + /////////////////////////////////////////////////////////////////// + // + // METHOD NAME : SuseTagsProductImpl::SuseTagsProductImpl + // METHOD TYPE : Ctor + // + SuseTagsProductImpl::SuseTagsProductImpl() + {} + + /////////////////////////////////////////////////////////////////// + // + // METHOD NAME : SuseTagsProductImpl::~SuseTagsProductImpl + // METHOD TYPE : Dtor + // + SuseTagsProductImpl::~SuseTagsProductImpl() + {} + + + std::string SuseTagsProductImpl::category() const + { return _category; } + + Label SuseTagsProductImpl::vendor() const + { return _vendor; } + + Label SuseTagsProductImpl::displayName() const + { return _displayName; } + + ///////////////////////////////////////////////////////////////// + } // namespace detail + /////////////////////////////////////////////////////////////////// + } + ///////////////////////////////////////////////////////////////// +} // namespace zypp +/////////////////////////////////////////////////////////////////// diff --git a/zypp/source/susetags/SuseTagsProductImpl.h b/zypp/source/susetags/SuseTagsProductImpl.h new file mode 100644 index 0000000..7dc1659 --- /dev/null +++ b/zypp/source/susetags/SuseTagsProductImpl.h @@ -0,0 +1,55 @@ +/*---------------------------------------------------------------------\ +| ____ _ __ __ ___ | +| |__ / \ / / . \ . \ | +| / / \ V /| _/ _/ | +| / /__ | | | | | | | +| /_____||_| |_| |_| | +| | +\---------------------------------------------------------------------*/ +/** \file zypp/detail/ProductImpl.h + * +*/ +#ifndef ZYPP_DETAIL_SUSETAGS_PRODUCTIMPL_H +#define ZYPP_DETAIL_SUSETAGS_PRODUCTIMPL_H + +#include "zypp/detail/ProductImplIf.h" + +/////////////////////////////////////////////////////////////////// +namespace zypp +{ ///////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////// + namespace source + { ///////////////////////////////////////////////////////////////// + namespace susetags + { + + /////////////////////////////////////////////////////////////////// + // + // CLASS NAME : ProductImpl + // + /** + */ + struct SuseTagsProductImpl : public zypp::detail::ProductImplIf + { + public: + SuseTagsProductImpl(); + virtual ~SuseTagsProductImpl(); + + virtual std::string category() const; + virtual Label vendor() const; + virtual Label displayName() const; + + std::string _vendor; + std::string _category; + std::string _displayName; + }; + /////////////////////////////////////////////////////////////////// + + ///////////////////////////////////////////////////////////////// + } // namespace susetags + /////////////////////////////////////////////////////////////////// + } // namespace source + ///////////////////////////////////////////////////////////////// +} // namespace zypp +/////////////////////////////////////////////////////////////////// +#endif // ZYPP_DETAIL_PRODUCTIMPL_H -- 2.7.4