basic susetags product resolvable
authorStanislav Visnovsky <visnov@suse.cz>
Sun, 12 Feb 2006 19:50:26 +0000 (19:50 +0000)
committerStanislav Visnovsky <visnov@suse.cz>
Sun, 12 Feb 2006 19:50:26 +0000 (19:50 +0000)
zypp/source/susetags/Makefile.am
zypp/source/susetags/SuseTagsProductImpl.cc [new file with mode: 0644]
zypp/source/susetags/SuseTagsProductImpl.h [new file with mode: 0644]

index a114760..dd50685 100644 (file)
@@ -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 (file)
index 0000000..0c9544e
--- /dev/null
@@ -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 (file)
index 0000000..7dc1659
--- /dev/null
@@ -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