gdata
Loading...
Searching...
No Matches
gframe_example.cc File Reference

Example demonstrating frame data collection. More...

#include "frame/gFrameDataCollection.h"
#include "frame/gFrameHeader.h"
#include "gEventDataCollection.h"
#include "glogger.h"
#include <gtouchable_options.h>
#include <iostream>
#include <string>
#include <vector>
Include dependency graph for gframe_example.cc:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Entry point for the frame example.
 

Detailed Description

Summary:

  • creates one frame header and one frame data collection
  • inserts three packed integral payloads
  • prints the stored frame metadata and payload content

Link to the example overview:

Definition in file gframe_example.cc.

Function Documentation

◆ main()

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

The program:

  • constructs the option bundle used by the example
  • creates loggers
  • creates one frame header and one frame container
  • inserts three example packed payload vectors
  • prints the frame metadata and each stored payload
  • deletes the frame container, which also deletes the owned header and payload objects

This example intentionally uses the raw-pointer ownership pattern currently implemented by GFrameDataCollection so the generated documentation matches the actual API contract.

Parameters
argcArgument count forwarded to GOptions.
argvArgument vector forwarded to GOptions.
Returns
EXIT_SUCCESS on normal completion.

Definition at line 91 of file gframe_example.cc.