]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-choice.cxx
80448cc9ed8cbec02514c5da321dbec7dead9a0b
2 // Option choice class for the CUPS PPD Compiler.
4 // Copyright 2007-2009 by Apple Inc.
5 // Copyright 2002-2005 by Easy Software Products.
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
11 // file is missing or damaged, see the license at "http://www.cups.org/".
15 // Include necessary headers...
18 #include "ppdc-private.h"
22 // 'ppdcChoice::ppdcChoice()' - Create a new option choice.
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
32 name
= new ppdcString(n
);
33 text
= new ppdcString(t
);
34 code
= new ppdcString(c
);
39 // 'ppdcChoice::~ppdcChoice()' - Destroy an option choice.
42 ppdcChoice::~ppdcChoice()