MCPcopy Index your code
hub / github.com/MapServer/MapServer / loadQueryMap

Function loadQueryMap

mapfile.c:4713–4748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4711}
4712
4713int loadQueryMap(queryMapObj *querymap)
4714{
4715 for(;;) {
4716 switch(msyylex()) {
4717 case(QUERYMAP):
4718 break; /* for string loads */
4719 case(COLOR):
4720 loadColor(&(querymap->color), NULL);
4721 break;
4722 case(EOF):
4723 msSetError(MS_EOFERR, NULL, "loadQueryMap()");
4724 return(-1);
4725 case(END):
4726 return(0);
4727 break;
4728 case(SIZE):
4729 if(getInteger(&(querymap->width)) == -1) return(-1);
4730 if(getInteger(&(querymap->height)) == -1) return(-1);
4731 break;
4732 case(STATUS):
4733 if((querymap->status = getSymbol(2, MS_ON,MS_OFF)) == -1) return(-1);
4734 break;
4735 case(STYLE):
4736 case(TYPE):
4737 if((querymap->style = getSymbol(3, MS_NORMAL,MS_HILITE,MS_SELECTED)) == -1) return(-1);
4738 break;
4739 default:
4740 if(strlen(msyystring_buffer) > 0) {
4741 msSetError(MS_IDENTERR, "Parsing error near (%s):(line %d)", "loadQueryMap()", msyystring_buffer, msyylineno);
4742 return(-1);
4743 } else {
4744 return(0); /* end of a string, not an error */
4745 }
4746 }
4747 }
4748}
4749
4750int msUpdateQueryMapFromString(queryMapObj *querymap, char *string, int url_string)
4751{

Callers 2

loadMapInternalFunction · 0.85

Calls 4

loadColorFunction · 0.85
msSetErrorFunction · 0.85
getIntegerFunction · 0.85
getSymbolFunction · 0.85

Tested by

no test coverage detected