Commit a116ef89 authored by yannick legoc's avatar yannick legoc
Browse files

Removed msvc and corrected conversion in C++

parent 84c3bd3d
/cameo-api-cpp.VC.db
/cameo-api-cpp.VC.VC.opendb
/cameo-api-cpp.vcxproj.filters
/.vs/
/Debug/
/x64/
Generate the proto files in src/proto
protoc -I=. --cpp_out=. Messages.proto
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cameo-api-cpp", "cameo-api-cpp.vcxproj", "{4C9E3D2B-5244-4971-BC21-41E865CB0732}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Debug|x64.ActiveCfg = Debug|x64
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Debug|x64.Build.0 = Debug|x64
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Debug|x86.ActiveCfg = Debug|Win32
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Debug|x86.Build.0 = Debug|Win32
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Release|x64.ActiveCfg = Release|x64
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Release|x64.Build.0 = Release|x64
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Release|x86.ActiveCfg = Release|Win32
{4C9E3D2B-5244-4971-BC21-41E865CB0732}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\..\src\cameo\Application.cpp" />
<ClCompile Include="..\..\src\cameo\ConnectionChecker.cpp" />
<ClCompile Include="..\..\src\cameo\ConnectionTimeout.cpp" />
<ClCompile Include="..\..\src\cameo\Event.cpp" />
<ClCompile Include="..\..\src\cameo\EventStreamSocket.cpp" />
<ClCompile Include="..\..\src\cameo\impl\ApplicationImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\CancelIdGenerator.cpp" />
<ClCompile Include="..\..\src\cameo\impl\GenericWaitingImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\HandlerImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\PublisherImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\RequesterImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\RequestImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\ResponderImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\ServicesImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\SocketImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\SocketWaitingImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\SubscriberImpl.cpp" />
<ClCompile Include="..\..\src\cameo\impl\WaitingImplSet.cpp" />
<ClCompile Include="..\..\src\cameo\InvalidArgumentException.cpp" />
<ClCompile Include="..\..\src\cameo\PortEvent.cpp" />
<ClCompile Include="..\..\src\cameo\PublisherCreationException.cpp" />
<ClCompile Include="..\..\src\cameo\PublisherEvent.cpp" />
<ClCompile Include="..\..\src\cameo\RemoteException.cpp" />
<ClCompile Include="..\..\src\cameo\RequesterCreationException.cpp" />
<ClCompile Include="..\..\src\cameo\ResponderCreationException.cpp" />
<ClCompile Include="..\..\src\cameo\Response.cpp" />
<ClCompile Include="..\..\src\cameo\ResultEvent.cpp" />
<ClCompile Include="..\..\src\cameo\Serializer.cpp" />
<ClCompile Include="..\..\src\cameo\Server.cpp" />
<ClCompile Include="..\..\src\cameo\Services.cpp" />
<ClCompile Include="..\..\src\cameo\SocketException.cpp" />
<ClCompile Include="..\..\src\cameo\StarterServerException.cpp" />
<ClCompile Include="..\..\src\cameo\StatusEvent.cpp" />
<ClCompile Include="..\..\src\cameo\SubscriberCreationException.cpp" />
<ClCompile Include="..\..\src\cameo\TimeCondition.cpp" />
<ClCompile Include="..\..\src\cameo\UnmanagedApplicationException.cpp" />
<ClCompile Include="..\..\src\proto\Messages.pb.cc" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\cameo\Application.h" />
<ClInclude Include="..\..\src\cameo\cameo.h" />
<ClInclude Include="..\..\src\cameo\ConnectionChecker.h" />
<ClInclude Include="..\..\src\cameo\ConnectionTimeout.h" />
<ClInclude Include="..\..\src\cameo\Event.h" />
<ClInclude Include="..\..\src\cameo\EventStreamSocket.h" />
<ClInclude Include="..\..\src\cameo\impl\ApplicationImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\CancelIdGenerator.h" />
<ClInclude Include="..\..\src\cameo\impl\GenericWaitingImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\HandlerImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\PublisherImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\RequesterImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\RequestImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\ResponderImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\ServicesImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\SocketImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\SocketWaitingImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\SubscriberImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\WaitingImpl.h" />
<ClInclude Include="..\..\src\cameo\impl\WaitingImplSet.h" />
<ClInclude Include="..\..\src\cameo\InvalidArgumentException.h" />
<ClInclude Include="..\..\src\cameo\PortEvent.h" />
<ClInclude Include="..\..\src\cameo\ProtoType.h" />
<ClInclude Include="..\..\src\cameo\PublisherCreationException.h" />
<ClInclude Include="..\..\src\cameo\PublisherEvent.h" />
<ClInclude Include="..\..\src\cameo\RemoteException.h" />
<ClInclude Include="..\..\src\cameo\RequesterCreationException.h" />
<ClInclude Include="..\..\src\cameo\ResponderCreationException.h" />
<ClInclude Include="..\..\src\cameo\Response.h" />
<ClInclude Include="..\..\src\cameo\ResultEvent.h" />
<ClInclude Include="..\..\src\cameo\Serializer.h" />
<ClInclude Include="..\..\src\cameo\Server.h" />
<ClInclude Include="..\..\src\cameo\Services.h" />
<ClInclude Include="..\..\src\cameo\SocketException.h" />
<ClInclude Include="..\..\src\cameo\StarterServerException.h" />
<ClInclude Include="..\..\src\cameo\StatusEvent.h" />
<ClInclude Include="..\..\src\cameo\SubscriberCreationException.h" />
<ClInclude Include="..\..\src\cameo\TimeCondition.h" />
<ClInclude Include="..\..\src\cameo\UnmanagedApplicationException.h" />
<ClInclude Include="..\..\src\proto\Messages.pb.h" />
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{4C9E3D2B-5244-4971-BC21-41E865CB0732}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>cameoapicpp</RootNamespace>
<WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<IncludePath>C:\Users\legoc\Documents\protobuf-2.6.1\src;C:\Program Files\ZeroMQ 3.2.4\include;C:\local\boost_1_59_0;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<IncludePath>C:\Users\legoc\Documents\protobuf-2.6.1\src;C:\Program Files\ZeroMQ 3.2.4\include;C:\local\boost_1_59_0;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<IncludePath>C:\Users\legoc\Documents\protobuf-2.6.1\src;$(ZEROMQ_HOME)\include;C:\Users\legoc\Documents;$(IncludePath)</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<IncludePath>C:\Users\legoc\Documents\protobuf-2.6.1\src;$(ZEROMQ_HOME)\include;C:\local\boost_1_59_0;C:\Users\legoc\Documents;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<PreprocessorDefinitions>NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
\ No newline at end of file
...@@ -94,7 +94,7 @@ std::unique_ptr<Event> EventStreamSocket::receive(bool blocking) { ...@@ -94,7 +94,7 @@ std::unique_ptr<Event> EventStreamSocket::receive(bool blocking) {
int id {event[message::KeyEvent::ID].GetInt()}; int id {event[message::KeyEvent::ID].GetInt()};
std::string name {event[message::KeyEvent::NAME].GetString()}; std::string name {event[message::KeyEvent::NAME].GetString()};
long status {event[message::KeyEvent::STATUS].GetInt64()}; long status {event[message::KeyEvent::STATUS].GetInt()};
std::string key {event[message::KeyEvent::KEY].GetString()}; std::string key {event[message::KeyEvent::KEY].GetString()};
std::string value {event[message::KeyEvent::VALUE].GetString()}; std::string value {event[message::KeyEvent::VALUE].GetString()};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment