Data Structures | Defines | Typedefs | Enumerations | Functions

C-Structures for Data Objects (Basis Object and Derivates)

These Structs define the Data-Block of every Object. The Data-Block ist the Part of the Object that normally changes every cycle by issuing a commit. More...

Data Structures

struct  kogmo_rtdb_subobj_base_t
 Basis Object that every Data Object has to start with (has to inherit); This is the Part of the Object that holds the basis data. This Struct must be the Beginn of the Data-Block of every Object. More...
struct  kogmo_rtdb_obj_base_t
 Full Object with only the basis data. More...
struct  kogmo_rtdb_subobj_c3_rtdb_t
 An Objects that holds Information about the RTDB. This is an essential object and is also used internally by the rtdb. More...
struct  kogmo_rtdb_obj_c3_rtdb_t
 Full Object for RTDB Info. More...
struct  kogmo_rtdb_subobj_c3_process_t
 This object contains information about a process connected to the rtdb. This is an essential object and is also used internally by the rtdb. More...
struct  kogmo_rtdb_obj_c3_process_t
 Full Object for Process Info. More...
struct  kogmo_rtdb_subobj_c3_playerctrl_t
 Control Object for the RTDB-Player. More...
struct  kogmo_rtdb_obj_c3_playerctrl_t
struct  kogmo_rtdb_subobj_c3_playerstat_t
 Status Object for the RTDB-Player. More...
struct  kogmo_rtdb_obj_c3_playerstat_t
struct  kogmo_rtdb_subobj_c3_recorderstat_t
 Status Object for the RTDB-Recorder TEMP! will be extended without notice! More...
struct  kogmo_rtdb_obj_c3_recorderstat_t
 Full Object with RTDB-Recorder Status. More...
struct  kogmo_rtdb_subobj_c3_recorderctrl_t
 Control Object for the RTDB-Recorder ==> NOT IN USE YET! More...
struct  kogmo_rtdb_obj_c3_recorderctrl_t
 Full Object with RTDB-Recorder Control. More...
struct  kogmo_rtdb_subobj_c3_text_t
 Plain ASCII-Text Object. More...
struct  kogmo_rtdb_obj_c3_text_t
struct  kogmo_rtdb_subobj_c3_text1k_t
 Small (1k) Plain ASCII-Text Object (can share the same type-id with kogmo_rtdb_obj_c3_text_t). More...
struct  kogmo_rtdb_obj_c3_text1k_t
struct  kogmo_rtdb_subobj_c3_ints256_t
 Object with Integer Values without specific Meaning (for Examples and quick Tests). More...
struct  kogmo_rtdb_obj_c3_ints256_t
struct  kogmo_rtdb_subobj_c3_floats256_t
 Object with Float Values without specific Meaning (for Examples and quick Tests). More...
struct  kogmo_rtdb_obj_c3_floats256_t
struct  kogmo_rtdb_subobj_a2_image_t
 Ein Videobild (aehnlich OpenCV) Aendert sich mit jedem Zyklus. Ein Kamerabild hat als Vater ein kogmo_rtdb_obj_a2_camera_t. More...
struct  kogmo_rtdb_obj_a2_image_t
 Vollstaendiges Objekt fuer ein Videobild. More...

Defines

#define A2_IMAGE_DEPTH_1U   1
#define A2_IMAGE_DEPTH_8U   8
#define A2_IMAGE_DEPTH_16U   16
#define A2_IMAGE_DEPTH_32F   32
#define A2_IMAGE_DEPTH_8S   0x80000008
#define A2_IMAGE_DEPTH_16S   0x80000016
#define A2_IMAGE_COLORMODEL_RGB   0
#define A2_IMAGE_COLORMODEL_YUV411   1
#define A2_IMAGE_COLORMODEL_YUV422   2
#define A2_IMAGE_COLORMODEL_YUV444   3
#define A2_IMAGE_COLORMODEL_RGBJPEG   16

Typedefs

typedef char kogmo_rtdb_obj_c3_process_info_t [KOGMO_RTDB_OBJMETA_NAME_MAXLEN+100]
 Type of a pre-allocated String to receive the Output of kogmo_rtdb_obj_c3_process_getprocessinfo().

Enumerations

enum  kogmo_rtdb_obj_c3_process_status_t {
  KOGMO_RTDB_PROCSTATUS_UNKNOWN = 0, KOGMO_RTDB_PROCSTATUS_CYCLEDONE, KOGMO_RTDB_PROCSTATUS_BUSY, KOGMO_RTDB_PROCSTATUS_WAITING,
  KOGMO_RTDB_PROCSTATUS_FAILURE, KOGMO_RTDB_PROCSTATUS_WARNING
}

Functions

char * kogmo_rtdb_obj_dumpbase_str (kogmo_rtdb_handle_t *db_h, void *data_p)
 Dump the Basisdata of an Object into a string.
char * kogmo_rtdb_obj_dumphex_str (kogmo_rtdb_handle_t *db_h, void *data_p)
 Dump the Data of an Object as Hex to a string.
kogmo_rtdb_objid_t kogmo_rtdb_obj_c3_process_searchprocessobj (kogmo_rtdb_handle_t *db_h, kogmo_timestamp_t ts, kogmo_rtdb_objid_t proc_oid)
 Functions for C3 Objects (C-Interface).
int kogmo_rtdb_obj_c3_process_getprocessinfo (kogmo_rtdb_handle_t *db_h, kogmo_rtdb_objid_t proc_oid, kogmo_timestamp_t ts, kogmo_rtdb_obj_c3_process_info_t str)
 This gives more information about a process into a struct kogmo_rtdb_obj_c3_process_info_t.

Detailed Description

These Structs define the Data-Block of every Object. The Data-Block ist the Part of the Object that normally changes every cycle by issuing a commit.

Every Object must start with a kogmo_rtdb_subobj_base_t.


Define Documentation

#define A2_IMAGE_COLORMODEL_RGB   0

Definition at line 390 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_COLORMODEL_RGBJPEG   16

Definition at line 394 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_COLORMODEL_YUV411   1

Definition at line 391 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_COLORMODEL_YUV422   2

Definition at line 392 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_COLORMODEL_YUV444   3

Definition at line 393 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_DEPTH_16S   0x80000016

Definition at line 389 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_DEPTH_16U   16

Definition at line 386 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_DEPTH_1U   1

Definition at line 384 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_DEPTH_32F   32

Definition at line 387 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_DEPTH_8S   0x80000008

Definition at line 388 of file kogmo_rtdb_obj_base.h.

#define A2_IMAGE_DEPTH_8U   8

Definition at line 385 of file kogmo_rtdb_obj_base.h.


Typedef Documentation

typedef char kogmo_rtdb_obj_c3_process_info_t[KOGMO_RTDB_OBJMETA_NAME_MAXLEN+100]

Type of a pre-allocated String to receive the Output of kogmo_rtdb_obj_c3_process_getprocessinfo().

Definition at line 74 of file kogmo_rtdb_obj_base_funcs.h.


Enumeration Type Documentation

Enumerator:
KOGMO_RTDB_PROCSTATUS_UNKNOWN 

Default beim Start, bedeutet dass der Prozess noch keinen Status selbst gesetzt hat.

KOGMO_RTDB_PROCSTATUS_CYCLEDONE 
KOGMO_RTDB_PROCSTATUS_BUSY 

Prozess hat gerade einen Zyklus beendet, und alle relevanten Objekte geschrieben.

Hierauf koennen andere Prozesse triggern. Prozess rechnet

KOGMO_RTDB_PROCSTATUS_WAITING 

Prozess wartet (auf Objekt, I/O, Benutzer, etc.).

KOGMO_RTDB_PROCSTATUS_FAILURE 

Prozess hat einen schweren Fehler selbst festgestellt, haengt und kann nicht weiterrechnen.

Koennte man vor dem exit() aufrufen.

KOGMO_RTDB_PROCSTATUS_WARNING 

Prozess hat eine Warnung.

Definition at line 107 of file kogmo_rtdb_obj_base.h.


Function Documentation

int kogmo_rtdb_obj_c3_process_getprocessinfo ( kogmo_rtdb_handle_t db_h,
kogmo_rtdb_objid_t  proc_oid,
kogmo_timestamp_t  ts,
kogmo_rtdb_obj_c3_process_info_t  str 
)

This gives more information about a process into a struct kogmo_rtdb_obj_c3_process_info_t.

Returns:
<0 on errors, on errors the string is set to "?".
kogmo_rtdb_objid_t kogmo_rtdb_obj_c3_process_searchprocessobj ( kogmo_rtdb_handle_t db_h,
kogmo_timestamp_t  ts,
kogmo_rtdb_objid_t  proc_oid 
)

Functions for C3 Objects (C-Interface).

Copyright (c) 2003-2006 Matthias Goebl <matthias.goebl*goebl.net> Lehrstuhl fuer Realzeit-Computersysteme (RCS) Technische Universitaet Muenchen (TUM)

char* kogmo_rtdb_obj_dumpbase_str ( kogmo_rtdb_handle_t db_h,
void *  data_p 
)

Dump the Basisdata of an Object into a string.

Parameters:
db_h database handle
data_p Pointer to a Object-Data-Struct
Returns:
Pointer to a string that will contain the dump in ASCII; YOU have to FREE it after usage!
NULL on errors

Example:

   char *p = kogmo_rtdb_obj_dumpbase_str (&objdata);
   printf ("%s", p); free(p); 
char* kogmo_rtdb_obj_dumphex_str ( kogmo_rtdb_handle_t db_h,
void *  data_p 
)

Dump the Data of an Object as Hex to a string.

Parameters:
db_h database handle
data_p Pointer to a Object-Data-Struct
Returns:
Pointer to a string that will contain the dump in ASCII; YOU have to FREE it after usage!
NULL on errors

Example:

   char *p = kogmo_rtdb_obj_dumphex_str (&objdata);
   printf ("%s", p); free(p); 

Generated for KogMo-RTDB by Matthias.Goebl (mattias.goebl*kogmo-rtdb.de) - all rights reserved.