2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
24 /*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
25 /*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
26 /*%% (c) Copyright 1993, 1994 Novell, Inc. */
27 /*%% $XConsortium: mp_s_pattern.h /main/3 1995/10/23 11:57:50 rswiston $ */
30 * @(#)mp_s_pattern.h 1.7 29 Jul 1993
32 * Tool Talk Message Passer (MP) - mp_s_pattern.h
34 * Copyright (c) 1990, 1992 by Sun Microsystems, Inc.
36 * This file implements the server side of the _Tt_pattern object.
39 #ifndef _MP_S_PATTERN_H
40 #define _MP_S_PATTERN_H
42 #include "mp/mp_pattern.h"
43 #include "mp/mp_arg_utils.h"
44 #include "mp_ptype_utils.h"
45 #include "mp_s_pattern_utils.h"
46 #include "mp_signature_utils.h"
51 class _Tt_s_pattern : public _Tt_pattern {
54 _Tt_s_pattern(const _Tt_signature_ptr &sig);
55 virtual ~_Tt_s_pattern();
58 const _Tt_s_message &m,
59 const _Tt_msg_trace &trace
61 Tt_status add_arg(const _Tt_arg_ptr &arg);
62 Tt_status join_context(const _Tt_msg_context &context);
63 Tt_status quit_context(const _Tt_msg_context &context);
64 _Tt_ptype_ptr &generating_ptype(); // ptype it was generated
66 _Tt_ptype_ptr &generating_ptype(_Tt_ptype_ptr &pt); // set it
67 int is_from_ptype(); // true if generated by
69 unsigned int timestamp() const
70 { return _timestamp; }
71 void set_timestamp(unsigned int stamp)
72 { _timestamp = stamp; }
75 // server-only methods that aid in matching patterns and
79 const _Tt_int_rec_list_ptr &pvals,
81 const _Tt_msg_trace &trace,
82 const char *failure_note
85 const _Tt_string &val,
86 const _Tt_string_list_ptr &pvals,
88 const _Tt_msg_trace &trace,
89 const char *failure_note
94 const _Tt_msg_trace &trace
99 const _Tt_msg_trace &trace
102 const _Tt_message &m,
104 const _Tt_msg_trace &trace
107 _Tt_ptype_ptr _generating_ptype;
108 unsigned int _timestamp;
111 friend class _Tt_message;
113 #include "mp_s_pattern_inlines.h"
115 #endif /* _MP_S_PATTERN_H */