libzypp 17.37.17
LoadTestcase.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_MISC_LOADTESTCASE_H
13#define ZYPP_MISC_LOADTESTCASE_H
14
15#include <zypp/Pathname.h>
16#include <zypp/Url.h>
17#include <zypp/Globals.h>
18#include <zypp/base/PtrTypes.h>
21
22#include <optional>
23#include <memory>
24
25namespace zypp::misc::testcase {
26
28 {
29 struct Node {
30 struct Impl;
31
32 Node();
33 ~Node();
34 const std::string &name () const;
35 std::string &name ();
36 const std::string &value () const;
37 std::string &value ();
38
39 const std::string &getProp( const std::string &name, const std::string &def = std::string() ) const;
40 const std::map<std::string, std::string> &properties() const;
41 std::map<std::string, std::string> &properties();
42 const std::vector<std::shared_ptr<Node>> &children() const;
43 std::vector<std::shared_ptr<Node>> &children();
44
45 private:
47
48 };
49
52 const std::vector<Node> &nodes () const;
53 std::vector<Node> &nodes ();
54 private:
55 struct Impl;
57 };
58
60 {
61 public:
62 struct Impl;
63 using TestcaseTrials = std::vector<TestcaseTrial>;
64
65 enum Type {
69 };
70
73
74 bool loadTestcaseAt ( const zypp::Pathname &path, std::string *err );
75 static Type testcaseTypeAt ( const zypp::Pathname &path );
76
77 const TestcaseSetup &setupInfo() const;
78 const TestcaseTrials &trialInfo() const;
79
80 private:
81 std::unique_ptr<Impl> _pimpl;
82 };
83
84}
85
86
87#endif // ZYPP_MISC_LOADTESTCASE_H
std::unique_ptr< Impl > _pimpl
std::vector< TestcaseTrial > TestcaseTrials
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition NonCopyable.h:26
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
RW_pointer supporting 'copy on write' functionality.
Definition PtrTypes.h:469
const std::vector< std::shared_ptr< Node > > & children() const
const std::string & getProp(const std::string &name, const std::string &def=std::string()) const
const std::map< std::string, std::string > & properties() const
const std::string & value() const
const std::vector< Node > & nodes() const
#define ZYPP_API_DEPTESTOMATIC
Definition Globals.h:77