Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippResponseParser.cpp File Reference

Go to the source code of this file.


#define INITSIZE   10


ippOtherKeyType getFromString (const std::string &)
bool UnSpaceInputArray (char *_inputArray, int start)

Define Documentation

#define INITSIZE   10

Definition at line 84 of file ippResponseParser.cpp.

Referenced by ippResponseParser::ippResponseParser().

Function Documentation

ippOtherKeyType getFromString const std::string &   ) 

Definition at line 3761 of file ippCommandParser.cpp.

References ippKeyWordHashTable::find(), and g_keyword_hash.

bool UnSpaceInputArray char *  _inputArray,
int  start

! ippCommandParser::unSpaceInputArray

Value: None.

By: ippCommandParser::parseCommand

Rules: 1. Starting with the seventh position of a command string, space must not appear anywhere except a. before or after a left or right parenthesis b. before or after a comma c. inside a string ILLEGAL_SPACE

Reference pages: (33 - 34)

The reference pages are currently not consistent regarding optional space after a right parenthesis. The text says it is not allowed, but the EBNF for SRightParen says it is allowed. This affects only the closing right parentheses of a command, since every other right parenthesis is followed either by a comma or a right parenthesis, both of which may have space before them. The I++ response to this issue said that space should be allowed after a right parenthesis, so that is what this function does.


Starting at the seventh position (index 6), this removes from the _inputArray all spaces outside of strings. It does this by moving characters from right to left as necessary to fill in any spaces.

The n-1 in the termination condition of the "for" loop allows the NULL to be copied also.

Definition at line 4214 of file ippCommandParser.cpp.

Generated on Wed Nov 8 00:20:29 2006 for IPPDME by  doxygen 1.4.1