00001 /* -*- C++ -*- $Id: Validate_Worker_T.cpp 90386 2010-06-02 13:52:08Z vzykov $ */ 00002 00003 #ifndef NOTIFY_VALIDATE_WORKER_CPP 00004 #define NOTIFY_VALIDATE_WORKER_CPP 00005 00006 #include "Validate_Worker_T.h" 00007 #include "tao/debug.h" 00008 #include "ace/Log_Msg.h" 00009 00010 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00011 #pragma once 00012 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00013 00014 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00015 00016 namespace TAO_Notify 00017 { 00018 template<class TOPOOBJ> 00019 Validate_Worker<TOPOOBJ>::Validate_Worker() 00020 { 00021 } 00022 00023 template<class TOPOOBJ> 00024 void 00025 Validate_Worker<TOPOOBJ>::work (TOPOOBJ* o) 00026 { 00027 if (o == 0) 00028 { 00029 if (TAO_debug_level > 0) 00030 { 00031 ACE_DEBUG ((LM_DEBUG, 00032 ACE_TEXT("(%P|%t)Validate_Worker<TOPOOBJ>::work: obj is nil\n"))); 00033 } 00034 } 00035 else 00036 { 00037 o->validate (); 00038 } 00039 } 00040 } // namespace TAO_Notify 00041 00042 TAO_END_VERSIONED_NAMESPACE_DECL 00043 00044 #endif /* VALIDATE_WORKER_CPP */ 00045 00046