Thank you for your reply! I'll give it a try.

在 2016年12月10日星期六 UTC+8上午8:04:09,liujisi写道:
>
> Each message type has a default instance. You can specify the default 
> values for the fields in the message and use the default instance of that 
> message as the singleton.
>
> On Sat, Dec 3, 2016 at 9:13 PM 梅骁 <mxmx...@gmail.com <javascript:>> wrote:
>
>> Hi,
>>     Does protobuf has singleton support? I want to use it for global 
>> configurations of my program.
>>     For example, if I have a message type "GlobalSetting", then I want to 
>> use the class like: GlobalSetting::Instance().get_someVarible.
>>                                                                           
>>               Thank you.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Protocol Buffers" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to protobuf+u...@googlegroups.com <javascript:>.
>> To post to this group, send email to prot...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/protobuf.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to