]>
git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-attr.cxx
2 // Attribute 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 // 'ppdcAttr::ppdcAttr()' - Create an attribute.
21 ppdcAttr::ppdcAttr(const char *n
, // I - Name
22 const char *s
, // I - Spec string
23 const char *t
, // I - Human-readable text
24 const char *v
, // I - Value
25 bool loc
) // I - Localize this attribute?
30 name
= new ppdcString(n
);
31 selector
= new ppdcString(s
);
32 text
= new ppdcString(t
);
33 value
= new ppdcString(v
);
39 // 'ppdcAttr::~ppdcAttr()' - Destroy an attribute.