Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ControlSystemAdapter-DoocsAdapter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ChimeraTK Mirror
ControlSystemAdapter-DoocsAdapter
Commits
661959f0
Commit
661959f0
authored
4 years ago
by
Martin Christoph Hierholzer
Browse files
Options
Downloads
Patches
Plain Diff
removed unused header file
parent
cbb8e48c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/DoocsTransferElement.h
+0
-58
0 additions, 58 deletions
include/DoocsTransferElement.h
with
0 additions
and
58 deletions
include/DoocsTransferElement.h
deleted
100644 → 0
+
0
−
58
View file @
cbb8e48c
#ifndef __DOOCS_TRANSFER_ELEMENT_H__
#define __DOOCS_TRANSFER_ELEMENT_H__
#include
<ChimeraTK/TransferElement.h>
namespace
ChimeraTK
{
template
<
class
UserType
>
class
DoocsTransferElement
:
public
ChimeraTK
::
TransferElement
{
public:
/** The constructor expects an NDRegisterAccessor of UserType, which usually
* will be a decorator to the implementation type. The decorator cannot be
* generated in the constructor because the ProcessVariable aka
* TransferElement does not know about it's size, which is needed by the
* D_spectrum constructor. This is not a big drawback because the properties
* are greated by a factory function anyway.
*/
DoocsTransferElement
(
boost
::
shared_ptr
<
ChimeraTK
::
NDRegisterAccessor
<
UserType
>>
const
&
processArray
)
:
_processArray
(
processArray
)
{}
// implement the stuff needed by TransferElement
virtual
const
std
::
type_info
&
getValueType
()
const
override
{
return
typeid
(
UserType
);
}
virtual
TransferFuture
&
readAsync
()
override
{
return
_processArray
->
readAsync
();
}
virtual
void
doReadTransfer
()
override
{
_processArray
->
doReadTransfer
();
}
virtual
bool
doReadTransferNonBlocking
()
override
{
return
_processArray
->
doReadTransferNonBlocking
();
}
virtual
bool
doReadTransferLatest
()
override
{
return
_processArray
->
doReadTransferLatest
();
}
virtual
bool
isSameRegister
(
const
boost
::
shared_ptr
<
TransferElement
const
>&
other
)
const
override
{
return
_processArray
->
isSameRegister
(
other
);
}
virtual
bool
isReadOnly
()
const
override
{
// FIXME: We cannot access the doocs information here.
// because get_access is not const,
// only provides an implementation dependent int without constant
// definitions anyway. And d_access is private, not protected.
return
_processArray
->
isReadOnly
();
}
virtual
bool
isWriteable
()
const
override
{
return
_processArray
->
isWriteable
();
}
virtual
bool
isReadable
()
const
override
{
return
_processArray
->
isReadable
();
}
virtual
std
::
vector
<
boost
::
shared_ptr
<
TransferElement
>>
getHardwareAccessingElements
()
override
{
return
_processArray
->
getHardwareAccessingElements
();
}
virtual
void
replaceTransferElement
(
boost
::
shared_ptr
<
TransferElement
>
newElement
)
override
{
return
_processArray
->
replaceTransferElement
(
newElement
);
}
void
setDataValidity
(
DataValidity
validity
=
DataValidity
::
ok
)
override
{
_processArray
->
setDataValdity
(
validity
);
}
DataValidity
dataValidity
()
{
return
_processArray
->
dataValidity
();
}
protected
:
boost
::
shared_ptr
<
ChimeraTK
::
NDRegisterAccessor
<
UserType
>>
_processArray
;
};
}
// namespace ChimeraTK
#endif // __DOOCS_TRANSFER_ELEMENT_H__
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment