]> git.ipfire.org Git - thirdparty/cups.git/blame - ppdc/ppdc-attr.cxx
Fix source file header text duplication text duplication.
[thirdparty/cups.git] / ppdc / ppdc-attr.cxx
CommitLineData
ac884b6a 1//
503b54c9 2// Attribute class for the CUPS PPD Compiler.
ac884b6a 3//
503b54c9
MS
4// Copyright 2007-2009 by Apple Inc.
5// Copyright 2002-2005 by Easy Software Products.
ac884b6a 6//
503b54c9
MS
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
57b7b66b 11// missing or damaged, see the license at "http://www.cups.org/".
ac884b6a
MS
12//
13
14//
15// Include necessary headers...
16//
17
38e73f87 18#include "ppdc-private.h"
ac884b6a
MS
19
20
21//
22// 'ppdcAttr::ppdcAttr()' - Create an attribute.
23//
24
25ppdcAttr::ppdcAttr(const char *n, // I - Name
26 const char *s, // I - Spec string
27 const char *t, // I - Human-readable text
bdd6c45b
MS
28 const char *v, // I - Value
29 bool loc) // I - Localize this attribute?
ac884b6a
MS
30 : ppdcShared()
31{
94da7e34
MS
32 PPDC_NEW;
33
bdd6c45b
MS
34 name = new ppdcString(n);
35 selector = new ppdcString(s);
36 text = new ppdcString(t);
37 value = new ppdcString(v);
38 localizable = loc;
ac884b6a
MS
39}
40
41
42//
43// 'ppdcAttr::~ppdcAttr()' - Destroy an attribute.
44//
45
46ppdcAttr::~ppdcAttr()
47{
94da7e34
MS
48 PPDC_DELETE;
49
ac884b6a
MS
50 name->release();
51 selector->release();
52 text->release();
53 value->release();
54}