28 #include "descriptorprinterbase.h"
30 namespace QtProtobuf {
39 class MessageDeclarationPrinter :
public DescriptorPrinterBase<google::protobuf::Descriptor>
42 MessageDeclarationPrinter(const ::google::protobuf::Descriptor *message,
const std::shared_ptr<::google::protobuf::io::Printer> &printer);
43 virtual ~MessageDeclarationPrinter() =
default;
45 void printClassDeclaration();
46 void printClassForwardDeclaration();
49 void printCopyFunctionality();
50 void printMoveSemantic();
51 void printComparisonOperators();
52 void printClassBody();
53 void printProperties();
56 void printPrivateGetters();
57 void printPrivateSetters();
59 void printPrivateMethods();
60 void printClassMembers();
61 void printConstructor(
int fieldCount);
62 void printConstructors();
63 void printDestructor();
67 void printMetaTypesDeclaration();
68 void printClassDeclarationBegin();
69 void printFieldEnum();
74 void printClassDeclarationPrivate();
75 void printClassForwardDeclarationPrivate();