]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-variable.cxx
0208a6326cb8289f0c32ba61e6c19608a5bc7950
2 // Variable 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 // 'ppdcVariable::ppdcVariable()' - Create a variable.
25 ppdcVariable::ppdcVariable(const char *n
, // I - Name of variable
26 const char *v
) // I - Value of variable
31 name
= new ppdcString(n
);
32 value
= new ppdcString(v
);
37 // 'ppdcVariable::~ppdcVariable()' - Destroy a variable.
40 ppdcVariable::~ppdcVariable()
50 // 'ppdcVariable::set_value()' - Set the value of a variable.
54 ppdcVariable::set_value(const char *v
)
57 value
= new ppdcString(v
);