~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/xpdflib/pstokenizer.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- C++ -*-
2
 
//========================================================================
3
 
//
4
 
// PSTokenizer.h
5
 
//
6
 
// Copyright 2002 Glyph & Cog, LLC
7
 
//
8
 
//========================================================================
9
 
 
10
 
#ifndef PSTOKENIZER_H
11
 
#define PSTOKENIZER_H
12
 
 
13
 
#include "aconf.h"
14
 
 
15
 
#ifdef USE_GCC_PRAGMAS
16
 
#pragma interface
17
 
#endif
18
 
 
19
 
#include "gtypes.h"
20
 
 
21
 
//------------------------------------------------------------------------
22
 
 
23
 
class PSTokenizer {
24
 
public:
25
 
 
26
 
  PSTokenizer(int (*getCharFuncA)(void *), void *dataA);
27
 
  ~PSTokenizer();
28
 
 
29
 
  // Get the next PostScript token.  Returns false at end-of-stream.
30
 
  GBool getToken(char *buf, int size, int *length);
31
 
 
32
 
private:
33
 
 
34
 
  int lookChar();
35
 
  int getChar();
36
 
 
37
 
  int (*getCharFunc)(void *);
38
 
  void *data;
39
 
  int charBuf;
40
 
};
41
 
 
42
 
#endif