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>
36 MrProt & protocol, SeqLim & limits, SeqExpo & exports) = 0;
39 virtual NLSStatus
run(
40 MrProt & protocol, SeqLim & limits, SeqExpo & exports) = 0;
64 virtual MrProtocolData::SeqExpoRFInfo
rfInfo()
const = 0;
68 T
const &
get(std::string
const & key)
const
75 T &
get(std::string
const & key)
89 boost::typeindex::type_info
const &
type(std::string
const & key)
const;
104template<
typename T,
typename U>
105std::shared_ptr<T>
NodeCast(std::shared_ptr<U>
const & p)
107 return std::dynamic_pointer_cast<T>(p);
std::shared_ptr< Dictionary const > ConstPointer
Reference-counted constant pointer to Dictionary.
Definition Dictionary.h:34
std::shared_ptr< Dictionary > Pointer
Reference-counted pointer to Dictionary.
Definition Dictionary.h:34
Base class for all graph nodes.
Definition AbstractNode.h:28
virtual void reset()
Reset to a default state.
virtual NLSStatus run(MrProt &protocol, SeqLim &limits, SeqExpo &exports)=0
Run the node.
Dictionary::Pointer & registry()
Return the registry.
T & get(std::string const &key)
Return an object from the dictionary.
Definition AbstractNode.h:75
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.
Dictionary::ConstPointer registry() const
Return the registry.
Dictionary::Pointer _registry
Registry attached to this node.
Definition AbstractNode.h:93
T const & get(std::string const &key) const
Return an object from the dictionary.
Definition AbstractNode.h:68
virtual AbstractNode & setRegistry(Dictionary::Pointer registry)
Set the registry.
virtual NLSStatus prepare(MrProt &protocol, SeqLim &limits, SeqExpo &exports)=0
Prepare the node.
AbstractNode(Dictionary::Pointer registry={})
Create a node with the given registry.
virtual MrProtocolData::SeqExpoRFInfo rfInfo() const =0
Return the RF information for SAR computation, requires preparation.
AbstractNode & set(std::string const &key, T &&value)
Store an object in the dictionary, create it if needed.
Definition AbstractNode.h:82
#define DECLARE_POINTERS(name)
Declare pointer type aliases.
Definition helpers.h:83
Graph-related objects and functions.
Definition AbstractNode.h:24
std::shared_ptr< T > NodeCast(std::shared_ptr< U > const &p)
Up- or down-cast node pointers.
Definition AbstractNode.h:105
Top-level namespace of the msl library.
Definition acceleration.h:17