1 // 2 // Shared message class for the CUPS PPD Compiler. 3 // 4 // Copyright © 2020-2024 by OpenPrinting. 5 // Copyright 2007-2009 by Apple Inc. 6 // Copyright 2002-2005 by Easy Software Products. 7 // 8 // Licensed under Apache License v2.0. See the file "LICENSE" for more information. 9 // 10 11 // 12 // Include necessary headers... 13 // 14 15 #include "ppdc-private.h" 16 17 18 // 19 // 'ppdcMessage::ppdcMessage()' - Create a shared message. 20 // 21 ppdcMessage(const char * i,const char * s)22ppdcMessage::ppdcMessage(const char *i, // I - ID 23 const char *s) // I - Text 24 : ppdcShared() 25 { 26 PPDC_NEW; 27 28 id = new ppdcString(i); 29 string = new ppdcString(s); 30 } 31 32 33 // 34 // 'ppdcMessage::~ppdcMessage()' - Destroy a shared message. 35 // 36 ~ppdcMessage()37ppdcMessage::~ppdcMessage() 38 { 39 PPDC_DELETE; 40 41 id->release(); 42 string->release(); 43 } 44