4#ifndef _c98760d2_f8bf_472c_9671_9d8322e26b0e
5#define _c98760d2_f8bf_472c_9671_9d8322e26b0e
10#include <MrMeasSrv/MeasUtils/NLSStatus.h>
12#include <MrProtSrv/Domain/CoreNative/SeqLim.h>
13#include <MrProtSrv/Domain/MrProtData/MrProt/MrProt.h>
14#include <MrProtSrv/Domain/MrProtData/MrProt/SeqIF/SeqExpo.h>
15#include <MrProtSrv/Domain/MrProtData/MrProt/SeqIF/SeqExpoRFBlockInfo.h>
35 MrProt & protocol, SeqLim & limits, SeqExpo & exports) = 0;
38 virtual NLSStatus
run(
39 MrProt & protocol, SeqLim & limits, SeqExpo & exports) = 0;
60 virtual MrProtocolData::SeqExpoRFInfo
rfInfo()
const = 0;
64 T
const &
get(std::string
const & key)
const
71 T &
get(std::string
const & key)
77 boost::typeindex::type_info
const &
type(std::string
const & key)
const;
89template<
typename T,
typename U>
90std::shared_ptr<T>
NodeCast(std::shared_ptr<U>
const & p)
92 return std::dynamic_pointer_cast<T>(p);
virtual NLSStatus run(MrProt &protocol, SeqLim &limits, SeqExpo &exports)=0
Run the node.
T & get(std::string const &key)
Return an object from the dictionary.
Definition AbstractNode.h:71
boost::typeindex::type_info const & type(std::string const &key) const
Return the type of an object in the dictionary.
virtual uint64_t duration() const =0
Return the duration in microseconds, requires preparation.
AbstractNode & operator=(AbstractNode const &)=default
Dictionary::ConstPointer registry() const
Return the registry.
Dictionary::Pointer _registry
Definition AbstractNode.h:80
T const & get(std::string const &key) const
Return an object from the dictionary.
Definition AbstractNode.h:64
AbstractNode(AbstractNode const &)=default
Dictionary::Pointer registry()
Return the registry.
DECLARE_POINTERS(AbstractNode)
virtual ~AbstractNode()=default
virtual AbstractNode & setRegistry(Dictionary::Pointer registry)
Set the registry.
AbstractNode & operator=(AbstractNode &&)=default
AbstractNode(AbstractNode &&)=default
virtual NLSStatus prepare(MrProt &protocol, SeqLim &limits, SeqExpo &exports)=0
Prepare the node.
AbstractNode(Dictionary::Pointer registry={})
virtual MrProtocolData::SeqExpoRFInfo rfInfo() const =0
Return the RF information for SAR computation, requires preparation.
Definition AbstractNode.h:23
std::shared_ptr< T > NodeCast(std::shared_ptr< U > const &p)
Definition AbstractNode.h:90
Definition acceleration.h:17