sampleelt.hh

来自「Click is a modular router toolkit. To us」· HH 代码 · 共 30 行

HH
30 行
字号
#ifndef SAMPLEPACKAGEELEMENT_HH#define SAMPLEPACKAGEELEMENT_HH#include <click/element.hh>CLICK_DECLS/* * =c * SamplePackageElement() * =s debugging * demonstrates how to write a package * =d * * This is the only element in the `sample' package. It demonstrates how to * write an element that will be placed in a package. It does nothing except * report that the package was successfully loaded when it initializes. */class SamplePackageElement : public Element { public:    SamplePackageElement();		// SEE sample.cc FOR CONSTRUCTOR    ~SamplePackageElement();		// SEE sample.cc FOR DESTRUCTOR    const char *class_name() const	{ return "SamplePackageElement"; }    int initialize(ErrorHandler *errh);};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

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