CLAM-Development
1.4.0
|
#include <Network.hxx>
Classes | |
struct | Connection |
struct | Geometry |
struct | ProcessingAndGeometry |
Public Types | |
typedef std::list< std::string > | NamesList |
typedef std::map< std::string, Processing * > | ProcessingsMap |
typedef std::list< InPortBase * > | InPortsList |
typedef std::vector< Processing * > | Processings |
typedef std::vector < ControlSource * > | ControlSources |
typedef std::vector < ControlSink * > | ControlSinks |
typedef std::vector < InformationText * > | InformationTexts |
typedef std::map< std::string, Geometry > | ProcessingsGeometriesMap |
typedef std::list< Connection > | ConnectionsList |
typedef std::set< std::string > | NamesSet |
typedef std::pair< bool, std::string > | ConnectionState |
Has true if ports have the old name AudioIn or AudioOut and which connections are broken. |
Public Member Functions | |
Network () | |
virtual | ~Network () |
const std::string & | GetName () const |
void | SetName (const std::string &name) |
const Text & | GetDescription () const |
void | SetDescription (const Text &description) |
virtual const char * | GetClassName () const |
Return the class name. | |
bool | IsStopped () const |
bool | IsPlaying () const |
bool | IsPaused () const |
bool | IsRealTime () const |
void | Start () |
void | Stop () |
void | Pause () |
void | Do () |
void | AddFlowControl (FlowControl *) |
Gets the ownership of the FlowControl passed. | |
void | Clear () |
void | SetPlayer (NetworkPlayer *player) |
Set the object in charge of managing the processing thread. | |
unsigned | BackendBufferSize () |
unsigned | BackendSampleRate () |
virtual void | StoreOn (Storage &storage) const |
serialization methods | |
virtual void | LoadFrom (Storage &storage) |
Loads component's subitems from the given Storage. | |
bool | UpdateSelections (const NamesList &processingsNamesList) |
methods related to copy&paste processings from canvas | |
void | setPasteMode () |
bool | SetProcessingsGeometries (const ProcessingsGeometriesMap &processingsGeometries) |
canvas related geometries | |
const ProcessingsGeometriesMap | GetAndClearGeometries () |
const Geometry | findProcessingGeometry (Processing *) const |
audio sources and sinks and control sources and sinks order | |
const Processings | getOrderedProcessings (const std::string &type, bool horizontalOrder) const |
const Processings | getOrderedProcessingsByAttribute (const std::string &attribute, bool horizontalOrder=false) const |
const ControlSinks | getOrderedControlSinks () const |
const ControlSources | getOrderedControlSources () const |
bool | ConnectPorts (const std::string &, const std::string &) |
methods related to connect/disconnect interface | |
bool | ConnectControls (const std::string &, const std::string &) |
bool | DisconnectPorts (const std::string &, const std::string &) |
bool | DisconnectControls (const std::string &, const std::string &) |
Processing & | GetProcessing (const std::string &name) const |
methods used to create processings and get them | |
void | AddProcessing (const std::string &name, Processing *processing, const ProcessingConfig *config=0) |
add method using a pointer to a new processing | |
Processing & | AddProcessing (const std::string &name, const std::string &key) |
add method using a key to get the new processing from factory | |
std::string | AddProcessing (const std::string &key) |
std::string | GetUnusedName (const std::string &prefix, const bool cutOnLastSeparator=false, const std::string separator="_") const |
void | RemoveProcessing (const std::string &) |
bool | HasProcessing (const std::string &name) const |
bool | ConfigureProcessing (const std::string &, const ProcessingConfig &) |
It configures the processing with the given processing id and config object and notifies this to the network. | |
void | ReconfigureAllProcessings () |
Calls Configure() for each processing with its current configuration. | |
bool | RenameProcessing (const std::string &oldName, const std::string &newName) |
const std::string & | GetNetworkId (const Processing *proc) const |
ProcessingsMap::iterator | BeginProcessings () |
ProcessingsMap::iterator | EndProcessings () |
ProcessingsMap::const_iterator | BeginProcessings () const |
ProcessingsMap::const_iterator | EndProcessings () const |
void | addInformationText (InformationText *informationText) |
void | removeInformationText (InformationText *informationText) |
InformationTexts::iterator | BeginInformationTexts () |
InformationTexts::iterator | EndInformationTexts () |
InformationTexts::const_iterator | BeginInformationTexts () const |
InformationTexts::const_iterator | EndInformationTexts () const |
InPortBase & | GetInPortByCompleteName (const std::string &) const |
OutPortBase & | GetOutPortByCompleteName (const std::string &) const |
InControlBase & | GetInControlByCompleteName (const std::string &) const |
OutControlBase & | GetOutControlByCompleteName (const std::string &) const |
NamesList | GetInPortsConnectedTo (const std::string &) const |
NamesList | GetInControlsConnectedTo (const std::string &) const |
InPortsList | GetInPortsConnectedTo (OutPortBase &) const |
std::string | GetConnectorIdentifier (const std::string &) const |
std::string | GetProcessingIdentifier (const std::string &) const |
bool | IsReady () const |
Tells whether the network is ready to rock. | |
bool | IsEmpty () const |
Returns true when it has no processings. | |
bool | HasMisconfiguredProcessings () const |
Returns true when some processing is misconfigured. | |
bool | HasUnconnectedInPorts () const |
Returns true when a processing has an inport that is not connected. | |
bool | HasSyncSource () const |
Tell whether the network contains any processing which limits the cpu usage such as file or device interfaces. | |
bool | SupportsVariableAudioSize () const |
This method reports whether the network supports dynamic buffer-size host. | |
std::string | GetConfigurationErrors () const |
Returns an string containing configuration errors. | |
std::string | GetUnconnectedInPorts () const |
Returns an string the full name of the unconnected inports. | |
ConnectionState | GetConnectionReport () const |
void | ResetConnectionReport () |
![]() | |
virtual | ~Component () |
virtual Component * | ShallowCopy () const |
virtual Component * | DeepCopy () const |
Static Public Member Functions | |
static const bool | compareGeometriesUpperYThan (ProcessingAndGeometry &, ProcessingAndGeometry &) |
static const bool | compareGeometriesUpperXThan (ProcessingAndGeometry &, ProcessingAndGeometry &) |
Static Protected Member Functions | |
static std::size_t | PositionOfLastIdentifier (const std::string &str) |
static std::size_t | PositionOfProcessingIdentifier (const std::string &str) |
static char | NamesIdentifiersSeparator () |
Definition at line 54 of file Network.hxx.
typedef std::list<Connection> CLAM::Network::ConnectionsList |
Definition at line 73 of file Network.hxx.
typedef std::pair<bool, std::string> CLAM::Network::ConnectionState |
Has true if ports have the old name AudioIn or AudioOut and which connections are broken.
Definition at line 226 of file Network.hxx.
typedef std::vector<ControlSink*> CLAM::Network::ControlSinks |
Definition at line 65 of file Network.hxx.
typedef std::vector<ControlSource*> CLAM::Network::ControlSources |
Definition at line 64 of file Network.hxx.
typedef std::vector<InformationText*> CLAM::Network::InformationTexts |
Definition at line 67 of file Network.hxx.
typedef std::list<InPortBase *> CLAM::Network::InPortsList |
Definition at line 61 of file Network.hxx.
typedef std::list<std::string> CLAM::Network::NamesList |
Definition at line 59 of file Network.hxx.
typedef std::set<std::string> CLAM::Network::NamesSet |
Definition at line 75 of file Network.hxx.
typedef std::vector<Processing*> CLAM::Network::Processings |
Definition at line 63 of file Network.hxx.
typedef std::map<std::string, Geometry> CLAM::Network::ProcessingsGeometriesMap |
Definition at line 71 of file Network.hxx.
typedef std::map<std::string, Processing* > CLAM::Network::ProcessingsMap |
Definition at line 60 of file Network.hxx.
CLAM::Network::Network | ( | ) |
Definition at line 46 of file Network.cxx.
|
virtual |
Definition at line 53 of file Network.cxx.
References Clear().
void CLAM::Network::AddFlowControl | ( | FlowControl * | flowControl | ) |
Gets the ownership of the FlowControl passed.
So it will be deleted by the destructor
Definition at line 467 of file Network.cxx.
References CLAM::FlowControl::AttachToNetwork().
void CLAM::Network::addInformationText | ( | InformationText * | informationText | ) |
Definition at line 807 of file Network.cxx.
void CLAM::Network::AddProcessing | ( | const std::string & | name, |
Processing * | processing, | ||
const ProcessingConfig * | config = 0 |
||
) |
add method using a pointer to a new processing
Definition at line 501 of file Network.cxx.
References CLAM_ASSERT, CLAM::Processing::Configure(), CLAM::Processing::GetConfig(), IsStopped(), CLAM::FlowControl::ProcessingAddedToNetwork(), CLAM::Processing::SetNetworkBackLink(), and Stop().
Referenced by AddProcessing(), and LoadFrom().
Processing & CLAM::Network::AddProcessing | ( | const std::string & | name, |
const std::string & | key | ||
) |
add method using a key to get the new processing from factory
Definition at line 512 of file Network.cxx.
References AddProcessing(), CLAM::Factory< AbstractProductType >::CreateSafe(), and CLAM::ProcessingFactory::GetInstance().
std::string CLAM::Network::AddProcessing | ( | const std::string & | key | ) |
Definition at line 520 of file Network.cxx.
References AddProcessing(), and GetUnusedName().
unsigned CLAM::Network::BackendBufferSize | ( | ) |
Definition at line 480 of file Network.cxx.
References CLAM::NetworkPlayer::BackendBufferSize().
Referenced by CLAM::Processing::BackendBufferSize().
unsigned CLAM::Network::BackendSampleRate | ( | ) |
Definition at line 485 of file Network.cxx.
References CLAM::NetworkPlayer::BackendSampleRate().
Referenced by CLAM::Processing::BackendSampleRate().
Network::InformationTexts::iterator CLAM::Network::BeginInformationTexts | ( | ) |
Definition at line 822 of file Network.cxx.
Referenced by removeInformationText(), and StoreOn().
Network::InformationTexts::const_iterator CLAM::Network::BeginInformationTexts | ( | ) | const |
Definition at line 832 of file Network.cxx.
Network::ProcessingsMap::iterator CLAM::Network::BeginProcessings | ( | ) |
Definition at line 786 of file Network.cxx.
Referenced by CLAM::BasicFlowControl::Do(), GetConfigurationErrors(), GetNetworkId(), GetUnconnectedInPorts(), HasMisconfiguredProcessings(), HasSyncSource(), HasUnconnectedInPorts(), Start(), Stop(), StoreOn(), and SupportsVariableAudioSize().
Network::ProcessingsMap::const_iterator CLAM::Network::BeginProcessings | ( | ) | const |
Definition at line 795 of file Network.cxx.
void CLAM::Network::Clear | ( | ) |
Definition at line 770 of file Network.cxx.
References IsStopped(), removeInformationText(), RemoveProcessing(), and Stop().
Referenced by LoadFrom(), and ~Network().
|
static |
Definition at line 433 of file Network.cxx.
References CLAM::Network::ProcessingAndGeometry::geometry, and CLAM::Network::Geometry::x.
Referenced by getOrderedControlSinks(), getOrderedControlSources(), getOrderedProcessings(), and getOrderedProcessingsByAttribute().
|
static |
Definition at line 428 of file Network.cxx.
References CLAM::Network::ProcessingAndGeometry::geometry, and CLAM::Network::Geometry::y.
Referenced by getOrderedProcessings(), and getOrderedProcessingsByAttribute().
bool CLAM::Network::ConfigureProcessing | ( | const std::string & | name, |
const ProcessingConfig & | newConfig | ||
) |
It configures the processing with the given processing id and config object and notifies this to the network.
So use this method instead of getting the processing with GetProcessing and calling Configure on it.
Definition at line 575 of file Network.cxx.
References CLAM_ASSERT, IsStopped(), CLAM::FlowControl::ProcessingConfigured(), and Stop().
bool CLAM::Network::ConnectControls | ( | const std::string & | producer, |
const std::string & | consumer | ||
) |
Definition at line 618 of file Network.cxx.
References CLAM::OutControlBase::AddLink(), GetInControlByCompleteName(), GetOutControlByCompleteName(), CLAM::OutControlBase::IsConnectedTo(), CLAM::OutControlBase::IsLinkable(), IsStopped(), and Stop().
Referenced by LoadFrom().
bool CLAM::Network::ConnectPorts | ( | const std::string & | producer, |
const std::string & | consumer | ||
) |
methods related to connect/disconnect interface
Definition at line 596 of file Network.cxx.
References CLAM::OutPortBase::ConnectToIn(), GetInPortByCompleteName(), GetOutPortByCompleteName(), CLAM::InPortBase::GetVisuallyConnectedOutPort(), CLAM::OutPortBase::IsConnectableTo(), IsStopped(), CLAM::OutPortBase::IsVisuallyConnectedTo(), CLAM::FlowControl::NetworkTopologyChanged(), and Stop().
Referenced by LoadFrom().
bool CLAM::Network::DisconnectControls | ( | const std::string & | producer, |
const std::string & | consumer | ||
) |
Definition at line 652 of file Network.cxx.
References GetInControlByCompleteName(), GetOutControlByCompleteName(), CLAM::OutControlBase::IsConnectedTo(), IsStopped(), CLAM::OutControlBase::RemoveLink(), and Stop().
bool CLAM::Network::DisconnectPorts | ( | const std::string & | producer, |
const std::string & | consumer | ||
) |
Definition at line 636 of file Network.cxx.
References CLAM::OutPortBase::DisconnectFromIn(), GetInPortByCompleteName(), GetOutPortByCompleteName(), IsStopped(), CLAM::OutPortBase::IsVisuallyConnectedTo(), CLAM::FlowControl::NetworkTopologyChanged(), and Stop().
void CLAM::Network::Do | ( | void | ) |
Definition at line 765 of file Network.cxx.
References CLAM::FlowControl::Do().
Referenced by CLAM::JACKNetworkPlayer::Do(), CLAM::MonoOfflineNetworkPlayer::ProcessInputFile(), CLAM::OfflineNetworkPlayer::ProcessInputFile(), CLAM::MonoOfflineNetworkPlayer::Start(), and CLAM::OfflineNetworkPlayer::Start().
Network::InformationTexts::iterator CLAM::Network::EndInformationTexts | ( | ) |
Definition at line 827 of file Network.cxx.
Referenced by removeInformationText(), and StoreOn().
Network::InformationTexts::const_iterator CLAM::Network::EndInformationTexts | ( | ) | const |
Definition at line 837 of file Network.cxx.
Network::ProcessingsMap::iterator CLAM::Network::EndProcessings | ( | ) |
Definition at line 791 of file Network.cxx.
Referenced by CLAM::BasicFlowControl::Do(), GetConfigurationErrors(), GetNetworkId(), GetUnconnectedInPorts(), HasMisconfiguredProcessings(), HasSyncSource(), HasUnconnectedInPorts(), Start(), Stop(), StoreOn(), and SupportsVariableAudioSize().
Network::ProcessingsMap::const_iterator CLAM::Network::EndProcessings | ( | ) | const |
Definition at line 800 of file Network.cxx.
const Network::Geometry CLAM::Network::findProcessingGeometry | ( | Processing * | processing | ) | const |
audio sources and sinks and control sources and sinks order
Definition at line 292 of file Network.cxx.
References GetProcessing().
Referenced by getOrderedControlSinks(), getOrderedControlSources(), getOrderedProcessings(), and getOrderedProcessingsByAttribute().
const Network::ProcessingsGeometriesMap CLAM::Network::GetAndClearGeometries | ( | ) |
Definition at line 421 of file Network.cxx.
|
inlinevirtual |
std::string CLAM::Network::GetConfigurationErrors | ( | ) | const |
Returns an string containing configuration errors.
Don't rely on the format because is subject to change.
Definition at line 985 of file Network.cxx.
References BeginProcessings(), and EndProcessings().
Network::ConnectionState CLAM::Network::GetConnectionReport | ( | ) | const |
Definition at line 1018 of file Network.cxx.
std::string CLAM::Network::GetConnectorIdentifier | ( | const std::string & | str | ) | const |
Definition at line 666 of file Network.cxx.
References PositionOfLastIdentifier().
Referenced by GetInControlByCompleteName(), GetInPortByCompleteName(), GetOutControlByCompleteName(), GetOutPortByCompleteName(), and LoadFrom().
|
inline |
Definition at line 85 of file Network.hxx.
InControlBase & CLAM::Network::GetInControlByCompleteName | ( | const std::string & | name | ) | const |
Definition at line 689 of file Network.cxx.
References GetConnectorIdentifier(), CLAM::Processing::GetInControl(), GetProcessing(), and GetProcessingIdentifier().
Referenced by ConnectControls(), and DisconnectControls().
Network::NamesList CLAM::Network::GetInControlsConnectedTo | ( | const std::string & | producer | ) | const |
Definition at line 862 of file Network.cxx.
References CLAM::OutControlBase::BeginInControlsConnected(), CLAM::OutControlBase::EndInControlsConnected(), GetNetworkId(), and GetOutControlByCompleteName().
Referenced by StoreOn().
InPortBase & CLAM::Network::GetInPortByCompleteName | ( | const std::string & | name | ) | const |
Definition at line 677 of file Network.cxx.
References GetConnectorIdentifier(), CLAM::Processing::GetInPort(), GetProcessing(), and GetProcessingIdentifier().
Referenced by ConnectPorts(), and DisconnectPorts().
Network::NamesList CLAM::Network::GetInPortsConnectedTo | ( | const std::string & | producer | ) | const |
Definition at line 843 of file Network.cxx.
References CLAM::OutPortBase::BeginVisuallyConnectedInPorts(), CLAM::OutPortBase::EndVisuallyConnectedInPorts(), GetNetworkId(), GetOutPortByCompleteName(), and CLAM::OutPortBase::HasConnections().
Referenced by StoreOn().
Network::InPortsList CLAM::Network::GetInPortsConnectedTo | ( | OutPortBase & | producer | ) | const |
Definition at line 880 of file Network.cxx.
References CLAM::OutPortBase::BeginVisuallyConnectedInPorts(), and CLAM::OutPortBase::EndVisuallyConnectedInPorts().
|
inline |
Definition at line 82 of file Network.hxx.
const std::string & CLAM::Network::GetNetworkId | ( | const Processing * | proc | ) | const |
Definition at line 889 of file Network.cxx.
References BeginProcessings(), CLAM_ASSERT, and EndProcessings().
Referenced by CLAM::NetworkPlayer::CacheSourcesAndSinks(), GetInControlsConnectedTo(), and GetInPortsConnectedTo().
const Network::ControlSinks CLAM::Network::getOrderedControlSinks | ( | ) | const |
Definition at line 356 of file Network.cxx.
References CLAM_ASSERT, compareGeometriesUpperXThan(), findProcessingGeometry(), CLAM::Network::ProcessingAndGeometry::geometry, CLAM::Processing::GetClassName(), and CLAM::Network::ProcessingAndGeometry::processing.
const Network::ControlSources CLAM::Network::getOrderedControlSources | ( | ) | const |
Definition at line 384 of file Network.cxx.
References CLAM_ASSERT, compareGeometriesUpperXThan(), findProcessingGeometry(), CLAM::Network::ProcessingAndGeometry::geometry, CLAM::Processing::GetClassName(), and CLAM::Network::ProcessingAndGeometry::processing.
const Network::Processings CLAM::Network::getOrderedProcessings | ( | const std::string & | type, |
bool | horizontalOrder | ||
) | const |
Definition at line 304 of file Network.cxx.
References compareGeometriesUpperXThan(), compareGeometriesUpperYThan(), findProcessingGeometry(), CLAM::Network::ProcessingAndGeometry::geometry, CLAM::Processing::GetClassName(), and CLAM::Network::ProcessingAndGeometry::processing.
const Network::Processings CLAM::Network::getOrderedProcessingsByAttribute | ( | const std::string & | attribute, |
bool | horizontalOrder = false |
||
) | const |
Definition at line 330 of file Network.cxx.
References compareGeometriesUpperXThan(), compareGeometriesUpperYThan(), findProcessingGeometry(), CLAM::Network::ProcessingAndGeometry::geometry, CLAM::Processing::GetClassName(), CLAM::ProcessingFactory::GetInstance(), and CLAM::Network::ProcessingAndGeometry::processing.
OutControlBase & CLAM::Network::GetOutControlByCompleteName | ( | const std::string & | name | ) | const |
Definition at line 695 of file Network.cxx.
References GetConnectorIdentifier(), CLAM::Processing::GetOutControl(), GetProcessing(), and GetProcessingIdentifier().
Referenced by ConnectControls(), DisconnectControls(), and GetInControlsConnectedTo().
OutPortBase & CLAM::Network::GetOutPortByCompleteName | ( | const std::string & | name | ) | const |
Definition at line 683 of file Network.cxx.
References GetConnectorIdentifier(), CLAM::Processing::GetOutPort(), GetProcessing(), and GetProcessingIdentifier().
Referenced by ConnectPorts(), DisconnectPorts(), and GetInPortsConnectedTo().
Processing & CLAM::Network::GetProcessing | ( | const std::string & | name | ) | const |
methods used to create processings and get them
Definition at line 492 of file Network.cxx.
References CLAM_ASSERT, and HasProcessing().
Referenced by findProcessingGeometry(), GetInControlByCompleteName(), GetInPortByCompleteName(), GetOutControlByCompleteName(), and GetOutPortByCompleteName().
std::string CLAM::Network::GetProcessingIdentifier | ( | const std::string & | str | ) | const |
Definition at line 671 of file Network.cxx.
References PositionOfLastIdentifier(), and PositionOfProcessingIdentifier().
Referenced by GetInControlByCompleteName(), GetInPortByCompleteName(), GetOutControlByCompleteName(), GetOutPortByCompleteName(), LoadFrom(), and StoreOn().
std::string CLAM::Network::GetUnconnectedInPorts | ( | ) | const |
Returns an string the full name of the unconnected inports.
Don't rely on the format because is subject to change.
Definition at line 949 of file Network.cxx.
References BeginProcessings(), EndProcessings(), CLAM::Processing::GetInPort(), CLAM::InPortBase::GetName(), CLAM::Processing::GetNInPorts(), and CLAM::InPortBase::GetVisuallyConnectedOutPort().
std::string CLAM::Network::GetUnusedName | ( | const std::string & | prefix, |
const bool | cutOnLastSeparator = false , |
||
const std::string | separator = "_" |
||
) | const |
Definition at line 527 of file Network.cxx.
References CLAM_ASSERT, and HasProcessing().
Referenced by AddProcessing(), and LoadFrom().
bool CLAM::Network::HasMisconfiguredProcessings | ( | ) | const |
Returns true when some processing is misconfigured.
Definition at line 925 of file Network.cxx.
References BeginProcessings(), and EndProcessings().
Referenced by IsReady().
bool CLAM::Network::HasProcessing | ( | const std::string & | name | ) | const |
Definition at line 569 of file Network.cxx.
Referenced by GetProcessing(), and GetUnusedName().
bool CLAM::Network::HasSyncSource | ( | ) | const |
Tell whether the network contains any processing which limits the cpu usage such as file or device interfaces.
This is needed when executing a network in a real time process.
Definition at line 966 of file Network.cxx.
References BeginProcessings(), and EndProcessings().
bool CLAM::Network::HasUnconnectedInPorts | ( | ) | const |
Returns true when a processing has an inport that is not connected.
Definition at line 934 of file Network.cxx.
References BeginProcessings(), EndProcessings(), CLAM::Processing::GetInPort(), CLAM::Processing::GetNInPorts(), and CLAM::InPortBase::GetVisuallyConnectedOutPort().
Referenced by IsReady().
bool CLAM::Network::IsEmpty | ( | ) | const |
Returns true when it has no processings.
Definition at line 920 of file Network.cxx.
Referenced by IsReady().
bool CLAM::Network::IsPaused | ( | ) | const |
Definition at line 715 of file Network.cxx.
References CLAM::NetworkPlayer::IsPaused().
bool CLAM::Network::IsPlaying | ( | ) | const |
Definition at line 708 of file Network.cxx.
References CLAM::NetworkPlayer::IsPlaying().
bool CLAM::Network::IsReady | ( | ) | const |
Tells whether the network is ready to rock.
A network is ready when:
Definition at line 912 of file Network.cxx.
References HasMisconfiguredProcessings(), HasUnconnectedInPorts(), and IsEmpty().
bool CLAM::Network::IsRealTime | ( | ) | const |
Definition at line 722 of file Network.cxx.
References CLAM::NetworkPlayer::IsRealTime().
bool CLAM::Network::IsStopped | ( | ) | const |
Definition at line 701 of file Network.cxx.
References CLAM::NetworkPlayer::IsStopped().
Referenced by AddProcessing(), Clear(), ConfigureProcessing(), ConnectControls(), ConnectPorts(), DisconnectControls(), DisconnectPorts(), and RemoveProcessing().
|
virtual |
Loads component's subitems from the given Storage.
storage | The given storage where the subitem will be loaded from |
Implements CLAM::Component.
Definition at line 172 of file Network.cxx.
References AddProcessing(), Clear(), ConnectControls(), ConnectPorts(), CLAM::ProcessingDefinitionAdapter::GetConfiguration(), GetConnectorIdentifier(), CLAM::InformationTextAdapter::GetCoordX(), CLAM::InformationTextAdapter::GetCoordY(), CLAM::ConnectionDefinitionAdapter::GetInName(), CLAM::ProcessingDefinitionAdapter::GetName(), CLAM::ConnectionDefinitionAdapter::GetOutName(), CLAM::ProcessingDefinitionAdapter::GetPosition(), CLAM::ProcessingDefinitionAdapter::GetProcessing(), GetProcessingIdentifier(), CLAM::ProcessingDefinitionAdapter::GetSize(), CLAM::InformationTextAdapter::GetText(), GetUnusedName(), CLAM::Network::Geometry::height, CLAM::Storage::Load(), CLAM::InformationText::text, CLAM::Network::Geometry::width, CLAM::InformationText::x, CLAM::Network::Geometry::x, CLAM::InformationText::y, and CLAM::Network::Geometry::y.
|
inlinestaticprotected |
Definition at line 263 of file Network.hxx.
Referenced by PositionOfLastIdentifier(), and PositionOfProcessingIdentifier().
void CLAM::Network::Pause | ( | ) |
Definition at line 760 of file Network.cxx.
References CLAM::NetworkPlayer::Pause().
|
inlinestaticprotected |
Definition at line 251 of file Network.hxx.
References CLAM_ASSERT, and NamesIdentifiersSeparator().
Referenced by GetConnectorIdentifier(), GetProcessingIdentifier(), and PositionOfProcessingIdentifier().
|
inlinestaticprotected |
Definition at line 257 of file Network.hxx.
References NamesIdentifiersSeparator(), and PositionOfLastIdentifier().
Referenced by GetProcessingIdentifier().
void CLAM::Network::ReconfigureAllProcessings | ( | ) |
Calls Configure() for each processing with its current configuration.
Definition at line 586 of file Network.cxx.
References CLAM::Processing::Configure(), and CLAM::Processing::GetConfig().
void CLAM::Network::removeInformationText | ( | InformationText * | informationText | ) |
Definition at line 812 of file Network.cxx.
References BeginInformationTexts(), and EndInformationTexts().
Referenced by Clear().
void CLAM::Network::RemoveProcessing | ( | const std::string & | name | ) |
Definition at line 549 of file Network.cxx.
References CLAM_ASSERT, IsStopped(), CLAM::FlowControl::ProcessingRemovedFromNetwork(), and Stop().
Referenced by Clear().
bool CLAM::Network::RenameProcessing | ( | const std::string & | oldName, |
const std::string & | newName | ||
) |
Definition at line 900 of file Network.cxx.
void CLAM::Network::ResetConnectionReport | ( | ) |
Definition at line 1027 of file Network.cxx.
|
inline |
Definition at line 86 of file Network.hxx.
|
inline |
Definition at line 83 of file Network.hxx.
|
inline |
Definition at line 116 of file Network.hxx.
void CLAM::Network::SetPlayer | ( | NetworkPlayer * | player | ) |
Set the object in charge of managing the processing thread.
Receives property of the player.
Definition at line 473 of file Network.cxx.
References CLAM::NetworkPlayer::Init(), and CLAM::NetworkPlayer::SetNetworkBackLink().
bool CLAM::Network::SetProcessingsGeometries | ( | const ProcessingsGeometriesMap & | processingsGeometries | ) |
canvas related geometries
Definition at line 412 of file Network.cxx.
void CLAM::Network::Start | ( | ) |
Definition at line 729 of file Network.cxx.
References BeginProcessings(), EndProcessings(), and CLAM::NetworkPlayer::Start().
Referenced by CLAM::JACKNetworkPlayer::Start().
void CLAM::Network::Stop | ( | ) |
Definition at line 752 of file Network.cxx.
References BeginProcessings(), EndProcessings(), and CLAM::NetworkPlayer::Stop().
Referenced by AddProcessing(), Clear(), ConfigureProcessing(), ConnectControls(), ConnectPorts(), DisconnectControls(), DisconnectPorts(), CLAM::JACKNetworkPlayer::OnShutdown(), RemoveProcessing(), and CLAM::JACKNetworkPlayer::Stop().
|
virtual |
serialization methods
Implements CLAM::Component.
Definition at line 61 of file Network.cxx.
References BeginInformationTexts(), BeginProcessings(), EndInformationTexts(), EndProcessings(), GetInControlsConnectedTo(), GetInPortsConnectedTo(), CLAM::OutPortBase::GetName(), CLAM::OutControlBase::GetName(), CLAM::Processing::GetNOutControls(), CLAM::Processing::GetNOutPorts(), CLAM::Processing::GetOutControl(), CLAM::Processing::GetOutPort(), GetProcessingIdentifier(), CLAM::GetVersion(), CLAM::OutPortBase::HasConnections(), CLAM::Network::Geometry::height, CLAM::Storage::Store(), CLAM::Network::Geometry::width, CLAM::Network::Geometry::x, and CLAM::Network::Geometry::y.
bool CLAM::Network::SupportsVariableAudioSize | ( | ) | const |
This method reports whether the network supports dynamic buffer-size host.
Definition at line 975 of file Network.cxx.
References BeginProcessings(), and EndProcessings().
bool CLAM::Network::UpdateSelections | ( | const NamesList & | processingsNamesList | ) |
methods related to copy&paste processings from canvas
Definition at line 270 of file Network.cxx.