1 Star 0 Fork 0

evan_xia_mew/RTSystem-alarm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Test.h 1.98 KB
一键复制 编辑 原始数据 按行查看 历史
evan_xia_mew 提交于 2022-01-02 14:33 . 4805
// {{{RME classifier 'Logical View::Test'
#ifndef Test_H
#define Test_H
#ifdef PRAGMA
#pragma interface "Test.h"
#endif
#include <RTSystem/TestComponent.h>
struct Test
{
class Base : public RTRootProtocol
{
public:
inline Base( void );
inline ~Base( void );
enum
{
rti_arm = rtiLast_RTRootProtocol + 1
, rti_disarm
, rti_resolveAlarm
};
protected:
enum { rtiLast_Test = rti_resolveAlarm };
public:
inline RTInSignal arm( void );
inline RTInSignal disarm( void );
inline RTInSignal resolveAlarm( void );
static const RTProtocolDescriptor rt_class;
private:
static const RTSignalDescriptor rt_signals[];
};
class Conjugate : public RTRootProtocol
{
public:
inline Conjugate( void );
inline ~Conjugate( void );
protected:
enum { rtiLast_Test = rtiLast_RTRootProtocol };
public:
inline RTOutSignal arm( const int & data );
inline RTOutSignal disarm( const int & data );
inline RTOutSignal resolveAlarm( const int & data );
static const RTProtocolDescriptor rt_class;
private:
static const RTSignalDescriptor rt_signals[];
};
};
inline Test::Base::Base( void )
: RTRootProtocol()
{
}
inline Test::Base::~Base( void )
{
}
inline RTInSignal Test::Base::arm( void )
{
return RTInSignal( this, rti_arm );
}
inline RTInSignal Test::Base::disarm( void )
{
return RTInSignal( this, rti_disarm );
}
inline RTInSignal Test::Base::resolveAlarm( void )
{
return RTInSignal( this, rti_resolveAlarm );
}
inline Test::Conjugate::Conjugate( void )
: RTRootProtocol()
{
}
inline Test::Conjugate::~Conjugate( void )
{
}
inline RTOutSignal Test::Conjugate::arm( const int & data )
{
return RTOutSignal( this, Base::rti_arm, &data, &RTType_int );
}
inline RTOutSignal Test::Conjugate::disarm( const int & data )
{
return RTOutSignal( this, Base::rti_disarm, &data, &RTType_int );
}
inline RTOutSignal Test::Conjugate::resolveAlarm( const int & data )
{
return RTOutSignal( this, Base::rti_resolveAlarm, &data, &RTType_int );
}
#endif /* Test_H */
// }}}RME
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/evan-xia-mew/rtsystem-alarm.git
git@gitee.com:evan-xia-mew/rtsystem-alarm.git
evan-xia-mew
rtsystem-alarm
RTSystem-alarm
master

搜索帮助