Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Fields
ost::Bayonne::State Struct Reference

The primary state data structure. More...

#include <bayonne.h>

Collaboration diagram for ost::Bayonne::State:
Collaboration graph
[legend]

Data Fields

Handler handler
 
Handler logstate
 
const char * name
 
timeout_t timeout
 
bool peering
 
Namemenu
 
unsigned stack
 
Linelib
 
int pfd
 
result_t result
 
int pid
 
libaudio_tlibaudio
 
bool refer
 
union {
   struct {
      unsigned   count
 
      timeout_t   interval
 
   }   wait
 
   struct {
      Audio::Mode   mode
 
      Audio::Level   level
 
      timeout_t   total
 
      timeout_t   silence
 
      timeout_t   intersilence
 
      long   lastnum
 
      bool   exitkey
 
      bool   compress
 
      bool   trigger
 
      const char *   pos
 
      const char *   exit
 
      const char *   menu
 
      const char *   note
 
      union {
         const char *   list [256]
 
         struct {
            const char *   pathv [4]
 
            char   path1 [128]
 
            char   path2 [128]
 
            char   meta [256 *2]
 
         } 
 
      } 
 
   }   audio
 
   struct {
      timeout_t   interdigit
 
      timeout_t   lastdigit
 
      const char *   var
 
      const char *   exit
 
      const char *   format
 
      const char *   ignore
 
      const char *   route
 
      unsigned   count
 
      unsigned   size
 
      unsigned   required
 
   }   input
 
   struct {
      const char *   var
 
      const char *   menu
 
   }   inkey
 
   struct {
      const char *   sequence
 
      bool   flashing
 
      bool   dialing
 
      bool   exiting
 
      bool   hangup
 
      bool   dtmf
 
      bool   refer
 
      char *   syncdigit
 
      timeout_t   synctimer
 
      timeout_t   duration
 
      char   digits [64]
 
      char   sessionid [16]
 
   }   tone
 
   struct {
      timeout_t   on
 
      timeout_t   off
 
      timeout_t   interdigit
 
      unsigned   pos
 
      bool   flashing
 
      bool   dialing
 
      unsigned char   digits [64]
 
   }   pulse
 
   struct {
      const char *   dial
 
      const char *   exit
 
      bool   dtmf
 
      bool   drop
 
      bool   hangup
 
      bool   refer
 
      BayonneSession *   peer
 
      timeout_t   answer_timer
 
      timeout_t   hunt_timer
 
      Line *   select
 
      unsigned   index
 
      char   digits [64]
 
   }   join
 
   struct {
      const char *   ref
 
      char   buf [256 *sizeof(char *)]
 
   }   url
 
}; 
 

Detailed Description

The primary state data structure.

This holds data that is setup by the interpreter and which must remain persistent for the execution of a given state. This is composed of some common elements which exist in a session for all states, and a union of state specific data elements, all packed together.

Definition at line 929 of file bayonne.h.

Field Documentation

union { ... }
timeout_t ost::Bayonne::State::answer_timer

Definition at line 1025 of file bayonne.h.

struct { ... } ost::Bayonne::State::audio
char ost::Bayonne::State::buf[256 *sizeof(char *)]

Definition at line 1034 of file bayonne.h.

bool ost::Bayonne::State::compress

Definition at line 963 of file bayonne.h.

unsigned ost::Bayonne::State::count

Definition at line 952 of file bayonne.h.

const char* ost::Bayonne::State::dial

Definition at line 1021 of file bayonne.h.

bool ost::Bayonne::State::dialing

Definition at line 1002 of file bayonne.h.

char ost::Bayonne::State::digits[64]

Definition at line 1006 of file bayonne.h.

unsigned char ost::Bayonne::State::digits[64]

Definition at line 1016 of file bayonne.h.

bool ost::Bayonne::State::drop

Definition at line 1023 of file bayonne.h.

bool ost::Bayonne::State::dtmf

Definition at line 1002 of file bayonne.h.

timeout_t ost::Bayonne::State::duration

Definition at line 1005 of file bayonne.h.

const char* ost::Bayonne::State::exit

Definition at line 966 of file bayonne.h.

bool ost::Bayonne::State::exiting

Definition at line 1002 of file bayonne.h.

bool ost::Bayonne::State::exitkey

Definition at line 962 of file bayonne.h.

bool ost::Bayonne::State::flashing

Definition at line 1001 of file bayonne.h.

const char* ost::Bayonne::State::format

Definition at line 986 of file bayonne.h.

Handler ost::Bayonne::State::handler

Definition at line 931 of file bayonne.h.

bool ost::Bayonne::State::hangup

Definition at line 1002 of file bayonne.h.

timeout_t ost::Bayonne::State::hunt_timer

Definition at line 1025 of file bayonne.h.

const char* ost::Bayonne::State::ignore

Definition at line 987 of file bayonne.h.

unsigned ost::Bayonne::State::index

Definition at line 1027 of file bayonne.h.

struct { ... } ost::Bayonne::State::inkey
struct { ... } ost::Bayonne::State::input
timeout_t ost::Bayonne::State::interdigit

Definition at line 982 of file bayonne.h.

timeout_t ost::Bayonne::State::intersilence

Definition at line 960 of file bayonne.h.

timeout_t ost::Bayonne::State::interval

Definition at line 953 of file bayonne.h.

struct { ... } ost::Bayonne::State::join
timeout_t ost::Bayonne::State::lastdigit

Definition at line 983 of file bayonne.h.

long ost::Bayonne::State::lastnum

Definition at line 961 of file bayonne.h.

Audio::Level ost::Bayonne::State::level

Definition at line 959 of file bayonne.h.

Line* ost::Bayonne::State::lib

Definition at line 937 of file bayonne.h.

libaudio_t* ost::Bayonne::State::libaudio

Definition at line 945 of file bayonne.h.

const char* ost::Bayonne::State::list[256]

Definition at line 970 of file bayonne.h.

Handler ost::Bayonne::State::logstate

Definition at line 931 of file bayonne.h.

Name* ost::Bayonne::State::menu

Definition at line 935 of file bayonne.h.

const char* ost::Bayonne::State::menu

Definition at line 967 of file bayonne.h.

char ost::Bayonne::State::meta[256 *2]

Definition at line 975 of file bayonne.h.

Audio::Mode ost::Bayonne::State::mode

Definition at line 958 of file bayonne.h.

const char* ost::Bayonne::State::name

Definition at line 932 of file bayonne.h.

const char* ost::Bayonne::State::note

Definition at line 968 of file bayonne.h.

timeout_t ost::Bayonne::State::off

Definition at line 1012 of file bayonne.h.

timeout_t ost::Bayonne::State::on

Definition at line 1012 of file bayonne.h.

char ost::Bayonne::State::path1[128]

Definition at line 973 of file bayonne.h.

char ost::Bayonne::State::path2[128]

Definition at line 974 of file bayonne.h.

const char* ost::Bayonne::State::pathv[4]

Definition at line 972 of file bayonne.h.

BayonneSession* ost::Bayonne::State::peer

Definition at line 1024 of file bayonne.h.

bool ost::Bayonne::State::peering

Definition at line 934 of file bayonne.h.

int ost::Bayonne::State::pfd

Definition at line 941 of file bayonne.h.

int ost::Bayonne::State::pid

Definition at line 944 of file bayonne.h.

const char* ost::Bayonne::State::pos

Definition at line 965 of file bayonne.h.

unsigned ost::Bayonne::State::pos

Definition at line 1013 of file bayonne.h.

struct { ... } ost::Bayonne::State::pulse
const char* ost::Bayonne::State::ref

Definition at line 1033 of file bayonne.h.

bool ost::Bayonne::State::refer

Definition at line 946 of file bayonne.h.

unsigned ost::Bayonne::State::required

Definition at line 989 of file bayonne.h.

result_t ost::Bayonne::State::result

Definition at line 943 of file bayonne.h.

const char* ost::Bayonne::State::route

Definition at line 988 of file bayonne.h.

Line* ost::Bayonne::State::select

Definition at line 1026 of file bayonne.h.

const char* ost::Bayonne::State::sequence

Definition at line 1000 of file bayonne.h.

char ost::Bayonne::State::sessionid[16]

Definition at line 1007 of file bayonne.h.

timeout_t ost::Bayonne::State::silence

Definition at line 960 of file bayonne.h.

unsigned ost::Bayonne::State::size

Definition at line 989 of file bayonne.h.

unsigned ost::Bayonne::State::stack

Definition at line 936 of file bayonne.h.

char* ost::Bayonne::State::syncdigit

Definition at line 1003 of file bayonne.h.

timeout_t ost::Bayonne::State::synctimer

Definition at line 1004 of file bayonne.h.

timeout_t ost::Bayonne::State::timeout

Definition at line 933 of file bayonne.h.

struct { ... } ost::Bayonne::State::tone
timeout_t ost::Bayonne::State::total

Definition at line 960 of file bayonne.h.

bool ost::Bayonne::State::trigger

Definition at line 964 of file bayonne.h.

struct { ... } ost::Bayonne::State::url
const char* ost::Bayonne::State::var

Definition at line 984 of file bayonne.h.

struct { ... } ost::Bayonne::State::wait

The documentation for this struct was generated from the following file: