libzypp: zypp/Application.h Source File

libzypp 17.38.11

Application.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
11#ifndef ZYPP_APPLICATION_H
12#define ZYPP_APPLICATION_H
13
14#include <iosfwd>
15
16#include <zypp/ResObject.h>
17
19namespace zypp
20{
21 DEFINE_PTR_TYPE(Application);
22
27 class ZYPP_API Application : public ResObject
28 {
29 public:
30 using Self = Application;
31 using TraitsType = ResTraits<Self>;
32 using Ptr = TraitsType::PtrType;
33 using constPtr = TraitsType::constPtrType;
34
35 public:
36 // no attributes defined by now
37
38 protected:
39 friend Ptr make<Self>( const sat::Solvable & solvable_r );
41 Application( const sat::Solvable & solvable_r );
43 ~Application() override;
44 };
45
46} // namespace zypp
48#endif // ZYPP_APPLICATION_H
DEFINE_PTR_TYPE
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.
Definition PtrTypes.h:639
ResObject.h
zypp::Application
Class representing an application (appdata.xml).
Definition Application.h:28
zypp::Application::Ptr
TraitsType::PtrType Ptr
Definition Application.h:32
zypp::Application::Application
Application(const sat::Solvable &solvable_r)
Ctor.
Definition Application.cc:23
zypp::Application::TraitsType
ResTraits< Self > TraitsType
Definition Application.h:31
zypp::Application::constPtr
TraitsType::constPtrType constPtr
Definition Application.h:33
zypp::Application::Self
Application Self
Definition Application.h:30
zypp::ResObject::ResObject
ResObject(const sat::Solvable &solvable_r)
Ctor.
Definition ResObject.cc:23
zypp::sat::Solvable
A Solvable object within the sat Pool.
Definition Solvable.h:54
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::make
ResTraits< TRes >::PtrType make(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
Definition ResObject.h:118
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173
zypp::ResTraits
ResTraits.
Definition ResTraits.h:80
zypp::ResTraits< Self >::PtrType
intrusive_ptr< Self > PtrType
Definition ResTraits.h:82
zypp::ResTraits< Self >::constPtrType
intrusive_ptr< const Self > constPtrType
Definition ResTraits.h:83