Skip to content
Snippets Groups Projects
Commit 0e9bf8bf authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Delete legacy files

parent d590ef65
No related branches found
No related tags found
1 merge request!95Add introspection in RemoteGui
......@@ -45,8 +45,6 @@ set(LIB_FILES
query/ProviderSegmentQueryProcessor.cpp
query/CoreSegmentQueryProcessor.cpp
query/MemoryQueryProcessor.cpp
legacy/ArMemBase.cpp
)
set(LIB_HEADERS
core/Commit.h
......@@ -85,8 +83,6 @@ set(LIB_HEADERS
query/ProviderSegmentQueryProcessor.h
query/CoreSegmentQueryProcessor.h
query/MemoryQueryProcessor.h
legacy/ArMemBase.h
)
armarx_add_library("${LIB_NAME}" "${LIB_FILES}" "${LIB_HEADERS}" "${LIBS}")
......
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX 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, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::ArmarXObjects::armem
* @author Simon Ottenhaus ( simon dot ottenhaus at kit dot edu )
* @date 2020
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
// Header
#include "ArMemBase.h"
namespace armarx
{
namespace armem
{
const std::string ArMemBase::DEFAULT_LOCAL_MEMORY_NAME_PREFIX = "ArMemLocalStorage";
ArMemBase::ArMemBase()
{
my_hostname = GetMyHostname();
}
std::string ArMemBase::GenerateLocalMemoryObjectNameFromHostname(const std::string& hostname)
{
return DEFAULT_LOCAL_MEMORY_NAME_PREFIX + "__" + hostname;
}
std::string ArMemBase::getMyHostname() const
{
return my_hostname;
}
std::string ArMemBase::GetMyHostname()
{
boost::asio::io_service io_service;
return boost::asio::ip::host_name();
}
}
}
/*
* This file is part of ArmarX.
*
* ArmarX is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* ArmarX 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, see <http://www.gnu.org/licenses/>.
*
* @package RobotAPI::ArmarXObjects::armem
* @author Simon Ottenhaus ( simon dot ottenhaus at kit dot edu )
* @date 2020
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
* GNU General Public License
*/
#pragma once
// STD/STL
#include <string>
// Boost
#include <boost/asio.hpp>
namespace armarx
{
namespace armem
{
class ArMemBase;
typedef std::shared_ptr<ArMemBase> ArMemBasePtr;
class ArMemBase
{
public:
ArMemBase();
std::string getMyHostname() const;
static std::string GetMyHostname();
static std::string GenerateLocalMemoryObjectNameFromHostname(const std::string&);
private:
static const std::string DEFAULT_LOCAL_MEMORY_NAME_PREFIX;
std::string my_hostname;
};
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment