]> git.ipfire.org Git - thirdparty/cups.git/blame - ppdc/ppdc-filter.cxx
License change: Apache License, Version 2.0.
[thirdparty/cups.git] / ppdc / ppdc-filter.cxx
CommitLineData
ac884b6a 1//
503b54c9 2// Filter 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//
e3101897 7// Licensed under Apache License v2.0. See the file "LICENSE" for more information.
ac884b6a
MS
8//
9
10//
11// Include necessary headers...
12//
13
38e73f87 14#include "ppdc-private.h"
ac884b6a
MS
15
16
17//
18// 'ppdcFilter::ppdcFilter()' - Create a filter.
19//
20
21ppdcFilter::ppdcFilter(const char *t, // I - MIME type
22 const char *p, // I - Filter program
23 int c) // I - Relative cost
94da7e34 24 : ppdcShared()
ac884b6a 25{
94da7e34
MS
26 PPDC_NEW;
27
ac884b6a
MS
28 mime_type = new ppdcString(t);
29 program = new ppdcString(p);
30 cost = c;
31}
32
33
34//
35// 'ppdcFilter::~ppdcFilter()' - Destroy a filter.
36//
37
38ppdcFilter::~ppdcFilter()
39{
94da7e34
MS
40 PPDC_DELETE;
41
ac884b6a
MS
42 mime_type->release();
43 program->release();
44}