AURobotServers
4
|
#include <usmlstring.h>
Public Member Functions | |
virtual int | getLineNumber () |
virtual bool | isSourceAvailable () |
virtual void | setLineNumber (int newLineNumber) |
bool | setSourceString (const char *editString) |
void | setVerbose (bool value) |
virtual void | syntaxError (const char *message) |
USmlString () | |
~USmlString () | |
Public Member Functions inherited from USmlSource | |
void | allowTagAtStartOfLineOnly () |
const char * | getErrorBuffer () |
virtual int | getNBytes (char *buffer, int n, int msTimeout=100) |
virtual bool | getNextTag (USmlTag *tag, int msTimeout=100, USmlTagIn *failEndTag=NULL, char *beforeTagBuffer=NULL, int *beforeTagCnt=NULL) |
char * | getRxDataBuffer () |
int | getRxDataBufferCnt () |
virtual const char * | getSourceName () |
bool | getToEndTag (USmlTagIn *tag, char *buffer, const int bufferSize, int msTimeout=100, USmlTagIn *lastTag=NULL) |
bool | isErrorText () |
bool | isVerbose () |
virtual bool | logSourceData (const char *, int) |
virtual bool | outputData (const char *message) |
void | setErrorBuffer (char *buf, const int bufCnt) |
int | setRxDataBufferCnt (int newMaxLength) |
virtual bool | skipNBytes (int n, int msTimeout=100) |
virtual bool | skipToEndTag (USmlTagIn *tag, int msTimeout=100) |
USmlSource () | |
virtual | ~USmlSource () |
Protected Member Functions | |
virtual bool | doVerboseMessages () |
virtual int | getMoreData (char *buffer, int bufferSize, int pollTimeoutMs) |
Protected Member Functions inherited from USmlSource | |
void | clearRxBuffer () |
Protected Attributes | |
const char * | fullSource |
int | line |
const char * | source |
bool | verbose |
Protected Attributes inherited from USmlSource | |
int | dataCnt |
char * | errorBuffer |
int | errorBufferCnt |
bool | gotFirstTag |
bool | tagStartAtStartOfLineOnly |
Additional Inherited Members | |
Public Attributes inherited from USmlSource | |
const char * | ifName |
An sml stream based on a stringh source
@author Christian Andersen <chrand@mail.dk>
USmlString::USmlString | ( | ) |
References fullSource, line, source, and verbose.
USmlString::~USmlString | ( | ) |
|
protectedvirtual |
Should additional messages be printed to console
Reimplemented from USmlSource.
References verbose.
Referenced by setLineNumber().
|
inlinevirtual |
Get current line number from the source - first line is 1
Reimplemented from USmlSource.
References line.
|
protectedvirtual |
Get more data, if more data is available
Reimplemented from USmlSource.
References line, mini(), and source.
Referenced by setLineNumber().
|
virtual |
Is tha data source (still) open, and is ther more unread data.
Reimplemented from USmlSource.
References source.
Referenced by UMisLoadedRule::completeEdit(), and setLineNumber().
|
inlinevirtual |
Set current line number from the source
newLineNumber | may be used to set a new series of line numbers |
Reimplemented from USmlSource.
References doVerboseMessages(), getMoreData(), isSourceAvailable(), and line.
bool USmlString::setSourceString | ( | const char * | editString | ) |
Set the source string.
editString | is the source string, ordered in lines separated by ' ' |
References fullSource, line, and source.
Referenced by UMisLoadedRule::completeEdit().
|
inline |
Set if the console messages should be verbose
References verbose.
|
virtual |
A syntax error has occured with the provided message
message | is a description of the error type. |
Reimplemented from USmlSource.
References line, and USmlSource::syntaxError().
|
protected |
pointer to XML lines to be added
Referenced by setSourceString(), and USmlString().
|
protected |
current line number
Referenced by getLineNumber(), getMoreData(), setLineNumber(), setSourceString(), syntaxError(), and USmlString().
|
protected |
Current position in source
Referenced by getMoreData(), isSourceAvailable(), setSourceString(), and USmlString().
|
protected |
Should more debug data be output to console
Referenced by doVerboseMessages(), setVerbose(), and USmlString().