1
0
Fork 0

class structure for sACN transmitter and tranciever

This commit is contained in:
Kevin Matz 2021-06-02 09:21:01 -04:00
parent 418553fd3c
commit 15b611983a
6 changed files with 133 additions and 1 deletions

View File

@ -15,6 +15,8 @@ set(SOURCE_FILES
acn/component.h
acn/dmp.cpp
acn/dmp.h
sacn/node.cpp
sacn/node.h
acn/pdu.cpp
acn/pdu.h
acn/rlp-tcp.cpp
@ -35,6 +37,8 @@ set(SOURCE_FILES
sacn/receiver.cpp
sacn/receiver.h
sacn/sacn.h
sacn/source.cpp
sacn/source.h
sacn/universe.cpp
sacn/universe.h
uuid/uuid.cpp

14
sacn/node.cpp Normal file
View File

@ -0,0 +1,14 @@
#include "node.h"
namespace SACN {
Node::Node(UUID::uuid cid)
: Appliance(cid)
, Receiver()
, Source()
{
}
} // SACN

41
sacn/node.h Normal file
View File

@ -0,0 +1,41 @@
/*
node.h
Copyright (c) 2021 Kevin Matz (kevin.matz@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#pragma once
#include "sacn.h"
#include "receiver.h"
#include "source.h"
namespace SACN {
class Node
: public Receiver
, public Source
{
public:
Node(UUID::uuid = UUID::uuid());
};
} // SACN

View File

@ -31,7 +31,7 @@
namespace SACN {
class Receiver
: public Appliance
: public virtual Appliance
{
public:
Receiver(UUID::uuid = UUID::uuid());

34
sacn/source.cpp Normal file
View File

@ -0,0 +1,34 @@
/*
sender.cpp
Copyright (c) 2021 Kevin Matz (kevin.matz@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include "source.h"
namespace SACN {
Source::Source(UUID::uuid cid)
: Appliance(cid)
{
}
} // SACN

39
sacn/source.h Normal file
View File

@ -0,0 +1,39 @@
/*
sender.h
Copyright (c) 2021 Kevin Matz (kevin.matz@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#pragma once
#include "sacn.h"
namespace SACN {
class Source
: public virtual Appliance
{
public:
Source(UUID::uuid = UUID::uuid());
};
} // SACN