summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/depend.h
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/service/depend.h')
-rw-r--r--gentoobrowse-api/service/depend.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/depend.h b/gentoobrowse-api/service/depend.h
new file mode 100644
index 0000000..3acae7f
--- /dev/null
+++ b/gentoobrowse-api/service/depend.h
@@ -0,0 +1,25 @@
+#ifndef GENTOOBROWSE_SERVICE_DEPEND_H
+#define GENTOOBROWSE_SERVICE_DEPEND_H
+
+#include <visibility.h>
+#include <istream>
+#include <vector>
+#include <portage-models.h>
+#include "utils/lexer.h"
+
+namespace Portage {
+ namespace Utils {
+ class Depend : Gentoo::Utils::Lexer {
+ private:
+ Depend();
+ Gentoo::StringList when;
+
+ public:
+ DLL_PUBLIC static std::vector<Gentoo::DependencyPtr> parse(const std::string &);
+ std::vector<Gentoo::DependencyPtr> ds;
+ };
+ }
+}
+
+#endif
+