/*exampleRecordMain.cpp */ /** * Copyright - See the COPYRIGHT that is included with this distribution. * EPICS pvData is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. */ /** * @author mrk */ /* Author: Marty Kraimer */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "exampleRecord.h" using namespace std; using namespace epics::pvData; using namespace epics::pvAccess; using namespace epics::pvDatabase; int main(int argc,char *argv[]) { String recordName("exampleRecord"); PVRecordPtr pvRecord = ExampleRecord::create(recordName); PVDatabasePtr pvDatabase = PVDatabase::getMaster(); pvDatabase->addRecord(pvRecord); cout << recordName << "\n"; string str; while(true) { cout << "Type exit to stop: \n"; getline(cin,str); if(str.compare("exit")==0) break; } return 0; }