]> git.ipfire.org Git - thirdparty/cups.git/blame - ppdc/ppdc-message.cxx
Import CUPS v1.7.1
[thirdparty/cups.git] / ppdc / ppdc-message.cxx
CommitLineData
ac884b6a 1//
61515785 2// "$Id: ppdc-message.cxx 1378 2009-04-08 03:17:45Z msweet $"
ac884b6a
MS
3//
4// Shared message class for the CUPS PPD Compiler.
5//
94da7e34 6// Copyright 2007-2009 by Apple Inc.
ac884b6a
MS
7// Copyright 2002-2005 by Easy Software Products.
8//
9// These coded instructions, statements, and computer programs are the
10// property of Apple Inc. and are protected by Federal copyright
11// law. Distribution and use rights are outlined in the file "LICENSE.txt"
12// which should have been included with this file. If this file is
13// file is missing or damaged, see the license at "http://www.cups.org/".
14//
15// Contents:
16//
17// ppdcMessage::ppdcMessage() - Create a shared message.
18// ppdcMessage::~ppdcMessage() - Destroy a shared message.
19//
20
21//
22// Include necessary headers...
23//
24
38e73f87 25#include "ppdc-private.h"
ac884b6a
MS
26
27
28//
29// 'ppdcMessage::ppdcMessage()' - Create a shared message.
30//
31
32ppdcMessage::ppdcMessage(const char *i, // I - ID
33 const char *s) // I - Text
34 : ppdcShared()
35{
94da7e34
MS
36 PPDC_NEW;
37
ac884b6a
MS
38 id = new ppdcString(i);
39 string = new ppdcString(s);
40}
41
42
43//
44// 'ppdcMessage::~ppdcMessage()' - Destroy a shared message.
45//
46
47ppdcMessage::~ppdcMessage()
48{
94da7e34
MS
49 PPDC_DELETE;
50
e4572d57
MS
51 id->release();
52 string->release();
ac884b6a
MS
53}
54
55
56//
61515785 57// End of "$Id: ppdc-message.cxx 1378 2009-04-08 03:17:45Z msweet $".
ac884b6a 58//