123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- //
- // "$Id: Signal.h 55347 2012-03-22 11:26:45Z qin_fenglin $"
- //
- // Copyright (c)1992-2007, ZheJiang Dahua Technology Stock CO.LTD.
- // All Rights Reserved.
- //
- // Description:
- // Revisions: Year-Month-Day SVN-Author Modification
- //
- #ifndef __INFRA3_SIGNALS_H__
- #define __INFRA3_SIGNALS_H__
- #if defined(_MSC_VER)
- #pragma warning (push)
- #pragma warning (disable : 4786)
- #endif
- #include <stdio.h>
- #include "Function.h"
- #include "Mutex.h"
- #include "Guard.h"
- #include "Thread.h"
- #include "Time.h"
- #include "PrintLog.h"
- namespace Dahua{
- namespace Infra{
- //TSignal0
- #define SIGNAL_NUMBER 0
- #define SIGNAL_CLASS_TYPES void
- #define SIGNAL_TYPES_COMMA
- #define SIGNAL_TYPE_ARGS void
- #define SIGNAL_ARGS
- #include "SignalTemplate.h"
- #undef SIGNAL_NUMBER
- #undef SIGNAL_CLASS_TYPES
- #undef SIGNAL_TYPES_COMMA
- #undef SIGNAL_TYPE_ARGS
- #undef SIGNAL_ARGS
- //TSignal1
- #define SIGNAL_NUMBER 1
- #define SIGNAL_CLASS_TYPES typename T1
- #define SIGNAL_TYPES_COMMA , T1
- #define SIGNAL_TYPE_ARGS T1 a1
- #define SIGNAL_ARGS a1
- #include "SignalTemplate.h"
- #undef SIGNAL_NUMBER
- #undef SIGNAL_CLASS_TYPES
- #undef SIGNAL_TYPES_COMMA
- #undef SIGNAL_TYPE_ARGS
- #undef SIGNAL_ARGS
- //TSignal2
- #define SIGNAL_NUMBER 2
- #define SIGNAL_CLASS_TYPES typename T1, typename T2
- #define SIGNAL_TYPES_COMMA , T1, T2
- #define SIGNAL_TYPE_ARGS T1 a1, T2 a2
- #define SIGNAL_ARGS a1, a2
- #include "SignalTemplate.h"
- #undef SIGNAL_NUMBER
- #undef SIGNAL_CLASS_TYPES
- #undef SIGNAL_TYPES_COMMA
- #undef SIGNAL_TYPE_ARGS
- #undef SIGNAL_ARGS
- //TSignal3
- #define SIGNAL_NUMBER 3
- #define SIGNAL_CLASS_TYPES typename T1, typename T2, typename T3
- #define SIGNAL_TYPES_COMMA , T1, T2, T3
- #define SIGNAL_TYPE_ARGS T1 a1, T2 a2, T3 a3
- #define SIGNAL_ARGS a1, a2, a3
- #include "SignalTemplate.h"
- #undef SIGNAL_NUMBER
- #undef SIGNAL_CLASS_TYPES
- #undef SIGNAL_TYPES_COMMA
- #undef SIGNAL_TYPE_ARGS
- #undef SIGNAL_ARGS
- //TSignal4
- #define SIGNAL_NUMBER 4
- #define SIGNAL_CLASS_TYPES typename T1, typename T2, typename T3, typename T4
- #define SIGNAL_TYPES_COMMA , T1, T2, T3, T4
- #define SIGNAL_TYPE_ARGS T1 a1, T2 a2, T3 a3, T4 a4
- #define SIGNAL_ARGS a1, a2, a3, a4
- #include "SignalTemplate.h"
- #undef SIGNAL_NUMBER
- #undef SIGNAL_CLASS_TYPES
- #undef SIGNAL_TYPES_COMMA
- #undef SIGNAL_TYPE_ARGS
- #undef SIGNAL_ARGS
- //TSignal5
- #define SIGNAL_NUMBER 5
- #define SIGNAL_CLASS_TYPES typename T1, typename T2, typename T3, typename T4, typename T5
- #define SIGNAL_TYPES_COMMA , T1, T2, T3, T4, T5
- #define SIGNAL_TYPE_ARGS T1 a1, T2 a2, T3 a3, T4 a4, T5 a5
- #define SIGNAL_ARGS a1, a2, a3, a4, a5
- #include "SignalTemplate.h"
- #undef SIGNAL_NUMBER
- #undef SIGNAL_CLASS_TYPES
- #undef SIGNAL_TYPES_COMMA
- #undef SIGNAL_TYPE_ARGS
- #undef SIGNAL_ARGS
- //TSignal6
- #define SIGNAL_NUMBER 6
- #define SIGNAL_CLASS_TYPES typename T1, typename T2, typename T3, typename T4, typename T5, typename T6
- #define SIGNAL_TYPES_COMMA , T1, T2, T3, T4, T5, T6
- #define SIGNAL_TYPE_ARGS T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6
- #define SIGNAL_ARGS a1, a2, a3, a4, a5, a6
- #include "SignalTemplate.h"
- #undef SIGNAL_NUMBER
- #undef SIGNAL_CLASS_TYPES
- #undef SIGNAL_TYPES_COMMA
- #undef SIGNAL_TYPE_ARGS
- #undef SIGNAL_ARGS
- } // namespace Infra
- } // namespace Dahua
- #if defined(_MSC_VER)
- #pragma warning (pop)
- #endif
- #endif //__INFRA_SIGNALS_H__
|