本文整理汇总了C++中Plugin::getObject方法的典型用法代码示例。如果您正苦于以下问题:C++ Plugin::getObject方法的具体用法?C++ Plugin::getObject怎么用?C++ Plugin::getObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plugin
的用法示例。
在下文中一共展示了Plugin::getObject方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
qFatal("Unable to get ApplicationNode");
}
PluginsNode * pn = cn->getPluginsNode();
if(!pn)
{
qFatal("Unable to get PluginsNode");
}
OBJECTVALUENODE_DECLARE_AND_GET(QPoint,position,an);
OBJECTVALUENODE_DECLARE_AND_GET(QSize,size,an);
SIMPLEVALUENODE_DECLARE_AND_GET(bool,maximized,an);
SIMPLEVALUENODE_DECLARE_AND_GET(Q_INT8,tbindex,an);
// Create the toplevel window
Q3HBox * w = new Q3HBox();
w->setSizePolicy(QSizePolicy::Preferred,QSizePolicy::Preferred);
// Add a widget that contains the toolbox and measurements
Q3VBox * pVBox = new Q3VBox( w );
pVBox->setSizePolicy( QSizePolicy::Fixed, QSizePolicy::Preferred );
pVBox->setSpacing( 5 );
pVBox->setMargin( 2 );
// Create the toolbox
QToolBox * tb = new QToolBox( pVBox );
// Create all plugins
Plugin * VisualizePlugin = new Plugin("visualize");
Plugin * AnalysePlugin = new Plugin("analyse_os");
Plugin * WaveInPlugin = new Plugin("wavein");
Plugin * FileWriterPlugin = new Plugin("filewriter");
// Load plugin objects
PI_Unknown *ukvi = VisualizePlugin->getObject();
PI_Unknown *ukan = AnalysePlugin->getObject();
PI_Unknown *ukwi = WaveInPlugin->getObject();
PI_Unknown *ukfw = FileWriterPlugin->getObject();
// Configure the system
if( ukvi && ukan && ukwi && ukfw )
{
PI_GuiContainer* gcwiobj = NULL;
PI_GuiContainer* gcviobj = NULL;
PI_GuiContainer* gcfwobj = NULL;
PI_Configuration* xcanobj = NULL;
PI_Configuration* xcviobj = NULL;
PI_Configuration* xcwiobj = NULL;
PI_Configuration* xcfwobj = NULL;
PI_DataBufferProvider* dbpwiobj = NULL;
PI_DataBufferProvider* dbpanobj = NULL;
PI_DataBufferConsumer* dbcanobj = NULL;
PI_DataBufferConsumer* dbcviobj = NULL;
PI_DataBufferConsumer* dbcfwobj = NULL;
PI_TimeProvider* tpwiobj = NULL;
PI_TimeConsumer* tcviobj = NULL;
PI_TimeConsumer* tcfwobj = NULL;
ukwi->queryInterface( PIID_GUI_CONTAINER, (void**)&gcwiobj );
ukvi->queryInterface( PIID_GUI_CONTAINER , (void**)&gcviobj );
ukfw->queryInterface( PIID_GUI_CONTAINER, (void**)&gcfwobj );
ukan->queryInterface( PIID_CONFIGURATION, (void**)&xcanobj );
ukvi->queryInterface( PIID_CONFIGURATION, (void**)&xcviobj );
ukwi->queryInterface( PIID_CONFIGURATION, (void**)&xcwiobj );
ukfw->queryInterface( PIID_CONFIGURATION, (void**)&xcfwobj );
ukwi->queryInterface( PIID_DATA_BUFFER_PROVIDER, (void**)&dbpwiobj );
ukan->queryInterface( PIID_DATA_BUFFER_PROVIDER, (void**)&dbpanobj );