Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Enumerator
a
b
c
d
f
g
h
i
l
m
n
o
p
r
s
t
u
v
x
y
Classes
Class List
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Properties
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
i
m
o
q
r
s
v
w
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
b
c
d
e
f
h
k
l
o
p
r
s
t
u
x
z
Enumerator
b
c
d
f
h
i
k
l
n
o
p
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
plotjuggler_plugins
ParserROS
rosx_introspection
3rdparty
Fast-CDR
src
cpp
exceptions
LockedExternalAccessException.cpp
Go to the documentation of this file.
1
// Copyright 2023 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#include <
fastcdr/exceptions/LockedExternalAccessException.hpp
>
16
17
using namespace
eprosima::fastcdr::exception
;
18
19
const
char
*
const
LockedExternalAccessException::LOCKED_EXTERNAL_ACCESS_MESSAGE_DEFAULT
=
20
"Locked external: value cannot be set"
;
21
22
LockedExternalAccessException::LockedExternalAccessException
(
23
const
char
*
const
& message) noexcept
24
:
Exception
(message)
25
{
26
}
27
28
LockedExternalAccessException::LockedExternalAccessException
(
29
const
LockedExternalAccessException
& ex) noexcept
30
:
Exception
(ex)
31
{
32
}
33
34
LockedExternalAccessException::LockedExternalAccessException
(
35
LockedExternalAccessException
&& ex) noexcept
36
:
Exception
(
std::move
(ex))
37
{
38
}
39
40
LockedExternalAccessException
&
LockedExternalAccessException::operator =
(
41
const
LockedExternalAccessException
& ex) noexcept
42
{
43
if
(
this
!= &ex)
44
{
45
Exception::operator =
(
46
ex);
47
}
48
49
return
*
this
;
50
}
51
52
LockedExternalAccessException
&
LockedExternalAccessException::operator =
(
53
LockedExternalAccessException
&& ex) noexcept
54
{
55
if
(
this
!= &ex)
56
{
57
Exception::operator =
(
58
std::move
(ex));
59
}
60
61
return
*
this
;
62
}
63
64
LockedExternalAccessException::~LockedExternalAccessException
() noexcept
65
{
66
}
67
68
void
LockedExternalAccessException::raise
()
const
69
{
70
throw
*
this
;
71
}
eprosima::fastcdr::exception::LockedExternalAccessException::LOCKED_EXTERNAL_ACCESS_MESSAGE_DEFAULT
static const Cdr_DllAPI char *const LOCKED_EXTERNAL_ACCESS_MESSAGE_DEFAULT
Default message used in the library.
Definition:
LockedExternalAccessException.hpp:78
eprosima::fastcdr::exception::LockedExternalAccessException
This class is thrown as an exception when accessing to set the value of a locked external.
Definition:
LockedExternalAccessException.hpp:27
eprosima::fastcdr::exception::LockedExternalAccessException::LockedExternalAccessException
Cdr_DllAPI LockedExternalAccessException(const char *const &message) noexcept
Default constructor.
Definition:
LockedExternalAccessException.cpp:22
backward::details::move
const T & move(const T &v)
Definition:
backward.hpp:394
eprosima::fastcdr::exception::Exception::operator=
Cdr_DllAPI Exception & operator=(const Exception &ex) noexcept
Assigment operation.
Definition:
Exception.cpp:37
eprosima::fastcdr::exception::LockedExternalAccessException::~LockedExternalAccessException
virtual Cdr_DllAPI ~LockedExternalAccessException() noexcept
Default destructor.
Definition:
LockedExternalAccessException.cpp:64
eprosima::fastcdr::exception::Exception
This abstract class is used to create exceptions.
Definition:
Exception.h:29
eprosima::fastcdr::exception::LockedExternalAccessException::raise
Cdr_DllAPI void raise() const override
This function throws the object as exception.
Definition:
LockedExternalAccessException.cpp:68
LockedExternalAccessException.hpp
eprosima::fastcdr::exception::LockedExternalAccessException::operator=
Cdr_DllAPI LockedExternalAccessException & operator=(const LockedExternalAccessException &ex) noexcept
Assigment operation.
Definition:
LockedExternalAccessException.cpp:40
eprosima::fastcdr::exception
Definition:
BadOptionalAccessException.hpp:22
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Jan 26 2025 03:23:24