📄 sampleelt.hh
字号:
#ifndef SAMPLEPACKAGEELEMENT_HH#define SAMPLEPACKAGEELEMENT_HH/* * =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. */#include <click/element.hh>class SamplePackageElement : public Element { public: SamplePackageElement(); // SEE sample.cc FOR CONSTRUCTOR ~SamplePackageElement(); // SEE sample.cc FOR DESTRUCTOR const char *class_name() const { return "SamplePackageElement"; } const char *processing() const { return AGNOSTIC; } int initialize(ErrorHandler *); void add_handlers(); };#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -