Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
233e782a
Commit
233e782a
authored
Sep 04, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch svn r35216
parent
dcab5e6c
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
162 additions
and
31 deletions
+162
-31
idl_options.proto
src/idl_options.proto
+2
-3
field_type.cpp
src/mcpack2pb/field_type.cpp
+14
-2
field_type.h
src/mcpack2pb/field_type.h
+15
-3
generator.cpp
src/mcpack2pb/generator.cpp
+14
-2
mcpack2pb.cpp
src/mcpack2pb/mcpack2pb.cpp
+14
-2
mcpack2pb.h
src/mcpack2pb/mcpack2pb.h
+15
-3
parser-inl.h
src/mcpack2pb/parser-inl.h
+14
-2
parser.cpp
src/mcpack2pb/parser.cpp
+14
-2
parser.h
src/mcpack2pb/parser.h
+15
-3
serializer-inl.h
src/mcpack2pb/serializer-inl.h
+15
-3
serializer.cpp
src/mcpack2pb/serializer.cpp
+15
-3
serializer.h
src/mcpack2pb/serializer.h
+15
-3
No files found.
src/idl_options.proto
View file @
233e782a
syntax
=
"proto2"
;
syntax
=
"proto2"
;
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
// Author: Ge,Jun (gejun@baidu.com)
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
import
"google/protobuf/descriptor.proto"
;
import
"google/protobuf/descriptor.proto"
;
...
...
src/mcpack2pb/field_type.cpp
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author:
The baidu-rpc authors (pbrpc
@baidu.com)
// Author:
Ge,Jun (gejun
@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#include "mcpack2pb/field_type.h"
#include "mcpack2pb/field_type.h"
...
...
src/mcpack2pb/field_type.h
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author: Ge,Jun (gejun@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#ifndef PUBLIC_MCPACK2PB_MCPACK_FIELD_TYPE_H
#ifndef PUBLIC_MCPACK2PB_MCPACK_FIELD_TYPE_H
...
...
src/mcpack2pb/generator.cpp
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author:
The baidu-rpc authors (pbrpc
@baidu.com)
// Author:
Ge,Jun (gejun
@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#include <set>
#include <set>
...
...
src/mcpack2pb/mcpack2pb.cpp
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author:
The baidu-rpc authors (pbrpc
@baidu.com)
// Author:
Ge,Jun (gejun
@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#include <gflags/gflags.h>
#include <gflags/gflags.h>
...
...
src/mcpack2pb/mcpack2pb.h
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author: Ge,Jun (gejun@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#ifndef PUBLIC_MCPACK2PB_MCPACK_MCPACK2PB_H
#ifndef PUBLIC_MCPACK2PB_MCPACK_MCPACK2PB_H
...
...
src/mcpack2pb/parser-inl.h
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author:
The baidu-rpc authors (pbrpc
@baidu.com)
// Author:
Ge,Jun (gejun
@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#ifndef PUBLIC_MCPACK2PB_MCPACK_PARSER_INL_H
#ifndef PUBLIC_MCPACK2PB_MCPACK_PARSER_INL_H
...
...
src/mcpack2pb/parser.cpp
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author:
The baidu-rpc authors (pbrpc
@baidu.com)
// Author:
Ge,Jun (gejun
@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#include "mcpack2pb/parser.h"
#include "mcpack2pb/parser.h"
...
...
src/mcpack2pb/parser.h
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author: Ge,Jun (gejun@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#ifndef PUBLIC_MCPACK2PB_MCPACK_PARSER_H
#ifndef PUBLIC_MCPACK2PB_MCPACK_PARSER_H
...
...
src/mcpack2pb/serializer-inl.h
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author: Ge,Jun (gejun@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#ifndef PUBLIC_MCPACK2PB_MCPACK_SERIALIZER_INL_H
#ifndef PUBLIC_MCPACK2PB_MCPACK_SERIALIZER_INL_H
...
...
src/mcpack2pb/serializer.cpp
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author: Ge,Jun (gejun@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#include "mcpack2pb/serializer.h"
#include "mcpack2pb/serializer.h"
...
...
src/mcpack2pb/serializer.h
View file @
233e782a
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// mcpack2pb - Make protobuf be front-end of mcpack/compack
// Copyright (c) 2015 Baidu.com, Inc. All Rights Reserved
// Copyright (c) 2015 baidu-rpc authors.
//
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Author: Ge,Jun (gejun@baidu.com)
// Date: Mon Oct 19 17:17:36 CST 2015
// Date: Mon Oct 19 17:17:36 CST 2015
#ifndef PUBLIC_MCPACK2PB_MCPACK_SERIALIZER_H
#ifndef PUBLIC_MCPACK2PB_MCPACK_SERIALIZER_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment