TCNOpen TRDP-SPY  2.0
trdpDict.h File Reference

Parser of the XML description. More...

#include <glib.h>
#include "trdp_env.h"
#include <epan/packet.h>
Include dependency graph for trdpDict.h:
This graph shows which files directly or indirectly include this file:

Data Structures

class  Element
 description of one element More...
 
class  Dataset
 Description of one dataset. More...
 
class  ComId
 This struct makes a mapping between one comId and one dataset. More...
 
struct  TrdpDict
 This struct is the root container for the XML type dictionary. More...
 

Functions

gchar * TrdpDict_summary (const TrdpDict *self)
 Get some human-readable info. More...
 
const ComIdTrdpDict_lookup_ComId (const TrdpDict *self, guint32 comId)
 Lookup a given comId in the dictionary self. More...
 
DatasetTrdpDict_get_Dataset (const TrdpDict *self, guint32 datasetId)
 Lookup a given datasetId in the dictionary self. More...
 

Detailed Description

Parser of the XML description.

Note
Project: TRDP SPY
Author
Florian Weispfenning, Bombardier Transportation
Thorsten Schulz, Universität Rostock
Id

Function Documentation

◆ TrdpDict_get_Dataset()

Dataset* TrdpDict_get_Dataset ( const TrdpDict self,
guint32  datasetId 
)

Lookup a given datasetId in the dictionary self.

You may read and change information on the returned item, but do not free it

Parameters
selfTrdpDict instance
datasetIdThe number referencing the Dataset item
Returns
pointer to the Dataset item in the dictionary or NULL if not found
Here is the caller graph for this function:

◆ TrdpDict_lookup_ComId()

const ComId* TrdpDict_lookup_ComId ( const TrdpDict self,
guint32  comId 
)

Lookup a given comId in the dictionary self.

You may only read on the returned item.

Parameters
selfTrdpDict instance
comIdThe number referencing the ComId item
Returns
pointer to the ComId item in the dictionary or NULL if not found

◆ TrdpDict_summary()

gchar* TrdpDict_summary ( const TrdpDict self)

Get some human-readable info.

The caller is responsible to free the returned string.

Parameters
selfTrdpDict instance
Returns
info string to be freed be caller