## NAME

ACE_Stream_Type - Define the methods for handling the configuration of `ACE_Streams`.

## SYNOPSIS

    #include <ace/Service_Types.h>

    class ACE_Stream_Type : public ACE_Service_Type_Impl
    {
      public:
        ACE_Stream_Type (
            void *s,
            const ASYS_TCHAR *identifier,
            u_int flags = 0
            );
        ~ACE_Stream_Type (void);
        virtual int suspend (void) const;
        virtual int resume (void) const;
        virtual int init (int argc, ASYS_TCHAR *argv[]) const;
        virtual int fini (void) const;
        virtual int info (ASYS_TCHAR **str, size_t len) const;
        int push (ACE_Module_Type *new_module);
        int remove (ACE_Module_Type *module);
        ACE_Module_Type *find (const ASYS_TCHAR *mod_name) const;
        void dump (void) const;
        ACE_ALLOC_HOOK_DECLARE;
      private:
        ACE_Module_Type *head_;
    };

## Initialization method.

    ACE_Stream_Type (
        void *s,
        const ASYS_TCHAR *identifier,
        u_int flags = 0
        );

    ~ACE_Stream_Type (void);

= Implement the hooks for `ACE_Streams`.

    virtual int suspend (void) const;

    virtual int resume (void) const;

    virtual int init (int argc, ASYS_TCHAR *argv[]) const;

    virtual int fini (void) const;

    virtual int info (ASYS_TCHAR **str, size_t len) const;

    int push (ACE_Module_Type *new_module);

Add a new `ACE_Module` to the top of the `ACE_Stream`.

    int remove (ACE_Module_Type *module);

Search for `module` and remove it from the `ACE_Stream`.

    ACE_Module_Type *find (const ASYS_TCHAR *mod_name) const;

Locate the `ACE_Module` with `mod_name`.

    void dump (void) const;

Dump the state of an object.

    ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace