Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ITS - Intelligent Transport Systems
ITS
Commits
cf2b30d8
Commit
cf2b30d8
authored
Mar 26, 2018
by
garciay
Browse files
STF525: Doxygen help support
parent
06343993
Changes
98
Hide whitespace changes
Inline
Side-by-side
ccsrc/Externals/LibItsSecurity_externals.cc
View file @
cf2b30d8
...
...
@@ -270,19 +270,12 @@ namespace LibItsSecurity__Functions
p__tag
=
OCTETSTRING
(
ec
.
tag
().
size
(),
ec
.
tag
().
data
());
loggers
::
get_instance
().
log_to_hexa
(
"fx__encryptWithEciesNistp256WithSha256: p__tag: "
,
p__tag
);
// Encrypt symmetric key
// Encrypt
the
symmetric key
OCTETSTRING
encSymKey
=
OCTETSTRING
(
ec
.
nonce
().
size
(),
ec
.
symmetric_encryption_key
().
data
());
loggers
::
get_instance
().
log_to_hexa
(
"fx__encryptWithEciesNistp256WithSha256: p__encSymKey: "
,
encSymKey
);
// Create new instance of ECC
// 1. Create new instance of ECC
security_ecc
ec_ecies
(
ec_elliptic_curves
::
nist_p_256
);
// Generate (Private,Public) keys
//
2.
Generate (Private,Public) keys
ec_ecies
.
generate
();
// Generate ephemeral key and derive it
std
::
vector
<
unsigned
char
>
peer_public_key_x
(
static_cast
<
const
unsigned
char
*>
(
p__peerPublicKeyX
),
p__peerPublicKeyX
.
lengthof
()
+
static_cast
<
const
unsigned
char
*>
(
p__peerPublicKeyX
));
...
...
@@ -294,7 +287,7 @@ namespace LibItsSecurity__Functions
loggers
::
get_instance
().
warning
(
"fx__encryptWithEciesNistp256WithSha256: Failed to generate and derive sender's ephemeral key"
);
return
OCTETSTRING
();
}
// Encrypt the symmetric encryption key using existing nonce and symmetric encryption key
//
3.
Encrypt the symmetric encryption key using existing nonce and symmetric encryption key
std
::
vector
<
unsigned
char
>
enc_eph_key
;
if
(
ec
.
encrypt
(
encryption_algotithm
::
aes_128_ccm
,
ec_ecies
.
ephemeral_key
(),
ec
.
nonce
(),
ec
.
symmetric_encryption_key
(),
enc_eph_key
)
==
-
1
)
{
loggers
::
get_instance
().
warning
(
"fx__encryptWithEciesNistp256WithSha256: Failed to encrypt message"
);
...
...
@@ -312,7 +305,9 @@ namespace LibItsSecurity__Functions
}
OCTETSTRING
fx__decryptWithEciesNistp256WithSha256
(
const
OCTETSTRING
&
p__encryptedSecuredMessage
,
const
OCTETSTRING
&
p__publicKeyX
,
const
OCTETSTRING
&
p__publicKeyY
,
const
OCTETSTRING
&
p__nonce
,
const
OCTETSTRING
&
p__tag
)
{
OCTETSTRING
os
;
OCTETSTRING
os
;
os
=
OCTETSTRING
();
...
...
ccsrc/Framework/TLayer.hh
deleted
100644 → 0
View file @
06343993
/*!
* \file t_layer.hh
* \brief Header file for ITS abstract protocol layer definition.
* \author ETSI STF525
* \copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
* \version 0.1
*/
#pragma once
#include
"Layer.hh"
template
<
typename
TPort
>
class
TLayer
:
public
Layer
{
typedef
std
::
vector
<
TPort
*>
TPortList
;
typedef
typename
std
::
vector
<
TPort
*>::
iterator
TPortListIterator
;
TPortList
upperPorts
;
public:
explicit
TLayer
()
:
Layer
(),
upperPorts
()
{
};
explicit
TLayer
(
const
std
::
string
&
p_type
)
:
Layer
(
p_type
),
upperPorts
()
{
};
void
addUpperPort
(
TPort
*
p_port
)
{
upperPorts
.
push_back
(
p_port
);
};
void
removeUpperPort
(
TPort
*
);
protected:
template
<
typename
TMessage
>
inline
void
toAllUpperPorts
(
const
TMessage
&
m
,
const
Params
&
param
)
{
for
(
TPortListIterator
it
=
upperPorts
.
begin
();
it
<
upperPorts
.
end
();
++
it
){
(
*
it
)
->
receiveMsg
(
m
,
param
);
}
}
};
// End of class TLayer
ccsrc/Framework/
L
ayer.hh
→
ccsrc/Framework/
l
ayer.hh
View file @
cf2b30d8
...
...
@@ -23,12 +23,12 @@ class CHARSTRING; //! Forward declaration of TITAN class
class
INTEGER
;
//! Forward declaration of TITAN class
/*!
* \class
L
ayer
* \class
l
ayer
* \brief This class provides basic description of an ITS protocol layer
*/
class
L
ayer
{
std
::
vector
<
L
ayer
*>
upperLayers
;
//! List of the upper protocol layers
std
::
vector
<
L
ayer
*>
lowerLayers
;
//! List of the lower protocol layers
class
l
ayer
{
std
::
vector
<
l
ayer
*>
upperLayers
;
//! List of the upper protocol layers
std
::
vector
<
l
ayer
*>
lowerLayers
;
//! List of the lower protocol layers
protected:
std
::
string
type
;
//! Type description, it indicates the protocol type (e.g. CAM, DENM, GN, ETH, PCAP...)
...
...
@@ -36,47 +36,45 @@ protected:
public:
//! \publicsection
/*!
* \brief Default constructor
* Create a new instance of the Layer class
* \todo Remove logs
* Create a new instance of the layer class
*/
explicit
L
ayer
()
:
upperLayers
(),
lowerLayers
(),
type
(
std
::
string
(
""
))
{
};
explicit
l
ayer
()
:
upperLayers
(),
lowerLayers
(),
type
(
std
::
string
(
""
))
{
};
/*!
* \brief Specialized constructor
* Create a new instance of the Layer class with its type description
* \remark This constructor is called by the Layer factory
* Create a new instance of the layer class with its type description
* \param[in] p_type The port type name (e.g. GN for the GeoNetworking layer)
* \remark This constructor is called by the layer factory
* \see layer_factory
* \todo Remove logs
*/
explicit
L
ayer
(
const
std
::
string
&
p_type
)
:
upperLayers
(),
lowerLayers
(),
type
(
std
::
string
(
p_type
.
begin
(),
p_type
.
end
()))
{
};
explicit
l
ayer
(
const
std
::
string
&
p_type
)
:
upperLayers
(),
lowerLayers
(),
type
(
std
::
string
(
p_type
.
begin
(),
p_type
.
end
()))
{
};
/*!
* \brief Default destructor
* \todo Remove logs
*/
virtual
~
L
ayer
()
{
virtual
~
l
ayer
()
{
// Double linked list, only remove layers in lowerLayers from the lowest one
std
::
for_each
(
lowerLayers
.
rbegin
(),
lowerLayers
.
rend
(),
[](
L
ayer
*
it
)
{
delete
it
;
}
);
std
::
for_each
(
lowerLayers
.
rbegin
(),
lowerLayers
.
rend
(),
[](
l
ayer
*
it
)
{
delete
it
;
}
);
lowerLayers
.
clear
();
upperLayers
.
clear
();
};
/*!
* \fn void delete
L
ayer();
* \fn void delete
_l
ayer();
* \brief Delete this layer
* \todo To be
done
* \todo To be
implemented
*/
void
delete
L
ayer
()
{
};
void
delete
_l
ayer
()
{
};
public:
//! \publicsection
/*!
* \inline
* \fn void add
U
pper
L
ayer(
L
ayer* p_layer);
* \fn void add
_u
pper
_l
ayer(
l
ayer* p_layer);
* \brief Add a new layer in the list of the upper layer
* \param[in] p_layer The layer protocol to be removed
* \todo Remove logs
*/
inline
void
add
U
pper
L
ayer
(
L
ayer
*
p_layer
)
{
inline
void
add
_u
pper
_l
ayer
(
l
ayer
*
p_layer
)
{
if
(
p_layer
!=
NULL
)
{
upperLayers
.
push_back
(
p_layer
);
p_layer
->
lowerLayers
.
push_back
(
this
);
...
...
@@ -84,34 +82,34 @@ public: //! \publicsection
};
/*!
* \fn void remove
U
pper
L
ayer(
L
ayer* p_layer);
* \fn void remove
_u
pper
_l
ayer(
l
ayer* p_layer);
* \brief Remove the specified upper layer protocol from the list of the upper layer
* \param[in] p_layer The layer protocol to be removed
* \todo To be implemented
*/
void
remove
U
pper
L
ayer
(
L
ayer
*
p_layer
)
{
};
void
remove
_u
pper
_l
ayer
(
l
ayer
*
p_layer
)
{
};
/*!
* \virtual
* \fn void send
D
ata(OCTETSTRING& data, Params& params);
* \fn void send
_d
ata(OCTETSTRING& data, Params& params);
* \brief Send bytes formated data to the lower layers
* \param[in] p_data The data to be sent
* \param[in] p_params Some parameters to overwrite default value of the lower layers parameters
* \todo Remove the logs
* \virtual
*/
virtual
void
send
D
ata
(
OCTETSTRING
&
p_data
,
Params
&
p_params
)
{
};
virtual
void
send
_d
ata
(
OCTETSTRING
&
p_data
,
Params
&
p_params
)
{
};
/*!
* \virtual
* \fn void receive
D
ata(OCTETSTRING& data, Params& params);
* \fn void receive
_d
ata(OCTETSTRING& data, Params& params);
* \brief Receive bytes formated data from the lower layers
* \param[in] p_data The bytes formated data received
* \param[in] p_params Some lower layers parameters values when data was received
* \todo Remove the logs
* \virtual
*/
virtual
void
receive
D
ata
(
OCTETSTRING
&
p_data
,
Params
&
p_params
)
{
}
virtual
void
receive
_d
ata
(
OCTETSTRING
&
p_data
,
Params
&
p_params
)
{
}
/*!
* \inline
...
...
@@ -122,25 +120,25 @@ public: //! \publicsection
inline
const
std
::
string
&
to_string
()
const
{
return
type
;
};
protected:
//! \protectedsection
inline
void
to
AllL
ayers
(
std
::
vector
<
L
ayer
*>&
layers
,
OCTETSTRING
&
data
,
Params
&
params
)
{
for
(
std
::
vector
<
L
ayer
*>::
const_iterator
it
=
layers
.
cbegin
();
it
!=
layers
.
cend
();
++
it
)
{
L
ayer
*
p
=
*
it
;
p
->
receive
D
ata
(
data
,
params
);
// FIXME BUG I
inline
void
to
_all_l
ayers
(
std
::
vector
<
l
ayer
*>&
layers
,
OCTETSTRING
&
data
,
Params
&
params
)
{
for
(
std
::
vector
<
l
ayer
*>::
const_iterator
it
=
layers
.
cbegin
();
it
!=
layers
.
cend
();
++
it
)
{
l
ayer
*
p
=
*
it
;
p
->
receive
_d
ata
(
data
,
params
);
// FIXME BUG I
}
// End of 'for' statement
};
inline
void
receive
ToAllL
ayers
(
OCTETSTRING
&
data
,
Params
&
params
)
{
for
(
std
::
vector
<
L
ayer
*>::
const_iterator
it
=
upperLayers
.
cbegin
();
it
!=
upperLayers
.
cend
();
++
it
)
{
L
ayer
*
p
=
*
it
;
p
->
receive
D
ata
(
data
,
params
);
inline
void
receive
_to_all_l
ayers
(
OCTETSTRING
&
data
,
Params
&
params
)
{
for
(
std
::
vector
<
l
ayer
*>::
const_iterator
it
=
upperLayers
.
cbegin
();
it
!=
upperLayers
.
cend
();
++
it
)
{
l
ayer
*
p
=
*
it
;
p
->
receive
_d
ata
(
data
,
params
);
}
// End of 'for' statement
};
inline
void
send
ToAllL
ayers
(
OCTETSTRING
&
data
,
Params
&
params
)
{
for
(
std
::
vector
<
L
ayer
*>::
const_iterator
it
=
lowerLayers
.
cbegin
();
it
!=
lowerLayers
.
cend
();
++
it
)
{
L
ayer
*
p
=
*
it
;
p
->
send
D
ata
(
data
,
params
);
inline
void
send
_to_all_l
ayers
(
OCTETSTRING
&
data
,
Params
&
params
)
{
for
(
std
::
vector
<
l
ayer
*>::
const_iterator
it
=
lowerLayers
.
cbegin
();
it
!=
lowerLayers
.
cend
();
++
it
)
{
l
ayer
*
p
=
*
it
;
p
->
send
_d
ata
(
data
,
params
);
}
// End of 'for' statement
};
};
// End of class
L
ayer
};
// End of class
l
ayer
ccsrc/Framework/layer_factory.hh
View file @
cf2b30d8
...
...
@@ -15,11 +15,11 @@
#include
<vector>
#include
<algorithm>
#include
"
L
ayer.hh"
#include
"
l
ayer.hh"
/*!
* \class layer_factory
* \brief This class provides a factory class to create
L
ayer class instances
* \brief This class provides a factory class to create
l
ayer class instances
* \abstract
*/
class
layer_factory
{
...
...
@@ -30,25 +30,25 @@ public: //! \publicsection
*/
layer_factory
()
{};
/*!
* \fn
L
ayer
* create_layer(const std::string & type, const std::string & param);
* \fn
l
ayer* create_layer(const std::string & type, const std::string & param);
* \brief Create the layers stack based on the provided layers stack description (cf. remark)
* \param[in] p_type The provided layers stack description
* \param[in] p_params Optional parameters
* \return 0 on success, -1 otherwise
* \remark The description below introduces layers stack in case of ITS project:
* CAM
L
ayer
* CAM
l
ayer
* next_header : btpA|btpB (overwrite BTP.type)
* header_type : tsb|gbc
* header_sub_type : sh (single hop)
* DENM
L
ayer
* DENM
l
ayer
* next_header : btpA|btpB (overwrite BTP.type)
* header_type : tsb|gbc
* BTP
L
ayer
* BTP
l
ayer
* type : btpA|btpB
* destination port: dst_port
* source port : src_port
* device_mode : Set to 1 if the layer shall encapsulate upper layer PDU
* GN
L
ayer
* GN
l
ayer
* its_aid : ITS AID as defined by ETSI TS 102 965 V1.2.1. Default: 141
* ll_address : GeoNetworking address of the Test System
* latitude : latitude of the Test System
...
...
@@ -109,6 +109,6 @@ NodeC.geoNetworkingPort.params := "GN(ll_address=70b3d5791b48,latitude=43551050,
* system.utPort.params := "UT_GN/UDP(dst_ip=192.168.1.1,dst_port=12346,src_ip=192.168.156.4,src_port=12345)/ETH(mac_src=026f8338c1e5,mac_dst=0A0027000011,eth_type=0800)/PCAP(mac_src=0800275c4959,nic=enp0s8,filter=and udp port 12346)"
* \pure
*/
virtual
L
ayer
*
create_layer
(
const
std
::
string
&
p_type
,
const
std
::
string
&
p_params
)
=
0
;
virtual
l
ayer
*
create_layer
(
const
std
::
string
&
p_type
,
const
std
::
string
&
p_params
)
=
0
;
};
// End of class layer_factory
ccsrc/Framework/layer_stack_builder.hh
View file @
cf2b30d8
...
...
@@ -21,7 +21,7 @@ private: //! \privatesection
typedef
std
::
map
<
std
::
string
,
layer_factory
*>
LayerFactoryMap
;
static
layer_stack_builder
*
_instance
;
//! Smart pointer to the unique instance of the logger framework
std
::
map
<
std
::
string
,
layer_factory
*>
_layer_factories
;
//! The list of the registered \see
TL
ayer factories
std
::
map
<
std
::
string
,
layer_factory
*>
_layer_factories
;
//! The list of the registered \see
t_l
ayer factories
/*!
* \brief Default constructor
...
...
@@ -57,11 +57,11 @@ private: //! \privatesection
public:
//! \publicsection
/*!
* \fn
L
ayer* create_layer_stack(const char* p_layer_stack_description);
* \fn
l
ayer* create_layer_stack(const char* p_layer_stack_description);
* \brief Add a new layer factory
* \param[in] p_layer_stack_description A textual description of the layer to create
* \return The created layer object on success, nullptr otherwise
*/
L
ayer
*
create_layer_stack
(
const
char
*
p_layer_stack_description
);
l
ayer
*
create_layer_stack
(
const
char
*
p_layer_stack_description
);
};
// End of class layer_stack_builder
ccsrc/Framework/src/layer_factory.cc
View file @
cf2b30d8
...
...
@@ -28,12 +28,12 @@ void layer_stack_builder::_register_layer_factory(const std::string & p_type, la
_layer_factories
[
p_type
]
=
p_layer_factory
;
}
L
ayer
*
layer_stack_builder
::
create_layer_stack
(
const
char
*
p_layer_stack_description
)
l
ayer
*
layer_stack_builder
::
create_layer_stack
(
const
char
*
p_layer_stack_description
)
{
loggers
::
get_instance
().
log
(
">>> layer_stack_builder::create_layer_stack: %s"
,
p_layer_stack_description
);
L
ayer
*
entry
=
NULL
;
// Initial layer (the first declared)
L
ayer
*
up
=
NULL
;
// Upper layer
l
ayer
*
entry
=
NULL
;
// Initial layer (the first declared)
l
ayer
*
up
=
NULL
;
// Upper layer
// Parse the layer description
try
{
std
::
regex
rgx
(
"(
\\
w+)(
\\
((.*?)
\\
))?(
\\
/|$)"
);
...
...
@@ -48,13 +48,13 @@ Layer* layer_stack_builder::create_layer_stack(const char* p_layer_stack_descrip
loggers
::
get_instance
().
error
(
"layer_stack_builder::create_layer_stack: %s: Unknown layer type"
,
m
[
1
].
str
().
c_str
());
}
loggers
::
get_instance
().
log
(
"layer_stack_builder::create_layer_stack: Create layer %s, %s"
,
m
[
1
].
str
().
c_str
(),
m
[
3
].
str
().
c_str
());
L
ayer
*
l
=
i
->
second
->
create_layer
(
m
[
1
].
str
(),
m
[
3
].
str
());
l
ayer
*
l
=
i
->
second
->
create_layer
(
m
[
1
].
str
(),
m
[
3
].
str
());
if
(
NULL
==
l
)
{
loggers
::
get_instance
().
error
(
"layer_stack_builder::create_layer_stack: %s: Layer creation error"
,
m
[
1
].
str
().
c_str
());
}
loggers
::
get_instance
().
log
(
"layer_stack_builder::create_layer_stack: Setup layers for %s"
,
l
->
to_string
().
c_str
());
l
->
add
U
pper
L
ayer
(
up
);
l
->
add
_u
pper
_l
ayer
(
up
);
if
(
entry
==
NULL
)
{
// Set the first declared layer
entry
=
l
;
}
...
...
@@ -63,7 +63,7 @@ Layer* layer_stack_builder::create_layer_stack(const char* p_layer_stack_descrip
}
catch
(
const
std
::
logic_error
&
e
){
if
(
up
){
// FIXME To be reviewed
up
->
delete
L
ayer
();
up
->
delete
_l
ayer
();
up
=
NULL
;
}
}
...
...
ccsrc/Framework/t_layer.hh
0 → 100644
View file @
cf2b30d8
/*!
* \file t_layer.hh
* \brief Header file for ITS abstract protocol layer definition.
* \author ETSI STF525
* \copyright ETSI Copyright Notification
* No part may be reproduced except as authorized by written permission.
* The copyright and the foregoing restriction extend to reproduction in all media.
* All rights reserved.
* \version 0.1
*/
#pragma once
#include
"layer.hh"
/*!
* \class t_layer
* \brief This class provides basic description of an ITS port protocol layer.
* A port protocol layer is the final layer which provides the access to the physical communication channel
* A port protocol layer derives from both a layer class and a template port class
*/
template
<
typename
TPort
>
class
t_layer
:
public
layer
{
typedef
std
::
vector
<
TPort
*>
TPortList
;
typedef
typename
std
::
vector
<
TPort
*>::
iterator
TPortListIterator
;
TPortList
upperPorts
;
//! The list of the upper ports
public:
//! \publicsection
/*!
* \brief Default constructor
* Create a new instance of the t_layer class
* \todo Remove logs
*/
explicit
t_layer
()
:
layer
(),
upperPorts
()
{
};
/*!
* \brief Specialized constructor
* Create a new instance of the layer class with its type description
* \param[in] p_type The port type name (e.g. TCP for the TCP sockect based layer)
* \remark This constructor is called by the layer factory
* \see layer_factory
*/
explicit
t_layer
(
const
std
::
string
&
p_type
)
:
layer
(
p_type
),
upperPorts
()
{
};
/*!
* \inline
* \fn void add_upper_port(TPort * p_port);
* \brief Add a new upper port layer
* \todo To be done
*/
inline
void
add_upper_port
(
TPort
*
p_port
)
{
upperPorts
.
push_back
(
p_port
);
};
/*!
* \fn void remove_upper_port(TPort*);
* \brief Remove the specified upper layer port protocol from the list of the upper layers
* \param[in] p_layer The layer protocol to be removed
*/
void
remove_upper_port
(
TPort
*
);
protected:
//! \protectedsection
/*!
* \inline
* \fn void to_all_upper_ports(const TMessage& m, const Params& param);
* \brief Forward the message to all available upper port layers
* \param[in] p_message The message to be forwarded
* \param[in] p_params Some lower layers parameters values when data was received
*/
template
<
typename
TMessage
>
inline
void
to_all_upper_ports
(
const
TMessage
&
p_message
,
const
Params
&
p_params
)
{
for
(
TPortListIterator
it
=
upperPorts
.
begin
();
it
<
upperPorts
.
end
();
++
it
){
(
*
it
)
->
receiveMsg
(
p_message
,
p_params
);
}
}
};
// End of class t_layer
ccsrc/Ports/LibIts_ports/BTP_ports/BtpPort.cc
View file @
cf2b30d8
...
...
@@ -59,7 +59,7 @@ namespace LibItsBtp__TestSystem {
if
(
static_cast
<
btp_layer
*>
(
_layer
)
==
NULL
)
{
loggers
::
get_instance
().
error
(
"BtpPort::user_map: Invalid stack configuration: %s"
,
it
->
second
.
c_str
());
}
static_cast
<
btp_layer
*>
(
_layer
)
->
add
U
pper
P
ort
(
this
);
static_cast
<
btp_layer
*>
(
_layer
)
->
add
_u
pper
_p
ort
(
this
);
}
else
{
loggers
::
get_instance
().
error
(
"BtpPort::user_map: No layers defined in configuration file"
);
}
...
...
ccsrc/Ports/LibIts_ports/BTP_ports/BtpPort.hh
View file @
cf2b30d8
...
...
@@ -12,7 +12,7 @@
#include
"LibItsBtp_TestSystem.hh"
#include
"
L
ayer.hh"
#include
"
l
ayer.hh"
#include
"Params.hh"
namespace
LibItsBtp__TestSystem
{
...
...
@@ -20,7 +20,7 @@ namespace LibItsBtp__TestSystem {
class
BtpPort
:
public
BtpPort_BASE
{
Params
_cfg_params
;
Params
_layer_params
;
L
ayer
*
_layer
;
l
ayer
*
_layer
;
std
::
string
_time_key
;
public:
BtpPort
(
const
char
*
par_port_name
=
NULL
);
...
...
ccsrc/Ports/LibIts_ports/CAM_ports/CamPort.cc
View file @
cf2b30d8
...
...
@@ -64,7 +64,7 @@ namespace LibItsCam__TestSystem {
if
(
static_cast
<
cam_layer
*>
(
_layer
)
==
NULL
)
{
loggers
::
get_instance
().
error
(
"CamPort::user_map: Invalid stack configuration: %s"
,
it
->
second
.
c_str
());
}
static_cast
<
cam_layer
*>
(
_layer
)
->
add
U
pper
P
ort
(
this
);
static_cast
<
cam_layer
*>
(
_layer
)
->
add
_u
pper
_p
ort
(
this
);
}
else
{
loggers
::
get_instance
().
error
(
"CamPort::user_map: No layers defined in configuration file"
);
}
...
...
ccsrc/Ports/LibIts_ports/CAM_ports/CamPort.hh
View file @
cf2b30d8
...
...
@@ -12,7 +12,7 @@
#include
"LibItsCam_TestSystem.hh"
#include
"
L
ayer.hh"
#include
"
l
ayer.hh"
#include
"Params.hh"
namespace
LibItsCam__TestSystem
{
...
...
@@ -20,7 +20,7 @@ namespace LibItsCam__TestSystem {
class
CamPort
:
public
CamPort_BASE
{
Params
_cfg_params
;
Params
_layer_params
;
L
ayer
*
_layer
;
l
ayer
*
_layer
;
std
::
string
_time_key
;
public:
CamPort
(
const
char
*
par_port_name
=
NULL
);
...
...
ccsrc/Ports/LibIts_ports/CAM_ports/UpperTesterPort_CAM.partC
View file @
cf2b30d8
...
...
@@ -56,7 +56,7 @@ namespace LibItsCam__TestSystem {
if (static_cast<UpperTesterCamLayer *>(_layer) == NULL) {
loggers::get_instance().error("UpperTesterPort_Cam::user_map: Invalid stack configuration: %s", it->second.c_str());
}
static_cast<UpperTesterCamLayer *>(_layer)->add
U
pper
P
ort(this);
static_cast<UpperTesterCamLayer *>(_layer)->add
_u
pper
_p
ort(this);
} else {
loggers::get_instance().error("UpperTesterPort_Cam::user_map: No layers defined in configuration file");
}
...
...
ccsrc/Ports/LibIts_ports/CAM_ports/UpperTesterPort_CAM.partH
View file @
cf2b30d8
#include "
L
ayer.hh"
#include "
l
ayer.hh"
#include "Params.hh"
//=============================================================================
...
...
@@ -8,7 +8,7 @@ namespace LibItsCam__TestSystem {
class UpperTesterPort : public UpperTesterPort_BASE {
Params _cfg_params;
Params _layer_params;
L
ayer
* _layer;
l
ayer* _layer;
std::string _time_key;
public:
...
...
ccsrc/Ports/LibIts_ports/DENM_ports/DenmPort.cc
View file @
cf2b30d8
...
...
@@ -64,7 +64,7 @@ namespace LibItsDenm__TestSystem {
if
(
static_cast
<
denm_layer
*>
(
_layer
)
==
NULL
)
{
loggers
::
get_instance
().
error
(
"DenmPort::user_map: Invalid stack configuration: %s"
,
it
->
second
.
c_str
());
}
static_cast
<
denm_layer
*>
(
_layer
)
->
add
U
pper
P
ort
(
this
);
static_cast
<
denm_layer
*>
(
_layer
)
->
add
_u
pper
_p
ort
(
this
);
}
else
{
loggers
::
get_instance
().
error
(
"DenmPort::user_map: No layers defined in configuration file"
);
}
...
...
ccsrc/Ports/LibIts_ports/DENM_ports/DenmPort.hh
View file @
cf2b30d8
...
...
@@ -12,7 +12,7 @@
#include
"LibItsDenm_TestSystem.hh"
#include
"
L
ayer.hh"
#include
"
l
ayer.hh"
#include
"Params.hh"
namespace
LibItsDenm__TestSystem
{
...
...
@@ -20,7 +20,7 @@ namespace LibItsDenm__TestSystem {
class
DenmPort
:
public
DenmPort_BASE
{
Params
_cfg_params
;
Params
_layer_params
;
L
ayer
*
_layer
;
l
ayer
*
_layer
;
std
::
string
_time_key
;
public:
DenmPort
(
const
char
*
par_port_name
=
NULL
);
...
...
ccsrc/Ports/LibIts_ports/DENM_ports/UpperTesterPort_DENM.partC
View file @
cf2b30d8
...
...
@@ -56,7 +56,7 @@ namespace LibItsDenm__TestSystem {
if (static_cast<UpperTesterDenmLayer *>(_layer) == NULL) {
loggers::get_instance().error("UpperTesterPort_Denm::user_map: Invalid stack configuration: %s", it->second.c_str());
}
static_cast<UpperTesterDenmLayer *>(_layer)->add
U
pper
P
ort(this);
static_cast<UpperTesterDenmLayer *>(_layer)->add
_u
pper
_p
ort(this);
} else {
loggers::get_instance().error("UpperTesterPort_Denm::user_map: No layers defined in configuration file");
}
...
...
ccsrc/Ports/LibIts_ports/DENM_ports/UpperTesterPort_DENM.partH
View file @
cf2b30d8
#include "
L
ayer.hh"
#include "
l
ayer.hh"
#include "Params.hh"
//=============================================================================
...
...
@@ -8,7 +8,7 @@ namespace LibItsDenm__TestSystem {
class UpperTesterPort : public UpperTesterPort_BASE {
Params _cfg_params;
Params _layer_params;
L
ayer
* _layer;
l
ayer* _layer;
std::string _time_key;
public:
...
...
ccsrc/Ports/LibIts_ports/GN_ports/GeoNetworkingPort.cc
View file @
cf2b30d8
...
...
@@ -67,7 +67,7 @@ namespace LibItsGeoNetworking__TestSystem {
if
(
static_cast
<
geonetworking_layer
*>
(
_layer
)
==
nullptr
)
{
loggers
::
get_instance
().
error
(
"GeoNetworkingPort::user_map: Invalid stack configuration: %s"
,
it
->
second
.
c_str
());
}
static_cast
<
geonetworking_layer
*>
(
_layer
)
->
add
U
pper
P
ort
(
this
);
static_cast
<
geonetworking_layer
*>
(
_layer
)
->
add
_u
pper
_p
ort
(
this
);
}
else
{
loggers
::
get_instance
().
error
(
"GeoNetworkingPort::user_map: No layers defined in configuration file"
);
...
...
ccsrc/Ports/LibIts_ports/GN_ports/GeoNetworkingPort.hh
View file @
cf2b30d8
...
...
@@ -12,7 +12,7 @@
#include
"LibItsGeoNetworking_TestSystem.hh"
#include
"
L
ayer.hh"
#include
"
l
ayer.hh"
#include
"Params.hh"
namespace
LibItsGeoNetworking__TestSystem
{
...
...
@@ -20,7 +20,7 @@ namespace LibItsGeoNetworking__TestSystem {
class
GeoNetworkingPort
:
public
GeoNetworkingPort_BASE
{
Params
_cfg_params
;
Params
_layer_params
;
L
ayer
*
_layer
;
l
ayer
*
_layer
;
std
::
string
_time_key
;
public:
...
...
ccsrc/Ports/LibIts_ports/GN_ports/UpperTesterPort_GN.partC
View file @
cf2b30d8
...
...
@@ -57,7 +57,7 @@ namespace LibItsGeoNetworking__TestSystem {
if (static_cast<UpperTesterGnLayer *>(_layer) == NULL) {
loggers::get_instance().error("UpperTesterPort_Gn::user_map: Invalid stack configuration: %s", it->second.c_str());
}
static_cast<UpperTesterGnLayer *>(_layer)->add
U
pper
P
ort(this);
static_cast<UpperTesterGnLayer *>(_layer)->add
_u
pper
_p
ort(this);
} else {
loggers::get_instance().error("UpperTesterPort_Gn::user_map: No layers defined in configuration file");
}
...
...
Prev
1
2
3
4
5
Next
Write
Preview