]>
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 | // |
e3101897 | 7 | // Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
ac884b6a MS |
8 | // |
9 | ||
10 | // | |
11 | // Include necessary headers... | |
12 | // | |
13 | ||
38e73f87 | 14 | #include "ppdc-private.h" |
ac884b6a MS |
15 | |
16 | ||
17 | // | |
18 | // 'ppdcChoice::ppdcChoice()' - Create a new option choice. | |
19 | // | |
20 | ||
21 | ppdcChoice::ppdcChoice(const char *n, // I - Name of choice | |
22 | const char *t, // I - Text of choice | |
23 | const char *c) // I - Code of choice | |
24 | : ppdcShared() | |
25 | { | |
94da7e34 MS |
26 | PPDC_NEW; |
27 | ||
ac884b6a MS |
28 | name = new ppdcString(n); |
29 | text = new ppdcString(t); | |
30 | code = new ppdcString(c); | |
31 | } | |
32 | ||
33 | ||
34 | // | |
35 | // 'ppdcChoice::~ppdcChoice()' - Destroy an option choice. | |
36 | // | |
37 | ||
38 | ppdcChoice::~ppdcChoice() | |
39 | { | |
94da7e34 MS |
40 | PPDC_DELETE; |
41 | ||
ac884b6a MS |
42 | name->release(); |
43 | text->release(); | |
44 | code->release(); | |
45 | } |