📄 paint.hh
字号:
#ifndef CLICK_PAINT_HH#define CLICK_PAINT_HH#include <click/element.hh>CLICK_DECLS/*=cPaint(COLOR [, ANNO])=s paintsets packet paint annotations=dSets each packet's paint annotation to COLOR, an integer 0..255.Paint sets the packet's PAINT annotation by default, but the ANNO argument canspecify any one-byte annotation.=h color read/writeGet/set the color to paint.=a PaintTee */class Paint : public Element { public: Paint(); ~Paint(); const char *class_name() const { return "Paint"; } const char *port_count() const { return PORTS_1_1; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } void add_handlers(); Packet *simple_action(Packet *); private: uint8_t _anno; uint8_t _color;};CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -