typedef TFilter::TParameters TParameters;
// Various types
- typedef std::set< std::string > TStringContainer;
+ typedef std::set< std::string > TStringContainer;
+ typedef std::pair< std::string, std::string > TGlobalPort;
+ typedef std::map< std::string, TGlobalPort > TGlobalPorts;
// Graph type
typedef std::pair< std::string, std::string > TConnection;
const std::string& output_name,
const std::string& input_name
);
+ bool Connect( const std::string& i, const std::string& o );
TParameters* GetParameters( const std::string& name );
const TParameters* GetParameters( const std::string& name ) const;
TFilter* GetFilter( const std::string& name );
// Graph reduction
bool Reduce( const std::string& name );
+ void AddInputPort(
+ const std::string& name,
+ const std::string& filter, const std::string& filter_input
+ );
+ void AddOutputPort(
+ const std::string& name,
+ const std::string& filter, const std::string& filter_output
+ );
+ void ClearInputPorts( );
+ void ClearOutputPorts( );
// Pipeline execution
std::string Execute( );
// Processing graph
typename TGraph::Pointer m_Graph;
+ TGlobalPorts m_InputPorts;
+ TGlobalPorts m_OutputPorts;
};
} // ecapseman