Re: [protobuf] Does ProtoBuf identify C++ Class Type in .proto file ?

50 views
Skip to first unread message

Jason Hsueh

unread,
Nov 7, 2012, 5:29:55 PM11/7/12
to Santosh Dumbre, Protocol Buffers, santosh...@igate.com
No, protocol buffers cannot contain arbitrary classes.


On Thu, Nov 1, 2012 at 12:17 AM, Santosh Dumbre <santosh...@gmail.com> wrote:
Please consider a scenario -
 
I have an existing C++  Class -
 
class A
{
    int x;
    char*  y;
 
    public:
   
    int processData(int x, char* y)
    {
 
 
     }
};
 
Question -
Can I use this Class Type - :     "Class A"  as Message Type for serialization inside  .proto file ?
 
Kindly help my understanding.
 
Thanks & Regards,
Santosh.
 
 

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/i4phWpLvvnkJ.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

Reply all
Reply to author
Forward
0 new messages