yast2-core
Y2CCPlugin.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | |
3 | __ __ ____ _____ ____ |
4 | \ \ / /_ _/ ___|_ _|___ \ |
5 | \ V / _` \___ \ | | __) | |
6 | | | (_| |___) || | / __/ |
7 | |_|\__,_|____/ |_| |_____| |
8 | |
9 | core system |
10 | (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12 
13  File: Y2CCPlugin.h
14 
15  Author: Arvin Schnell <arvin@suse.de>
16  Maintainer: Arvin Schnell <arvin@suse.de>
17 
18 /-*/
19 // -*- c++ -*-
20 
21 #ifndef Y2CCPlugin_h
22 #define Y2CCPlugin_h
23 
24 #include <regex.h>
25 
26 #include "Y2ComponentCreator.h"
27 
28 
30 {
35 
36  /*
37  * all this mutable and const is needed since create is const.
38  * and all this is needed since you have to recompile a regex
39  * when you call setlocale.
40  */
41 
45  mutable regex_t rxs1, rxr1, rxr2, rxr3;
46 
47  mutable int my_nl_msg_cat_cntr;
48  void make_rxs () const;
49  void free_rxs () const;
50 
51 public:
57  Y2CCPlugin (bool server);
58 
62  bool isServerCreator () const;
63 
68  Y2Component* createInLevel (const char* name, int level, int current_level) const;
69 
73  Y2Component* provideNamespace(const char* name_space);
74 
75 };
76 
77 
78 #endif // Y2CCPlugin_h

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