00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: Y2CCSerial.h 00014 00015 Author: Mathias Kettner <kettner@suse.de> 00016 Maintainer: Thomas Roelz <tom@suse.de> 00017 00018 /-*/ 00019 // -*- c++ -*- 00020 00021 /* 00022 * Component Creator that creates serial components 00023 * 00024 * Author: Thomas Roelz <tom@suse.de> 00025 */ 00026 00027 #ifndef Y2CCSerial_h 00028 #define Y2CCSerial_h 00029 00030 #include "Y2ComponentCreator.h" 00031 00032 class Y2CCSerial : public Y2ComponentCreator 00033 { 00037 bool creates_servers; 00038 00042 mutable regex_t rx1; 00043 00044 mutable int my_nl_msg_cat_cntr; 00045 void make_rxs () const; 00046 void free_rxs () const; 00047 00048 public: 00049 00050 Y2CCSerial(bool creates_servers); 00051 00052 bool isServerCreator() const; 00053 00054 Y2Component *create(const char *name) const; 00055 00059 Y2Component* provideNamespace(const char* name_space); 00060 }; 00061 00062 00063 #endif // Y2CCSerial_h