• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // Licensed under Apache License v2.0.  See the file "LICENSE" for more information.
8 //
9 
10 //
11 // Include necessary headers...
12 //
13 
14 #include "ppdc-private.h"
15 
16 
17 //
18 // 'ppdcMessage::ppdcMessage()' - Create a shared message.
19 //
20 
ppdcMessage(const char * i,const char * s)21 ppdcMessage::ppdcMessage(const char *i,	// I - ID
22                          const char *s)	// I - Text
23   : ppdcShared()
24 {
25   PPDC_NEW;
26 
27   id     = new ppdcString(i);
28   string = new ppdcString(s);
29 }
30 
31 
32 //
33 // 'ppdcMessage::~ppdcMessage()' - Destroy a shared message.
34 //
35 
~ppdcMessage()36 ppdcMessage::~ppdcMessage()
37 {
38   PPDC_DELETE;
39 
40   id->release();
41   string->release();
42 }
43