QtProtobuf  0.6
Protobuf plugin to generate Qt classes
Public Types | Static Public Member Functions | List of all members
QtProtobuf::generator::common Struct Reference

Public Types

enum  EnumVisibility { GLOBAL_ENUM , LOCAL_ENUM , NEIGHBOR_ENUM }
 
using InterateMessageLogic = std::function< void(const ::google::protobuf::FieldDescriptor *, PropertyMap &)>
 

Static Public Member Functions

template<typename T >
static std::vector< std::string > getNamespaces (const T *type)
 
static std::vector< std::string > getNestedNamespaces (const ::google::protobuf::Descriptor *type)
 
static std::string getNamespacesString (const std::vector< std::string > &namespacesList, const std::string &separator)
 
static std::string getScopeNamespacesString (std::string original, const std::string &scope)
 
static TypeMap produceQtTypeMap (const ::google::protobuf::Descriptor *type, const ::google::protobuf::Descriptor *scope)
 
static TypeMap produceMessageTypeMap (const ::google::protobuf::Descriptor *type, const ::google::protobuf::Descriptor *scope)
 
static TypeMap produceEnumTypeMap (const ::google::protobuf::EnumDescriptor *type, const ::google::protobuf::Descriptor *scope)
 
static TypeMap produceSimpleTypeMap (::google::protobuf::FieldDescriptor::Type type)
 
static TypeMap produceTypeMap (const ::google::protobuf::FieldDescriptor *field, const ::google::protobuf::Descriptor *scope)
 
static PropertyMap producePropertyMap (const ::google::protobuf::FieldDescriptor *field, const ::google::protobuf::Descriptor *scope)
 
static std::string qualifiedName (const std::string &name)
 
static bool isLocalEnum (const ::google::protobuf::EnumDescriptor *type, const google::protobuf::Descriptor *scope)
 
static EnumVisibility enumVisibility (const ::google::protobuf::EnumDescriptor *type, const ::google::protobuf::Descriptor *scope)
 
static bool hasQmlAlias (const ::google::protobuf::FieldDescriptor *field)
 
static bool isQtType (const ::google::protobuf::FieldDescriptor *field)
 
static bool isPureMessage (const ::google::protobuf::FieldDescriptor *field)
 
static void iterateMessageFields (const ::google::protobuf::Descriptor *message, InterateMessageLogic callback)
 
static MethodMap produceMethodMap (const ::google::protobuf::MethodDescriptor *method, const std::string &scope)
 
static void iterateMessages (const ::google::protobuf::FileDescriptor *file, std::function< void(const ::google::protobuf::Descriptor *)> callback)
 
static void iterateNestedMessages (const ::google::protobuf::Descriptor *message, std::function< void(const ::google::protobuf::Descriptor *)> callback)
 
static bool hasNestedMessages (const ::google::protobuf::Descriptor *message)
 
static bool isNested (const ::google::protobuf::Descriptor *message)
 
static bool isNestedOf (const ::google::protobuf::Descriptor *message, const ::google::protobuf::Descriptor *containing)
 
static const ::google::protobuf::Descriptor * findHighestMessage (const ::google::protobuf::Descriptor *message)
 

The documentation for this struct was generated from the following files: