00001 // -*- c++ -*- 00002 00003 /* 00004 * Maintainer: Arvin Schnell <arvin@suse.de> 00005 */ 00006 00007 00008 #ifndef Y2CCMakefs_h 00009 #define Y2CCMakefs_h 00010 00011 00012 #include <Y2.h> 00013 00014 #include "Y2MakefsComponent.h" 00015 00016 00017 class Y2CCMakefs : public Y2ComponentCreator 00018 { 00019 00020 public: 00021 00022 // Create a makefs component creator and register it 00023 Y2CCMakefs () : 00024 Y2ComponentCreator (Y2ComponentBroker::BUILTIN) 00025 { 00026 } 00027 00028 // The makefs component is a client 00029 bool isServerCreator () const { return false; } 00030 00031 // Create a new makefs component if name is our name 00032 Y2Component *create (const char *name) const 00033 { 00034 if (strcmp (name, Y2MakefsComponent::component_name ().c_str ()) == 0) 00035 return new Y2MakefsComponent (); 00036 else 00037 return 0; 00038 } 00039 00040 }; 00041 00042 00043 #endif // Y2CCMakefs_h