]>
Commit | Line | Data |
---|---|---|
ac884b6a | 1 | // |
503b54c9 | 2 | // Option choice class for the CUPS PPD Compiler. |
ac884b6a | 3 | // |
503b54c9 MS |
4 | // Copyright 2007-2009 by Apple Inc. |
5 | // Copyright 2002-2005 by Easy Software Products. | |
ac884b6a | 6 | // |
503b54c9 MS |
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 | |
57b7b66b | 11 | // missing or damaged, see the license at "http://www.cups.org/". |
ac884b6a MS |
12 | // |
13 | ||
14 | // | |
15 | // Include necessary headers... | |
16 | // | |
17 | ||
38e73f87 | 18 | #include "ppdc-private.h" |
ac884b6a MS |
19 | |
20 | ||
21 | // | |
22 | // 'ppdcChoice::ppdcChoice()' - Create a new option choice. | |
23 | // | |
24 | ||
25 | ppdcChoice::ppdcChoice(const char *n, // I - Name of choice | |
26 | const char *t, // I - Text of choice | |
27 | const char *c) // I - Code of choice | |
28 | : ppdcShared() | |
29 | { | |
94da7e34 MS |
30 | PPDC_NEW; |
31 | ||
ac884b6a MS |
32 | name = new ppdcString(n); |
33 | text = new ppdcString(t); | |
34 | code = new ppdcString(c); | |
35 | } | |
36 | ||
37 | ||
38 | // | |
39 | // 'ppdcChoice::~ppdcChoice()' - Destroy an option choice. | |
40 | // | |
41 | ||
42 | ppdcChoice::~ppdcChoice() | |
43 | { | |
94da7e34 MS |
44 | PPDC_DELETE; |
45 | ||
ac884b6a MS |
46 | name->release(); |
47 | text->release(); | |
48 | code->release(); | |
49 | } |