Files
cdesktop/cde/lib/tt/lib/mp/mp_msg_context.h
2012-03-10 18:58:32 +00:00

80 lines
2.2 KiB
C++

/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these librararies and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
/*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
/*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
/*%% (c) Copyright 1993, 1994 Novell, Inc. */
/*%% $XConsortium: mp_msg_context.h /main/3 1995/10/23 10:25:23 rswiston $ */
/* -*-C++-*-
*
* @(#)mp_msg_context.h 1.6 30 Jul 1993
*
* Tool Talk Message Passer (MP) - mp_msg_context.h
*
* Copyright (c) 1992 by Sun Microsystems, Inc.
*
* _Tt_msg_context is a context slot in a message.
*/
#ifndef _MP_MSG_CONTEXT_H
#define _MP_MSG_CONTEXT_H
#include <mp/mp_context.h>
#include <mp/mp_msg_context_utils.h>
#include <mp/mp_arg_utils.h>
#include <rpc/rpc.h>
class _Tt_msg_context : public _Tt_context {
public:
_Tt_msg_context();
virtual ~_Tt_msg_context();
Tt_status setValue(
const _Tt_string &value
);
Tt_status setValue(
int value
);
int isEnvEntry() const;
_Tt_string enVarName() const;
_Tt_string stringRep() const;
void print(
const _Tt_ostream &os
) const;
static void print_(
const _Tt_ostream &os,
const _Tt_object *obj
);
bool_t xdr(
XDR *xdrs
);
const _Tt_arg &value() const {return *_value;}
private:
_Tt_arg_ptr _value;
};
#endif /* _MP_MSG_CONTEXT_H */