exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
check_strict_grammar.c File Reference

Tests decoding documents using strict grammar. More...

#include <stdio.h>
#include <stdlib.h>
#include <check.h>
#include "EXISerializer.h"
#include "EXIParser.h"
#include "stringManipulate.h"
#include "grammarGenerator.h"
#include "memManagement.h"

Go to the source code of this file.

Data Structures

struct  appData
 
struct  timestamp
 
struct  boolValue
 
struct  processValueDesc
 
struct  devDescribtion
 
struct  appDataLKAB
 

Macros

#define INPUT_BUFFER_SIZE   200
 
#define OUTPUT_BUFFER_SIZE   200
 
#define MAX_PATH_LEN   200
 
#define LKAB_BUFFER_SIZE   1000
 

Typedefs

typedef struct appData appData
 
typedef struct timestamp Timestamp
 
typedef enum ValueType ValueType
 
typedef enum Quality Quality
 
typedef struct boolValue BoolValue
 
typedef struct processValueDesc ProcessValueDesc
 
typedef struct devDescribtion DevDescribtion
 

Enumerations

enum  ValueType { Bool =0, Long =1 }
 
enum  Quality {
  Good =0, Good_LocalOverride =1, Uncertain =2, Uncertain_LastUsable =3,
  Uncertain_SensorCal =4, Uncertain_EGUExeeded =5, Uncertain_SubNormal =6, Bad =7,
  Bad_ConfigError =8, Bad_NotConnected =9, Bad_DeviceFailure =10, Bad_SensorFailure =11,
  Bad_CommFailureLastKnownAvailable =12, Bad_CommFailure =13, Bad_OutOfService =14
}
 

Functions

size_t readFileInputStream (void *buf, size_t readSize, void *stream)
 
size_t writeFileOutputStream (void *buf, size_t readSize, void *stream)
 
 START_TEST (test_acceptance_for_A_01)
 
END_TEST START_TEST (test_acceptance_for_A_01_exip1)
 
END_TEST START_TEST (test_acceptance_for_A_01b)
 
 START_TEST (test_lkab_demo_suit)
 
END_TEST Suiteexip_suite (void)
 
int main (int argc, char *argv[])
 

Variables

END_TEST typedef char error_code
 
const EXISerializer serialize
 The handler to be used by the applications to serialize EXI streams. More...
 
const String NS_STR = {"http://imc-aesop.eu/lkab-demo", 29}
 
const String NS_EMPTY_STR = {NULL, 0}
 
const String ELEM_BOOL_VAL_STR = {"BoolValue", 9}
 
const String ELEM_QUAL_STR = {"quality", 7}
 
const String ELEM_TIMESTAMP_STR = {"timestamp", 9}
 
const String ELEM_VALUE_STR = {"value", 5}
 
const String ELEM_DEV_DESC_STR = {"DeviceDescription", 17}
 
const String ELEM_ID_STR = {"id", 2}
 
const String ELEM_NAME_STR = {"name", 4}
 
const String ELEM_TYPE_STR = {"type", 4}
 
const String ELEM_LOCATION_STR = {"location", 8}
 
const String ELEM_PROSS_VAL_STR = {"processValues", 13}
 
const String ELEM_IS_READONLY_STR = {"isReadOnly", 10}
 
const String ELEM_DESC_STR = {"description", 11}
 

Detailed Description

Date
Mar 29, 2012
Author
Ken Bannister
Rumen Kyusakov
Version
0.5
[Revision] $Id: check_strict_grammar.c 328 2013-10-30 16:00:10Z kjussakov $

Definition in file check_strict_grammar.c.

Macro Definition Documentation

#define INPUT_BUFFER_SIZE   200

Definition at line 28 of file check_strict_grammar.c.

#define LKAB_BUFFER_SIZE   1000

Definition at line 1411 of file check_strict_grammar.c.

#define MAX_PATH_LEN   200

Definition at line 30 of file check_strict_grammar.c.

#define OUTPUT_BUFFER_SIZE   200

Definition at line 29 of file check_strict_grammar.c.

Typedef Documentation

typedef struct appData appData

Definition at line 44 of file check_strict_grammar.c.

typedef struct boolValue BoolValue

Definition at line 689 of file check_strict_grammar.c.

Definition at line 710 of file check_strict_grammar.c.

Definition at line 699 of file check_strict_grammar.c.

typedef enum Quality Quality

Definition at line 680 of file check_strict_grammar.c.

typedef struct timestamp Timestamp

Definition at line 650 of file check_strict_grammar.c.

typedef enum ValueType ValueType

Definition at line 658 of file check_strict_grammar.c.

Enumeration Type Documentation

enum Quality
Enumerator
Good 
Good_LocalOverride 
Uncertain 
Uncertain_LastUsable 
Uncertain_SensorCal 
Uncertain_EGUExeeded 
Uncertain_SubNormal 
Bad 
Bad_ConfigError 
Bad_NotConnected 
Bad_DeviceFailure 
Bad_SensorFailure 
Bad_CommFailureLastKnownAvailable 
Bad_CommFailure 
Bad_OutOfService 

Definition at line 660 of file check_strict_grammar.c.

enum ValueType
Enumerator
Bool 
Long 

Definition at line 652 of file check_strict_grammar.c.

Function Documentation

END_TEST Suite* exip_suite ( void  )

Definition at line 1499 of file check_strict_grammar.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 1515 of file check_strict_grammar.c.

size_t readFileInputStream ( void *  buf,
size_t  readSize,
void *  stream 
)

Definition at line 48 of file check_strict_grammar.c.

START_TEST ( test_acceptance_for_A_01  )

Definition at line 271 of file check_strict_grammar.c.

END_TEST START_TEST ( test_acceptance_for_A_01_exip1  )

Definition at line 433 of file check_strict_grammar.c.

END_TEST START_TEST ( test_acceptance_for_A_01b  )

Definition at line 549 of file check_strict_grammar.c.

START_TEST ( test_lkab_demo_suit  )

Definition at line 1413 of file check_strict_grammar.c.

size_t writeFileOutputStream ( void *  buf,
size_t  readSize,
void *  stream 
)

Definition at line 54 of file check_strict_grammar.c.

Variable Documentation

const String ELEM_BOOL_VAL_STR = {"BoolValue", 9}

Definition at line 717 of file check_strict_grammar.c.

const String ELEM_DESC_STR = {"description", 11}

Definition at line 730 of file check_strict_grammar.c.

const String ELEM_DEV_DESC_STR = {"DeviceDescription", 17}

Definition at line 722 of file check_strict_grammar.c.

const String ELEM_ID_STR = {"id", 2}

Definition at line 723 of file check_strict_grammar.c.

const String ELEM_IS_READONLY_STR = {"isReadOnly", 10}

Definition at line 729 of file check_strict_grammar.c.

const String ELEM_LOCATION_STR = {"location", 8}

Definition at line 727 of file check_strict_grammar.c.

const String ELEM_NAME_STR = {"name", 4}

Definition at line 724 of file check_strict_grammar.c.

const String ELEM_PROSS_VAL_STR = {"processValues", 13}

Definition at line 728 of file check_strict_grammar.c.

const String ELEM_QUAL_STR = {"quality", 7}

Definition at line 718 of file check_strict_grammar.c.

const String ELEM_TIMESTAMP_STR = {"timestamp", 9}

Definition at line 719 of file check_strict_grammar.c.

const String ELEM_TYPE_STR = {"type", 4}

Definition at line 725 of file check_strict_grammar.c.

const String ELEM_VALUE_STR = {"value", 5}

Definition at line 720 of file check_strict_grammar.c.

END_TEST typedef char error_code

Definition at line 637 of file check_strict_grammar.c.

const String NS_EMPTY_STR = {NULL, 0}

Definition at line 715 of file check_strict_grammar.c.

const String NS_STR = {"http://imc-aesop.eu/lkab-demo", 29}

Definition at line 714 of file check_strict_grammar.c.

const EXISerializer serialize

Used during serialization for easy access to the EXIP serialization API.

Definition at line 34 of file EXISerializer.c.