]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-constraint.cxx
2 // Contraint class for the CUPS PPD Compiler.
4 // Copyright 2007-2009 by Apple Inc.
5 // Copyright 2002-2005 by Easy Software Products.
7 // Licensed under Apache License v2.0. See the file "LICENSE" for more information.
11 // Include necessary headers...
14 #include "ppdc-private.h"
18 // 'ppdcConstraint::ppdcConstraint()' - Create a constraint.
21 ppdcConstraint::ppdcConstraint(const char *o1
, // I - First option
22 const char *c1
, // I - First choice
23 const char *o2
, // I - Second option
24 const char *c2
) // I - Second choice
29 option1
= new ppdcString(o1
);
30 choice1
= new ppdcString(c1
);
31 option2
= new ppdcString(o2
);
32 choice2
= new ppdcString(c2
);
37 // 'ppdcConstraint::~ppdcConstraint()' - Destroy a constraint.
40 ppdcConstraint::~ppdcConstraint()