]> git.ipfire.org Git - thirdparty/cups.git/blob - ppdc/ppdc-filter.cxx
Greatly simplify the man page handling.
[thirdparty/cups.git] / ppdc / ppdc-filter.cxx
1 //
2 // Filter class for the CUPS PPD Compiler.
3 //
4 // Copyright 2007-2009 by Apple Inc.
5 // Copyright 2002-2005 by Easy Software Products.
6 //
7 // Licensed under Apache License v2.0. See the file "LICENSE" for more information.
8 //
9
10 //
11 // Include necessary headers...
12 //
13
14 #include "ppdc-private.h"
15
16
17 //
18 // 'ppdcFilter::ppdcFilter()' - Create a filter.
19 //
20
21 ppdcFilter::ppdcFilter(const char *t, // I - MIME type
22 const char *p, // I - Filter program
23 int c) // I - Relative cost
24 : ppdcShared()
25 {
26 PPDC_NEW;
27
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
38 ppdcFilter::~ppdcFilter()
39 {
40 PPDC_DELETE;
41
42 mime_type->release();
43 program->release();
44 }