]> git.ipfire.org Git - thirdparty/cups.git/blame - ppdc/ppdc-filter.cxx
Merge changes from CUPS 1.4svn-r7614.
[thirdparty/cups.git] / ppdc / ppdc-filter.cxx
CommitLineData
ac884b6a
MS
1//
2// "$Id$"
3//
4// Filter class for the CUPS PPD Compiler.
5//
6// Copyright 2007 by Apple Inc.
7// Copyright 2002-2005 by Easy Software Products.
8//
9// These coded instructions, statements, and computer programs are the
10// property of Apple Inc. and are protected by Federal copyright
11// law. Distribution and use rights are outlined in the file "LICENSE.txt"
12// which should have been included with this file. If this file is
13// file is missing or damaged, see the license at "http://www.cups.org/".
14//
15// Contents:
16//
17// ppdcFilter::ppdcFilter() - Create a filter.
18// ppdcFilter::~ppdcFilter() - Destroy a filter.
19//
20
21//
22// Include necessary headers...
23//
24
25#include "ppdc.h"
26
27
28//
29// 'ppdcFilter::ppdcFilter()' - Create a filter.
30//
31
32ppdcFilter::ppdcFilter(const char *t, // I - MIME type
33 const char *p, // I - Filter program
34 int c) // I - Relative cost
35{
36 mime_type = new ppdcString(t);
37 program = new ppdcString(p);
38 cost = c;
39}
40
41
42//
43// 'ppdcFilter::~ppdcFilter()' - Destroy a filter.
44//
45
46ppdcFilter::~ppdcFilter()
47{
48 mime_type->release();
49 program->release();
50}
51
52
53//
54// End of "$Id$".
55//