1
0
Fork 0

cleanup the the linking and including hierarchy

This commit is contained in:
Kevin Matz 2022-11-30 09:52:25 -05:00
parent 32557b5c31
commit 0ba1ecc9ac
26 changed files with 37 additions and 38 deletions

View File

@ -19,6 +19,7 @@ target_sources(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PUBLIC
LCP_acn_pdu
LCP_acn_sdt
LCP_uuid
)

View File

@ -23,8 +23,8 @@
*/
#pragma once
#include "../sdt/member.h"
#include "device.h"
#include "sdt/member.h"
#include "dmp/device.h"
#include "uuid.h"
namespace ACN::DMP {

View File

@ -23,7 +23,7 @@
*/
#pragma once
#include "leader.h"
#include "sdt/leader.h"
namespace ACN::DMP {

View File

@ -26,7 +26,7 @@
#include <cstdint>
#include <memory>
#include <vector>
#include "../pdu.h"
#include "pdu.h"
/**
* @brief @cite DMP Architecture for Control Networks Device Management Protocol

View File

@ -17,6 +17,7 @@ target_sources(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PUBLIC
LCP_acn_pdu
LCP_uuid
)

View File

@ -23,7 +23,7 @@
*/
#include "component.h"
#include "../sdt/sdt.h"
#include "sdt/sdt.h"
#include "tcp.h"
#include "udp.h"

View File

@ -24,9 +24,9 @@
#pragma once
#include "../component.h"
#include "../pdu.h"
#include "pdu.h"
#include "rlp.h"
#include "../sdt/udp.h"
#include "sdt/udp.h"
#include <map>
#include <memory>

View File

@ -25,7 +25,7 @@
#include <cstdint>
#include <memory>
#include "../pdu.h"
#include "pdu.h"
#include "uuid.h"
/**

View File

@ -25,7 +25,7 @@
#include <cstdint>
#include "rlp.h"
#include "../pdu.h"
#include "pdu.h"
// EPI 33. ACN Root Layer Protocol Operation on TCP

View File

@ -6,6 +6,8 @@ target_sources(${PROJECT_NAME}
PUBLIC
leader.h
member.h
sdt.h
udp.h
PRIVATE
channel.cpp
channel.h
@ -14,11 +16,9 @@ target_sources(${PROJECT_NAME}
identity.cpp
identity.h
sdt.cpp
sdt.h
session.cpp
session.h
udp.cpp
udp.h
)
target_link_libraries(${PROJECT_NAME}

View File

@ -31,9 +31,10 @@ namespace ACN::SDT {
* @param owner
* @param direction
*/
Channel::Channel(std::shared_ptr<Component> owner, Direction direction) {
owner_ = owner;
direction_ = direction;
Channel::Channel(std::shared_ptr<ACN::RLP::Component> owner, Direction direction)
: owner_(owner)
, direction_(direction)
{
}

View File

@ -23,7 +23,7 @@
*/
#pragma once
#include "../component.h"
#include "rlp/component.h"
#include <memory>
@ -47,11 +47,11 @@ enum Direction {
*/
class Channel {
public:
Channel(std::shared_ptr<Component>, Direction);
Channel(std::shared_ptr<ACN::RLP::Component>, Direction);
~Channel();
private:
std::shared_ptr<Component> owner_;
std::shared_ptr<ACN::RLP::Component> owner_;
Direction direction_ = internal;
};

View File

@ -23,8 +23,8 @@
*/
#pragma once
#include "session.h"
#include "../rlp/component.h"
#include "sdt/session.h"
#include "rlp/component.h"
#include <vector>
#include <memory>

View File

@ -23,7 +23,7 @@
*/
#pragma once
#include "../rlp/component.h"
#include "rlp/component.h"
namespace ACN::SDT {

View File

@ -23,8 +23,8 @@
*/
#pragma once
#include "../pdu.h"
#include "udp.h" // EPI 18
#include "pdu.h"
#include "sdt/udp.h" // EPI 18
/**
* @brief @cite SDT ANSI E1.17- 2015, Architecture for Control Networks

View File

@ -23,7 +23,7 @@
*/
#pragma once
#include "../pdu-stream.h"
#include "pdu-stream.h"
#include <cstdint>
// ACN EPI 18 - Operation of SDT on UDP Networks

View File

@ -17,7 +17,7 @@ target_sources(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PUBLIC
LCP_acn
LCP_acn_pdu
)
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})

View File

@ -23,8 +23,7 @@
*/
#pragma once
#include "../acn/pdu-stream.h"
#include "pdu-stream.h"
#include <vector>
namespace OTP {

View File

@ -24,7 +24,6 @@
#pragma once
#include "pdu.h"
#include <chrono>
namespace OTP::Transform {

View File

@ -22,7 +22,7 @@ target_sources(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PUBLIC
LCP_acn
LCP_acn_pdu
LCP_rdm
LCP_rdmnet_ept
LCP_rdmnet_llrp

View File

@ -15,7 +15,7 @@ target_sources(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PUBLIC
LCP_acn
LCP_acn_rlp
LCP_rdm
LCP_rdmnet_rpt
)

View File

@ -24,7 +24,7 @@
#pragma once
#include "llrp.h"
#include "rlp/component.h"
#include "component.h"
namespace RDMnet::LLRP {

View File

@ -24,7 +24,9 @@ target_sources(${PROJECT_NAME}
target_link_libraries(${PROJECT_NAME}
PUBLIC
LCP_acn
LCP_acn_pdu
LCP_acn_rlp
LCP_acn_dmp
LCP_dmx
)
@ -33,6 +35,3 @@ set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
target_compile_definitions(${PROJECT_NAME} PUBLIC ${PROJECT_NAME}_LIBRARY)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

View File

@ -216,7 +216,7 @@ std::shared_ptr<DATA::data_header> ArbitratingUniverse::provenance()
* @param src
*/
void ArbitratingUniverse::set(std::shared_ptr<ACN::DMP::Pdu> pdu,
std::shared_ptr<DATA::data_header> src)
std::shared_ptr<DATA::data_header> src)
{
if (expectedUniverse != 0 &&
src->universe != expectedUniverse)

View File

@ -23,7 +23,7 @@
*/
#pragma once
#include "sdt/sdt.h"
#include "../acn/sdt/sdt.h"
#include <cstdint>

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.20)
project(Tests LANGUAGES CXX)
project(tests LANGUAGES CXX)
set(CMAKE_AUTOUIC OFF)
set(CMAKE_AUTOMOC OFF)
@ -14,7 +14,6 @@ if (GTest_FOUND)
PRIVATE
GTest::gtest
LCP_uuid
LCP_acn
LCP_sacn
)
target_include_directories(${PROJECT_NAME}