-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* windows cpack installer install all needed runtime libs and config files * 2 new application "ecal_config" and "ecal_stop" added (dumpl config, stop all running eCAL processes) * minor fix on server/client tcp header for future extensions author: Rex Schilasky <[email protected]>
- Loading branch information
1 parent
4318a2c
commit 244531e
Showing
32 changed files
with
370 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"SupportedTopics": | ||
[ | ||
{ | ||
"Format": "proto" | ||
"Format": "proto" | ||
} | ||
], | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# ========================= eCAL LICENSE ================================= | ||
# | ||
# Copyright (C) 2016 - 2019 Continental Corporation | ||
# | ||
# 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. | ||
# | ||
# ========================= eCAL LICENSE ================================= | ||
|
||
project(config) | ||
|
||
set(ecalconfig_src | ||
eCALConfig.cpp | ||
) | ||
|
||
ecal_add_app_console(${PROJECT_NAME} ${ecalconfig_src}) | ||
|
||
target_include_directories(${PROJECT_NAME} | ||
PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) | ||
|
||
target_compile_definitions(${PROJECT_NAME} | ||
PRIVATE $<$<BOOL:${MSVC}>:PCRE_STATIC;_UNICODE>) | ||
|
||
target_link_libraries(${PROJECT_NAME} eCAL::core) | ||
|
||
ecal_install_app(${PROJECT_NAME}) | ||
|
||
set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER app/util) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* ========================= eCAL LICENSE ================================= | ||
* | ||
* Copyright (C) 2016 - 2019 Continental Corporation | ||
* | ||
* 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. | ||
* | ||
* ========================= eCAL LICENSE ================================= | ||
*/ | ||
|
||
/** | ||
* @brief eCALConfig Console Application | ||
**/ | ||
|
||
#include <ecal/ecal.h> | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
// initialize eCAL API | ||
eCAL::Initialize(argc, argv, "eCALConfig"); | ||
|
||
// print config | ||
eCAL::Process::DumpConfig(); | ||
|
||
// finalize eCAL API | ||
eCAL::Finalize(); | ||
|
||
// return success | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# ========================= eCAL LICENSE ================================= | ||
# | ||
# Copyright (C) 2016 - 2019 Continental Corporation | ||
# | ||
# 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. | ||
# | ||
# ========================= eCAL LICENSE ================================= | ||
|
||
project(stop) | ||
|
||
set(ecalstop_src | ||
eCALStop.cpp | ||
) | ||
|
||
ecal_add_app_console(${PROJECT_NAME} ${ecalstop_src}) | ||
|
||
target_include_directories(${PROJECT_NAME} | ||
PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>) | ||
|
||
target_compile_definitions(${PROJECT_NAME} | ||
PRIVATE $<$<BOOL:${MSVC}>:PCRE_STATIC;_UNICODE>) | ||
|
||
target_link_libraries(${PROJECT_NAME} eCAL::core) | ||
|
||
ecal_install_app(${PROJECT_NAME}) | ||
|
||
set_property(TARGET ${PROJECT_NAME} PROPERTY FOLDER app/util) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* ========================= eCAL LICENSE ================================= | ||
* | ||
* Copyright (C) 2016 - 2019 Continental Corporation | ||
* | ||
* 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. | ||
* | ||
* ========================= eCAL LICENSE ================================= | ||
*/ | ||
|
||
/** | ||
* @brief eCALStop Console Application | ||
**/ | ||
|
||
#include <algorithm> | ||
#include <iostream> | ||
|
||
#include <ecal/ecal.h> | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
// initialize eCAL API | ||
eCAL::Initialize(argc, argv, "eCALStop", eCAL::Init::All); | ||
|
||
// set process state | ||
eCAL::Process::SetState(proc_sev_healthy, proc_sev_level1, "Running"); | ||
|
||
// some nice info show while collection | ||
std::cout << "Collecting local process informations." << std::endl; | ||
std::string sstring = "\nPlease wait ..........................\nStand by .............................\nStay tuned ...........................\n\n"; | ||
std::reverse(sstring.begin(), sstring.end()); | ||
while (!sstring.empty()) | ||
{ | ||
std::cout << sstring.back(); | ||
sstring.pop_back(); | ||
eCAL::Process::SleepMS(25); | ||
} | ||
eCAL::Process::SleepMS(500); | ||
|
||
// shut down local user processes | ||
std::cout << "--------------------------------------" << std::endl; | ||
std::cout << "Shutdown local eCAL user processes." << std::endl; | ||
std::cout << "--------------------------------------" << std::endl; | ||
eCAL::Util::ShutdownProcesses(); | ||
std::cout << std::endl; | ||
|
||
// shut down local eCAL core | ||
std::cout << "--------------------------------------" << std::endl; | ||
std::cout << "Shutdown local eCAL core components." << std::endl; | ||
std::cout << "--------------------------------------" << std::endl; | ||
eCAL::Util::ShutdownCore(); | ||
std::cout << std::endl; | ||
|
||
// finalize eCAL API | ||
eCAL::Finalize(); | ||
|
||
return EXIT_SUCCESS; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.