/* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef _DB_LOG_ENTRY_H_RPCGEN #define _DB_LOG_ENTRY_H_RPCGEN #include #pragma ident "%Z%%M% %I% %E% SMI" #ifndef _DB_LOG_ENTRY_H #define _DB_LOG_ENTRY_H /* A log entry that describes an action to be performed and its parameters. */ #include "db_vers.h" #include "db_query.h" #include "db_entry.h" class db_log_entry { vers aversion; /* version of log entry */ db_action action; /* action to be invoked */ db_query *query; /* query supplied with action (if any) */ entry_object *object; /* object involved in action (if any) */ db_log_entry *next; /* Used in constructing list */ vers bversion; /* sanity check */ public: /*Constructor: Create an empty log entry, with no query and not object */ db_log_entry() { query = NULL, object = NULL; next = NULL; } /*Constructor: Create a log entry using the given parameters. Note that pointers to db_query and entry_object are simply assigned, not copied. */ db_log_entry( db_action, vers *, db_query *, entry_object*); ~db_log_entry(); /* Print to stdout this log entry */ void print(); /* Accessor: return version of log entry */ vers *get_version() { return( &aversion ); } /* Accessor: return pointer to action of log entry */ db_action get_action() { return( action ); } /* Accessor: return pointer to query part of log entry */ db_query *get_query() { return( query ); } /* Predicate: return whether log entry is complete and not truncated */ bool_t sane() { return( aversion.equal( &bversion ) ); } /* Accessor: return pointer to copy of object in log entry */ entry_object *get_object() { return( object ); } /* Accessor: return pointer to copy of object in log entry */ db_log_entry * getnextptr() { return( next ); } /* Accessor: return pointer to copy of object in log entry */ void setnextptr( db_log_entry *p ) { next = p; } }; #ifdef __cplusplus extern "C" bool_t xdr_db_log_entry(XDR*, db_log_entry*); #elif __STDC__ extern bool_t xdr_db_log_entry(XDR*, db_log_entry*); #endif typedef class db_log_entry * db_log_entry_p; struct db_log_list { struct { u_int list_len; db_log_entry_p *list_val; } list; }; typedef struct db_log_list db_log_list; #endif /* _DB_LOG_ENTRY_H */ /* the xdr functions */ extern bool_t xdr_db_log_list(); #endif /* !_DB_LOG_ENTRY_H_RPCGEN */