cdev-1.7.2n
This commit is contained in:
21
test/cdevCollection/attachCollection.cc
Executable file
21
test/cdevCollection/attachCollection.cc
Executable file
@@ -0,0 +1,21 @@
|
||||
#include <cdevCollection.h>
|
||||
|
||||
void main ( void )
|
||||
{
|
||||
/***************************************************************
|
||||
* Obtain a reference to a cdevCollection device named
|
||||
* "brandNew". Because this collection is not defined in the
|
||||
* CDEV DDL file, it will be created with no constituent
|
||||
* devices.
|
||||
***************************************************************/
|
||||
cdevCollection & brandNew = cdevCollection::attachRef("brandNew");
|
||||
|
||||
/***************************************************************
|
||||
* Obtain a reference to a cdevCollection device named
|
||||
* "cDevice1". This collection is defined in the CDEV DDL file
|
||||
* and will be populated with the devices: "device0", "device1",
|
||||
* and "device2".
|
||||
***************************************************************/
|
||||
cdevCollection * cDevice1 = cdevCollection::attachPtr("cDevice1");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user