]> git.ipfire.org Git - thirdparty/cups.git/blame - ppdc/ppdc-constraint.cxx
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / ppdc / ppdc-constraint.cxx
CommitLineData
ac884b6a
MS
1//
2// "$Id$"
3//
4// Contraint class for the CUPS PPD Compiler.
5//
6// Copyright 2007 by Apple Inc.
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// ppdcConstraint::ppdcConstraint() - Create a constraint.
18// ppdcConstraint::~ppdcConstraint() - Destroy a constraint.
19//
20
21//
22// Include necessary headers...
23//
24
25#include "ppdc.h"
26
27
28//
29// 'ppdcConstraint::ppdcConstraint()' - Create a constraint.
30//
31
32ppdcConstraint::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
36 : ppdcShared()
37{
38 option1 = new ppdcString(o1);
39 choice1 = new ppdcString(c1);
40 option2 = new ppdcString(o2);
41 choice2 = new ppdcString(c2);
42}
43
44
45//
46// 'ppdcConstraint::~ppdcConstraint()' - Destroy a constraint.
47//
48
49ppdcConstraint::~ppdcConstraint()
50{
51 option1->release();
52 choice1->release();
53 option2->release();
54 choice2->release();
55}
56
57
58//
59// End of "$Id$".
60//