1 // RequestDumper.h 2 3 #ifndef NET_FS_REQUEST_DUMPER_H 4 #define NET_FS_REQUEST_DUMPER_H 5 6 #include <SupportDefs.h> 7 8 #include "Request.h" 9 10 // RequestDumper 11 class RequestDumper : public RequestMemberVisitor { 12 public: 13 RequestDumper(); 14 15 void DumpRequest(Request* request); 16 17 virtual void Visit(RequestMember* member, bool& data); 18 virtual void Visit(RequestMember* member, int8& data); 19 virtual void Visit(RequestMember* member, uint8& data); 20 virtual void Visit(RequestMember* member, int16& data); 21 virtual void Visit(RequestMember* member, uint16& data); 22 virtual void Visit(RequestMember* member, int32& data); 23 virtual void Visit(RequestMember* member, uint32& data); 24 virtual void Visit(RequestMember* member, int64& data); 25 virtual void Visit(RequestMember* member, uint64& data); 26 virtual void Visit(RequestMember* member, Data& data); 27 virtual void Visit(RequestMember* member, StringData& data); 28 virtual void Visit(RequestMember* member, 29 RequestMember& subMember); 30 virtual void Visit(RequestMember* member, 31 FlattenableRequestMember& subMember); 32 33 private: 34 const char* _Indentation() const; 35 36 private: 37 int fIndentationLevel; 38 }; 39 40 #endif // NET_FS_REQUEST_DUMPER_H 41