ParseResult Class Reference

#include <ArmarXGui/gui-plugins/StatechartEditorPlugin/variantjson/ParseResult.h>

Public Types

enum  ErrorHint { eNone, eOldFormat }
 
enum  ErrorType {
  eNotSet, eNoError, eSytaxError, eContainerMismatch,
  eVariantParseError
}
 

Public Member Functions

std::string geterr ()
 
ErrorHint getErrorHint ()
 
ErrorType getErrorType ()
 
bool iserr ()
 
 ParseResult (const std::string &error, ErrorType errorType)
 
void setErrorHint (ErrorHint errorHint)
 

Static Public Member Functions

static ParseResult Error (const std::string &error, ErrorType errorType)
 
static ParseResult Success ()
 

Detailed Description

Definition at line 33 of file ParseResult.h.

Member Enumeration Documentation

◆ ErrorHint

enum ErrorHint
Enumerator
eNone 
eOldFormat 

Definition at line 37 of file ParseResult.h.

◆ ErrorType

enum ErrorType
Enumerator
eNotSet 
eNoError 
eSytaxError 
eContainerMismatch 
eVariantParseError 

Definition at line 36 of file ParseResult.h.

Constructor & Destructor Documentation

◆ ParseResult()

ParseResult ( const std::string &  error,
ErrorType  errorType 
)

Definition at line 28 of file ParseResult.cpp.

+ Here is the caller graph for this function:

Member Function Documentation

◆ Error()

ParseResult Error ( const std::string &  error,
ErrorType  errorType 
)
static

Definition at line 63 of file ParseResult.cpp.

+ Here is the call graph for this function:

◆ geterr()

std::string geterr ( )

Definition at line 38 of file ParseResult.cpp.

+ Here is the caller graph for this function:

◆ getErrorHint()

ParseResult::ErrorHint getErrorHint ( )

Definition at line 53 of file ParseResult.cpp.

◆ getErrorType()

ParseResult::ErrorType getErrorType ( )

Definition at line 43 of file ParseResult.cpp.

+ Here is the caller graph for this function:

◆ iserr()

bool iserr ( )

Definition at line 33 of file ParseResult.cpp.

+ Here is the caller graph for this function:

◆ setErrorHint()

void setErrorHint ( ParseResult::ErrorHint  errorHint)

Definition at line 48 of file ParseResult.cpp.

◆ Success()

ParseResult Success ( )
static

Definition at line 58 of file ParseResult.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: