yast2-core
Y2CCSCR.h
Go to the documentation of this file.
1 #ifndef Y2CCSCR_H
2 #define Y2CCSCR_H
3 
5 #include <map>
6 #include <string>
7 
8 #include "ScriptingAgent.h"
9 #include "Y2SCRComponent.h"
10 
12 {
13 public:
14 
18  Y2CCSCR ();
19 
20 
24  ~Y2CCSCR ();
25 
26 
30  bool isServerCreator () const { return true; }
31 
36  Y2Component* create (const char*) const;
37 
41  Y2Component* provideNamespace (const char*) { return NULL; }
42 
43 private:
44 
45  /* SCR instances, owned by this class, keyed by target root.
46  * Target root must be valid absolute path like "/" or "/mnt".*/
47  mutable std::map<std::string, Y2SCRComponent*> scr_instances;
48 };
49 
50 #endif
~Y2CCSCR()
Definition: Y2CCSCR.cc:18
Y2Component * create(const char *) const
Definition: Y2CCSCR.cc:41
Definition: Y2CCSCR.h:11
Communication handle to a YaST2 component.
Definition: Y2Component.h:262
Y2Component * provideNamespace(const char *)
Definition: Y2CCSCR.h:41
std::map< std::string, Y2SCRComponent * > scr_instances
Definition: Y2CCSCR.h:47
Y2CCSCR()
Definition: Y2CCSCR.cc:13
bool isServerCreator() const
Definition: Y2CCSCR.h:30
Can create certain YaST2 components As documented in Y2Component, there are many ways how to realize ...
Definition: Y2ComponentCreator.h:43

Generated on a sunny day for yast2-core by doxygen 1.8.6