00001 #ifndef FASTSHOWER_NULLPTRADAPTER_H 00002 #define FASTSHOWER_NULLPTRADAPTER_H 00003 00004 00005 #ifndef FASTSHOWER_IPTRADAPTER_H 00006 #include "FastShowerUtils/IPtrAdapter.h" 00007 #endif 00008 00009 #ifndef STD_STRING_H 00010 #define STD_STRING_H 00011 #include <string> 00012 #endif 00017 namespace FastShower{ 00018 00019 template<class Type> 00020 class NullPtrAdapter: public IPtrAdapter<Type>{ 00021 public: 00022 Type* adapt(Type* ptr, const std::string&) const{ 00023 return ptr; 00024 } 00025 }; 00026 } 00027 #endif 00028 00029 00030 00031