NAME

ACE_Service_Type - Provide the class hierarchy that defines the contents of the Service Repository search structure.

SYNOPSIS


#include <ace/Service_Object.h>


class ACE_Service_Type
{
  public:
    enum{ DELETE_OBJ = 1, DELETE_THIS = 2 };
    ACE_Service_Type (
        const void *object,
        const char *s_name,
        u_int flags = 0
        );
    virtual int suspend (void) const = 0;
    virtual int resume (void) const = 0;
    virtual int init (int argc, char *argv[]) const = 0;
    virtual int fini (void) const;
    virtual int info (char **str, size_t len) const = 0;
    const void *object (void) const;
    const char *name (void) const;
    void name (const char *);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  protected:
    const char *name_;
    const void *obj_;
    u_int flags_;
};

Initialization method.

ACE_Service_Type (
    const void *object,
    const char *s_name,
    u_int flags = 0
    );

Pure virtual interface (must be defined by the subclass).

virtual int suspend (void) const = 0;
virtual int resume (void) const = 0;
virtual int init (int argc, char *argv[]) const = 0;
virtual int fini (void) const;
virtual int info (char **str, size_t len) const = 0;
const void *object (void) const;
const char *name (void) const;
void name (const char *);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;

AUTHOR

Doug Schmidt

LIBRARY

ace