⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 epicschannel.h

📁 This Source-Navigator, an IDE for C/C++/Fortran/Java/Tcl/PHP/Python and a host of other languages.
💻 H
字号:
// $Header: /cvsroot/sourcenav/src/snavigator/demo/c++_demo/contrib/epics/EpicsChannel.h,v 1.1.1.1 2002/04/18 23:35:12 mdejong Exp $#ifndef epicsclient_h#define epicsclient_hextern "C" {#include <caerr.h>#include <cadef.h>}#include "Glish/Client.h"class EpicsChannel {public:	EpicsChannel( const char* name, double timeout );	virtual ~EpicsChannel();	int Connected() const	{ return connected; }	// Return native EPICS type, or DBF_NO_ACCESS if not connected.	chtype NativeType() const;	// Return corresponding Glish type, or TYPE_ERROR if not connected.	glish_type Type() const;	// Number of elements, or 0 if not connected.	int Length() const;	const char* Name() const	{ return channel_name; }	// Most recent error status.	int Status() const		{ return status; }	enum channel_state State() const;	Value* Get();	// get current value, or nil pointer if error.	// Change the channel's value.  Returns non-zero on success.	// new_value will be polymorphed to correspond to Channel's	// native type.	int Set( Value* new_value );	fd_set InputSources() const;protected:	virtual void EventHandler();	static void CA_event_handler( struct event_handler_args args );	double timeout;	char* channel_name;	chid channel_id;	int connected;	int status;};#endif	/* epicsclient_h */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -