📄 opagent.hpp
字号:
/* ======================================================================== *\ | | | JOYIT Communication Technology | Copyright (C) 2002-2003, All Right Reserved. | | System: Programmable Signaling Gateway | Sub-system: MTP3 | Filename: opagent.hpp | Environment: LINUX -- Red Hat 7.2 & GNU C/C++ Compiler 2.96 | vxWorks -- Tornado 2.0 & vxWorks 5.4 | Function description: Declare the out put agent class. | |\* ======================================================================== */#ifndef _OPAGENT_HPP#define _OPAGENT_HPP#ifndef _OBJECTS_HPP#include "objects.hpp"#endif#ifndef _LOGFILE_HPP#include "logfile.hpp"#endifclass OutPutAgent : public WObject{public: OutPutAgent(const char * const logfilename); ~OutPutAgent( ); // Overload the virtual function. void handleEvent(WEvent& event); // Handle the event to me. void idle( ); // When system is idle, this function will be called. void OAMagent( ); // Managed Object Agent function. public: UINT8 SetOutMode(UINT8 om); UINT8 GetOutMode( ); void SetLogFileName(const char * const logfilename);private: UINT8 outMode; // Out put mode, it can out put to the stdout(cout), stderr(cerr) or the pterm. LogFile log;};/* * Declare out mode constants. It can be compose to execute complex out put mode. */#define OUT_NULL 0x00#define OUT_STDOUT 0x01 // Default out put mode.#define OUT_STDERR 0x02#define OUT_PTERM 0x04#define OUT_FILE 0x08extern OutPutAgent *opaPtr;#endif// ------------------------------------------------------------------------//// Revision list.// ==============//// 1.0, 2003-04-18, Wu jianjin// Initial version.// 1.1, 2003-05-19, Wu jianjin// Ported to vxWorks.//// ------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -