fixed bug in CreateRequestFactory

This commit is contained in:
Marty Kraimer
2011-02-04 12:33:56 -05:00
parent de8b632381
commit 22e9a36ccb
3 changed files with 6 additions and 3 deletions

View File

@@ -25,9 +25,10 @@ TEMPLATE_TOP=$(EPICS_BASE)/templates/makeBaseApp/top
#SNCSEQ=$(EPICS_BASE)/../modules/soft/seq
# EPICS_BASE usually appears last so other apps can override stuff:
EPICS_BASE=/opt/epics/base
PVDATA_HOME=/opt/epics/pvDataCPP
PVDATA=/home/mrk/hg/pvDataCPP
EPICS_BASE=/home/install/epics/base
# Set RULES here if you want to take build rules from somewhere
# other than EPICS_BASE:

View File

@@ -80,5 +80,6 @@ LIBSRCS += clientContextImpl.cpp
LIBRARY = pvAccess
pvAccess_LIBS += Com
pvAccess_LIBS += pvData
include $(TOP)/configure/RULES

View File

@@ -82,7 +82,8 @@ class CreateRequestImpl : public CreateRequest {
return false;
}
if(!createLeafFieldRequest(pvParent,request.substr(0, closeBracket+1),requester)) return false;
if(request.rfind(',')>closeBracket) {
size_t commaLoc = request.rfind(',');
if(commaLoc!=std::string::npos && commaLoc>closeBracket) {
int nextComma = request.find(',', closeBracket);
if(!createFieldRequest(pvParent,request.substr(nextComma+1),false,requester)) return false;
}