]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-variable.cxx
4 // Variable class for the CUPS PPD Compiler.
6 // Copyright 2007-2008 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 // ppdcVariable::ppdcVariable() - Create a variable.
18 // ppdcVariable::~ppdcVariable() - Destroy a variable.
19 // ppdcVariable::set_value() - Set the value of a variable.
23 // Include necessary headers...
30 // 'ppdcVariable::ppdcVariable()' - Create a variable.
33 ppdcVariable::ppdcVariable(const char *n
, // I - Name of variable
34 const char *v
) // I - Value of variable
36 name
= new ppdcString(n
);
37 value
= new ppdcString(v
);
42 // 'ppdcVariable::~ppdcVariable()' - Destroy a variable.
45 ppdcVariable::~ppdcVariable()
53 // 'ppdcVariable::set_value()' - Set the value of a variable.
57 ppdcVariable::set_value(const char *v
)
60 value
= new ppdcString(v
);