24 #include "cheetah/generators/pulse_profile/ProfileManager.h" 25 #include "cheetah/generators/pulse_profile/src/ProfileManagerInitialiser.h" 26 #include "cheetah/generators/pulse_profile/PulsarProfileConfig.h" 27 #include <panda/Error.h> 32 namespace generators {
35 ProfileManager::ProfileManager()
38 pulse_profile::ProfileManagerInitialiser(*
this);
41 ProfileManager::~ProfileManager()
47 _profiles.insert(std::make_pair(
id, profile));
54 auto it=_profiles.find(
id);
55 if(it != _profiles.end()) {
60 auto it=std::find(_pulsar_id.cbegin(), _pulsar_id.cend(), id);
61 if (it==_pulsar_id.cend())
62 throw panda::Error(
"unknown pulse profile requested");
65 throw panda::Error(
"Not yet implemented");
PulsarProfileId const & profile_id() const
returns the db URI of an actual pulsar profile
PulsarProfile profile(PulsarProfileId const &) const
return a profile of a known pulsar
A simple intensity profile representing a pulse shape.
void add(PulsarProfileId id, PulsarProfile profile)
return the list of known pulsar profiles std::list<PulsarProfileId> const& profile_list() const; ...
Some limits and constants for FLDO.
placeholder for specifying pulsar profile database URI
define pulsar profiles in a config