ircproxy The Ultimate Cyborg |
00001 // ircproxy -- An IRC bouncer. 00002 // 00003 //! @file Bool.inl 00004 //! @brief This file contains the implementation of BoolExpression<inverted>::create_event_server 00005 // 00006 // Copyright (C) 2007 by 00007 // 00008 // Carlo Wood, Run on IRC <carlo@alinoe.com> 00009 // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt 00010 // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61 00011 // 00012 // This file may be distributed under the terms of the Q Public License 00013 // version 1.0 as appearing in the file LICENSE.QPL included in the 00014 // packaging of this file. 00015 00016 #include "ExpressionInterface.h" 00017 #include "Expression.h" 00018 #include "Bool.h" 00019 00020 template<bool inverted> 00021 ExpressionEventServer& BoolExpression<inverted>::create_event_server(void) 00022 { 00023 boost::shared_ptr<ExpressionInterface> expression(new BoolExpression(*this)); 00024 boost::shared_ptr<ExpressionEventServer> event_server(new ExpressionEventServer(expression)); 00025 expression->add_event_server(event_server); 00026 return *event_server; 00027 } 00028
Copyright © 2005-2007 Carlo Wood. All rights reserved. |
---|