NAME

ACE_Typed_SV_Message - Defines the header file for the C++ wrapper for System V message queues.

SYNOPSIS


#include <ace/Typed_SV_Message.h>


template<class T>
class ACE_Typed_SV_Message
{
  public:
    ACE_Typed_SV_Message (
        long type = 0,
        int length = sizeof (T),
        int max_size = sizeof (T)
        );
    ACE_Typed_SV_Message (
        const T &data,
        long type = 0,
        int length = sizeof (T),
        int max_size = sizeof (T)
        );
    ~ACE_Typed_SV_Message (void);
    long type (void) const;
    void type (long type);
    int length (void) const;
    void length (int l);
    int max_size (void) const;
    void max_size (int m);
    T &data (void);
    void data (const T &data);
    void dump (void) const;
    ACE_ALLOC_HOOK_DECLARE;
  private:
    long type_;
    int length_;
    int max_;
    T data_;
};

Initialization and termination methods.

ACE_Typed_SV_Message (
    long type = 0,
    int length = sizeof (T),
    int max_size = sizeof (T)
    );
ACE_Typed_SV_Message (
    const T &data,
    long type = 0,
    int length = sizeof (T),
    int max_size = sizeof (T)
    );
~ACE_Typed_SV_Message (void);

Get/set the type of the message.

long type (void) const;
void type (long type);

Get/set the length of the message.

int length (void) const;
void length (int l);

Get/set the maximum size of the message.

int max_size (void) const;
void max_size (int m);

Get/set a pointer to the data in the message.

T &data (void);
void data (const T &data);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;

AUTHOR

Doug Schmidt

LIBRARY

ace