Advanced Handling for Google Protocol Buffers Message in C++
The AHGPBM (Advanced Handling for Google Protocol Buffer Message) is a C++ library for the handling of the Google Protocol Buffer Message.
This library give a simple interface to handle this kind of message ( in general data to analize ).
After a first instrumentation of the internal network of the handler, you can easily inject message in the network that will handle the routing and the dispatching of the message.
The following are the operations to build the library
In order to create the library we need:
- A Linux System
- A G++ compiler with support for C++17
- CMake > 3.0.0
- Google Protocol Buffer Library
- Google Test Library
The Pre-Build operations are defined to install the required Google library dependencies.
sudo apt-get install autoconf automake libtool curl make g++ unzip
- From this page, download the
protobuf-all-[VERSION].tar.gz
. - Extract the contents and change in the directory (
tar xzf protobuf-all-[VERSION].tar.gz
andcd protobuf-all-[VERSION]
) ./configure
make
make check
sudo make install
sudo ldconfig # refresh shared library cache.
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig
git clone https://github.com/google/googletest.git -b release-1.10.0
cd googletest
# Main directory of the cloned repository.mkdir build
# Create a directory to hold the build output.cd build
cmake ..
orcmake .. -DBUILD_GMOCK=OFF
make
sudo make install
# Install in /usr/local/ by default # Generate native build scripts for GoogleTest.
In order to build the AHGPBM library, you need to do the following operation:
git clone https://github.com/ZigRazor/AHGPBM.git
cd AHGPBM
# Enter the root of the projectmkdir build
# Create Build directorycd build
# Enter Build directorycmake ..
# Prepare Makefilemake
# Make library
When compiling the library is generated also a Google Test executable called ahgpbm_test
.
In order to run the test just enter the build
directory and execute ./ahgpbm_test
Work in progress...
Work in progress...
For detailed information on how to contribute, see CONTRIBUTING
.
Distributed under the GNU General Public License v3.0. See LICENSE
for more information.
Zig Razor - zigrazor@gmail.com