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