The shortest possible PVA put() example.
#include "pva/client.h"
int main(int argc, char *argv[])
{
try {
if(argc<=2) {
std::cerr<<
"Usage: "<<argv[0]<<
" <pvname> <value>\n";
return 1;
}
std::cout<<
"Before "<<channel.name()<<
" : "<<channel.get()<<
"\n";
.set("value", argv[2])
.exec();
std::cout<<
"After "<<channel.name()<<
" : "<<channel.get()<<
"\n";
return 1;
}
}