1 #ifndef _BLOCK_SUB_DEF_H
2 #define _BLOCK_SUB_DEF_H
5 #pragma warning(disable:4996 4251 4275 4800 4503)
8 #include <boost/thread/mutex.hpp>
9 #include <boost/algorithm/string.hpp>
28 static std::vector<ParamDefinition> getListParams()
29 {
return std::vector <ParamDefinition>();}
30 static std::vector<ParamDefinition> getListOutputs()
31 {
return std::vector <ParamDefinition>();}
32 static std::vector<ParamDefinition> getListSubParams()
33 {
return std::vector <ParamDefinition>();}
35 static bool addedToList;
45 virtual bool run(
bool oneShot =
false);
51 virtual void release();
55 _subGraph->setParent(processes,
this);
58 virtual boost::property_tree::ptree getXML();
59 virtual void initFromXML(boost::property_tree::ptree* tree,
60 std::vector < std::pair<ParamValue*, unsigned int> >& toUpdate,
61 std::map<unsigned int, ParamValue*>& addressesMap,
62 std::vector<ConditionOfRendering*>& condToUpdate);
65 void addExternLink(
const BlockLink& link,
bool isInput);
66 void removeExternLink(
const BlockLink& link);
68 void waitUpdateParams(boost::unique_lock<boost::mutex>& lock);
70 const std::vector<BlockLink>& getExternBlocksInput()
const {
return externBlocksInput; }
71 const std::vector<BlockLink>& getExternBlocksOutput()
const {
return externBlocksOutput; }
std::vector< BlockLink > externBlocksInput
input parameters the user had added to block
Definition: SubBlock.h:39
std::vector< BlockLink > externBlocksOutput
output parameters the user had added to block
Definition: SubBlock.h:40
GraphOfProcess * _processes
list of process currently in use
Definition: Block.h:238
boost::condition_variable _wait_param_update
parameter update from subgraph sync condition
Definition: SubBlock.h:42
Definition: SubBlock.h:20
Definition: ProcessManager.h:33