]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-constraint.cxx
4 // Contraint class for the CUPS PPD Compiler.
6 // Copyright 2007-2009 by Apple Inc.
7 // Copyright 2002-2005 by Easy Software Products.
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/".
17 // ppdcConstraint::ppdcConstraint() - Create a constraint.
18 // ppdcConstraint::~ppdcConstraint() - Destroy a constraint.
22 // Include necessary headers...
25 #include "ppdc-private.h"
29 // 'ppdcConstraint::ppdcConstraint()' - Create a constraint.
32 ppdcConstraint::ppdcConstraint(const char *o1
, // I - First option
33 const char *c1
, // I - First choice
34 const char *o2
, // I - Second option
35 const char *c2
) // I - Second choice
40 option1
= new ppdcString(o1
);
41 choice1
= new ppdcString(c1
);
42 option2
= new ppdcString(o2
);
43 choice2
= new ppdcString(c2
);
48 // 'ppdcConstraint::~ppdcConstraint()' - Destroy a constraint.
51 ppdcConstraint::~ppdcConstraint()