]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-variable.cxx
2 // Variable 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 // 'ppdcVariable::ppdcVariable()' - Create a variable.
21 ppdcVariable::ppdcVariable(const char *n
, // I - Name of variable
22 const char *v
) // I - Value of variable
27 name
= new ppdcString(n
);
28 value
= new ppdcString(v
);
33 // 'ppdcVariable::~ppdcVariable()' - Destroy a variable.
36 ppdcVariable::~ppdcVariable()
46 // 'ppdcVariable::set_value()' - Set the value of a variable.
50 ppdcVariable::set_value(const char *v
)
53 value
= new ppdcString(v
);