]>
Commit | Line | Data |
---|---|---|
ac884b6a MS |
1 | // |
2 | // "$Id$" | |
3 | // | |
4 | // Option choice 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 | // ppdcChoice::ppdcChoice() - Create a new option choice. | |
18 | // ppdcChoice::~ppdcChoice() - Destroy an option choice. | |
19 | // | |
20 | ||
21 | // | |
22 | // Include necessary headers... | |
23 | // | |
24 | ||
38e73f87 | 25 | #include "ppdc-private.h" |
ac884b6a MS |
26 | |
27 | ||
28 | // | |
29 | // 'ppdcChoice::ppdcChoice()' - Create a new option choice. | |
30 | // | |
31 | ||
32 | ppdcChoice::ppdcChoice(const char *n, // I - Name of choice | |
33 | const char *t, // I - Text of choice | |
34 | const char *c) // I - Code of choice | |
35 | : ppdcShared() | |
36 | { | |
94da7e34 MS |
37 | PPDC_NEW; |
38 | ||
ac884b6a MS |
39 | name = new ppdcString(n); |
40 | text = new ppdcString(t); | |
41 | code = new ppdcString(c); | |
42 | } | |
43 | ||
44 | ||
45 | // | |
46 | // 'ppdcChoice::~ppdcChoice()' - Destroy an option choice. | |
47 | // | |
48 | ||
49 | ppdcChoice::~ppdcChoice() | |
50 | { | |
94da7e34 MS |
51 | PPDC_DELETE; |
52 | ||
ac884b6a MS |
53 | name->release(); |
54 | text->release(); | |
55 | code->release(); | |
56 | } | |
57 | ||
58 | ||
59 | // | |
60 | // End of "$Id$". | |
61 | // |