Loading CMakeLists.txt +4 −11 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ project(kinetic_cpp_client_examples CXX C) find_package (Threads) set(CMAKE_CXX_FLAGS "-g --std=c++11 -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-null-dereference -DGTEST_USE_OWN_TR1_TUPLE=1 -D__STDC_FORMAT_MACROS") set(CMAKE_CXX_FLAGS "--std=c++11 -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-null-dereference -DGTEST_USE_OWN_TR1_TUPLE=1 -D__STDC_FORMAT_MACROS") set(GENERATED_SOURCES_PATH ${kinetic_cpp_client_SOURCE_DIR}/src/main/generated) Loading @@ -12,13 +12,13 @@ include(ExternalProject) option(USE_LOCAL_KINETIC_CLIENT "Uses the kinetic client at the KINETIC_CLIENT_PATH variable instead of downloading library from Git" off) if(USE_LOCAL_KINETIC_CLIENT) else(USE_LOCAL_KINETIC_CLIENT) set(KINETIC_CLIENT_PATH "${kinetic_cpp_client_examples_SOURCE_DIR}/vendor/src/kinetic_cpp_client") set(KINETIC_CLIENT_PATH "${CMAKE_BINARY_DIR}/vendor/src/kinetic_cpp_client") ExternalProject_add( kinetic_cpp_client PREFIX "vendor" GIT_REPOSITORY "git@github.com:Seagate/Kinetic-C-Client.git" GIT_TAG "d8661408a946a5afd747d7d6d45784142f4b84a2" GIT_REPOSITORY "git@github.com:Seagate/kinetic-cpp-client.git" GIT_TAG "71a3efd497d6a8cd891f6962a62b3e4fde1c69c4" BUILD_IN_SOURCE 1 INSTALL_COMMAND "" ) Loading Loading @@ -56,13 +56,6 @@ macro(add_example_target NAME USE_EXAMPLE_MAIN) target_link_libraries(${NAME} ${LIBRARY_DEPENDENCIES}) add_dependencies(${NAME} kinetic_cpp_client) set_target_properties( ${NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR} RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR} ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR} ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR} ) endmacro(add_example_target) add_example_target(kineticstat true) Loading LICENSE 0 → 100644 +502 −0 File added.Preview size limit exceeded, changes collapsed. Show changes src/command_line_flags.h +20 −0 Original line number Diff line number Diff line /* * kinetic-cpp-examples * Copyright (C) 2014 Seagate Technology. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #ifndef COMMAND_LINE_FLAGS_H_ #define COMMAND_LINE_FLAGS_H_ Loading src/copydrive.cc +20 −0 Original line number Diff line number Diff line /* * kinetic-cpp-examples * Copyright (C) 2014 Seagate Technology. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #include <stdio.h> #include "kinetic/kinetic.h" Loading src/delete_file_blocking.cc +20 −0 Original line number Diff line number Diff line /* * kinetic-cpp-examples * Copyright (C) 2014 Seagate Technology. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ // This deletes a file written using write_file_(non)blocking #include <stdio.h> Loading Loading
CMakeLists.txt +4 −11 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ project(kinetic_cpp_client_examples CXX C) find_package (Threads) set(CMAKE_CXX_FLAGS "-g --std=c++11 -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-null-dereference -DGTEST_USE_OWN_TR1_TUPLE=1 -D__STDC_FORMAT_MACROS") set(CMAKE_CXX_FLAGS "--std=c++11 -Wall -Wextra -Werror -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused-local-typedefs -Wno-null-dereference -DGTEST_USE_OWN_TR1_TUPLE=1 -D__STDC_FORMAT_MACROS") set(GENERATED_SOURCES_PATH ${kinetic_cpp_client_SOURCE_DIR}/src/main/generated) Loading @@ -12,13 +12,13 @@ include(ExternalProject) option(USE_LOCAL_KINETIC_CLIENT "Uses the kinetic client at the KINETIC_CLIENT_PATH variable instead of downloading library from Git" off) if(USE_LOCAL_KINETIC_CLIENT) else(USE_LOCAL_KINETIC_CLIENT) set(KINETIC_CLIENT_PATH "${kinetic_cpp_client_examples_SOURCE_DIR}/vendor/src/kinetic_cpp_client") set(KINETIC_CLIENT_PATH "${CMAKE_BINARY_DIR}/vendor/src/kinetic_cpp_client") ExternalProject_add( kinetic_cpp_client PREFIX "vendor" GIT_REPOSITORY "git@github.com:Seagate/Kinetic-C-Client.git" GIT_TAG "d8661408a946a5afd747d7d6d45784142f4b84a2" GIT_REPOSITORY "git@github.com:Seagate/kinetic-cpp-client.git" GIT_TAG "71a3efd497d6a8cd891f6962a62b3e4fde1c69c4" BUILD_IN_SOURCE 1 INSTALL_COMMAND "" ) Loading Loading @@ -56,13 +56,6 @@ macro(add_example_target NAME USE_EXAMPLE_MAIN) target_link_libraries(${NAME} ${LIBRARY_DEPENDENCIES}) add_dependencies(${NAME} kinetic_cpp_client) set_target_properties( ${NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR} RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR} ARCHIVE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR} ARCHIVE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR} ) endmacro(add_example_target) add_example_target(kineticstat true) Loading
src/command_line_flags.h +20 −0 Original line number Diff line number Diff line /* * kinetic-cpp-examples * Copyright (C) 2014 Seagate Technology. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #ifndef COMMAND_LINE_FLAGS_H_ #define COMMAND_LINE_FLAGS_H_ Loading
src/copydrive.cc +20 −0 Original line number Diff line number Diff line /* * kinetic-cpp-examples * Copyright (C) 2014 Seagate Technology. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ #include <stdio.h> #include "kinetic/kinetic.h" Loading
src/delete_file_blocking.cc +20 −0 Original line number Diff line number Diff line /* * kinetic-cpp-examples * Copyright (C) 2014 Seagate Technology. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ // This deletes a file written using write_file_(non)blocking #include <stdio.h> Loading