U E D R S I H C RSS
ID
Password
Join
건축물ì—서 가장 견실한 ëŒì€ í† ëŒ€ì˜ ë§¨ ë°‘ì— ë†“ì¸ ëŒ. ―칼릴 지브란(시리아 시ì¸, 1883∼1931)

 * doxygen 문서 편역 ë° ì •ë¦¬ 문서입니다.

í—¤ë”í™”ì¼ #

#include <Event_Handler_T.h>

개요 #

ì´ í…œí”Œë¦¿ í´ëž˜ìŠ¤ëŠ” ACE_Event_Handlerì—서 ìƒì†ë°›ì§€ ì•Šê³ ì„œë„ ACE_Reactor 프레임워í¬ì™€ ê°™ì´ ì‚¬ìš©í•  수 있ë„ë¡ í•˜ê¸°ìœ„í•œ ì ‘ì°©ì œ ì—­í• ì„ í•©ë‹ˆë‹¤.

때때로 어플리케ì´ì…˜ì´ ìžì‹ ë§Œì˜ ìƒì†ì²´ê³„를 가지고 있는 명령 ë””ìŠ¤íŽ˜ì³ í´ëž˜ìŠ¤ì˜ ê³„ì¸µêµ¬ì¡°ë¥¼ 가지고 있으면서 ACE_Reactor와 통합ë˜ì–´ìžˆëŠ” 경우가 ìžˆì„ ìˆ˜ 있습니다. ì´ëŸ°ê²½ìš° "섞어짬뽕" ì ‘ê·¼ë²•ì„ ì ìš©í•˜ê¸°ë³´ë‹¤ëŠ” ACE_Event_Handlerì˜ ìžì‹ í´ëž˜ìŠ¤ë¡œì„œ í…œí”Œë¦¿ì„ ì •ì˜í•˜ê³  명령 ë””ìŠ¤íŒ¨ì³ íƒ€ìž…ì„ ë§¤ê°œë³€ìˆ˜í™” 시켜버리는 ê²ƒì´ ë” ê¹”ë”합니다. ACE_Event_Handler_Tì˜ ìƒì„±ìžì— ë³´ë©´ handle_* 메소드 중 í•˜ë‚˜ì— ëŒ€ì‘하는 맴버함수 í¬ì¸í„°ì§‘í•©ì„ ì œê³µí•´ì•¼ë§Œ 합니다. (ì ìš©í•˜ë©´ ê·¸ 맴버함수는 해당 handle_* í›… 메소드 ì—­í• ì„ í•˜ê²Œ ë©ë‹ˆë‹¤) ì´ê²ƒì€ ê°ì²´ìƒì˜ í•˜ë‚˜ì˜ ë©”ì†Œë“œë¡œ 모든 ì´ë²¤íŠ¸ë¥¼ 처리하ë„ë¡ ë§¤í•‘í•˜ëŠ”ë°ì—ë„ ìœ ìš©í•˜ê²Œ ì‚¬ìš©ë  ìˆ˜ 있습니다.

ACE_Event_Handler_T í…œí”Œë¦¿ì€ ì²˜ë¦¬ ê°ì²´ì— ì˜í•´ ì¸ìŠ¤í„´ìŠ¤í™”ë˜ê³  ACE_Reactorì— ë“±ë¡ëœë‹¤ìŒ ì•Œë§žì€ op_handler를 호출하게 ë©ë‹ˆë‹¤. 그러므로 ì´ê²ƒì€ ì´ë²¤íЏ ë””ìŠ¤íŽ˜ì¹­ì˜ ë˜ë‹¤ë¥¸ ê°„ì ‘ 레벨ì´ë¼ê³  ë³¼ 수 있습니다.

The coupling betweent the ultimate handler of the event and the ACE_Event_Handler class is relaxed a bit by have this intermediate <op_handler_> object of type <T> around.

The client object can then dynamically change the bindings for the various handlers so that during the life of one of the operation objects, it can change how it wants events to be handled.

It just instantiates a new instance of the template with different bindings and reregisters this new object with the ACE_Reactor.

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2010-10-28 12:42:52
Processing time 0.3538 sec