## NAME

ACE_Typed_SV_Message_Queue - Defines the header file for the C++ wrapper for message queues.

## SYNOPSIS

    #include <ace/Typed_SV_Message_Queue.h>

    template<class T>
    class ACE_Typed_SV_Message_Queue
    {
      public:
            enum{ ACE_CREATE = IPC_CREAT,
            ACE_OPEN = 0,
            ACE_NOWAIT = IPC_NOWAIT };

        ACE_Typed_SV_Message_Queue (void);
        ACE_Typed_SV_Message_Queue (
            key_t external_id,
            int create = ACE_OPEN,
            int perms = ACE_DEFAULT_FILE_PERMS
            );
        int open (
            key_t external_id,
            int create = ACE_OPEN,
            int perms = ACE_DEFAULT_FILE_PERMS
            );
        int close (void);
        int remove (void);
        ~ACE_Typed_SV_Message_Queue (void);
        int send (const ACE_Typed_SV_Message<T> &mb, int mflags = 0);
        int recv (ACE_Typed_SV_Message<T> &mb, int mflags = 0);
        int control (int option, void *arg = 0);
        void dump (void) const;
        ACE_ALLOC_HOOK_DECLARE;
      private:
        ACE_SV_Message_Queue message_queue_;
    };

## Initialization and termination operations.

    ACE_Typed_SV_Message_Queue (void);

    ACE_Typed_SV_Message_Queue (
        key_t external_id,
        int create = ACE_OPEN,
        int perms = ACE_DEFAULT_FILE_PERMS
        );

    int open (
        key_t external_id,
        int create = ACE_OPEN,
        int perms = ACE_DEFAULT_FILE_PERMS
        );

    int close (void);

    int remove (void);

    ~ACE_Typed_SV_Message_Queue (void);

## Send and recv methods.

    int send (const ACE_Typed_SV_Message<T> &mb, int mflags = 0);

    int recv (ACE_Typed_SV_Message<T> &mb, int mflags = 0);

    int control (int option, void *arg = 0);

Control the underlying message queue.

    void dump (void) const;

Dump the state of an object.

    ACE_ALLOC_HOOK_DECLARE;

Declare the dynamic allocation hooks.

## AUTHOR

Doug Schmidt

## LIBRARY

ace