608 B
608 B
pvDatabaseCPP/example/createdestroy
This is an example that:
- Gets the master PVDatabase
- Create ChannelProviderLocal
- Creates a ServerContext
Then it executes a forever loop that:
- creates a pvRecord and adds it to the pvDatabase.
- creates a pvac::ClientProvider
- creates a pvac::ClientChannel
- creates a monitor on the channel
- runs a loop 10 times that: does a put to the channel, and then gets the data for any outstanding monitors
- removes the pvRecord from the pvDatabase
It also has options to set trace level for the pvRecord and to periodically pause by asking for input.