source: trunk/poppler/mypoppler/poppler/Array.h @ 461

Last change on this file since 461 was 257, checked in by Eugene Romanenko, 13 years ago

PDF plugin: Poppler library updated to version 0.10.0

File size: 1.7 KB
Line 
1//========================================================================
2//
3// Array.h
4//
5// Copyright 1996-2003 Glyph & Cog, LLC
6//
7//========================================================================
8
9//========================================================================
10//
11// Modified under the Poppler project - http://poppler.freedesktop.org
12//
13// All changes made under the Poppler project to this file are licensed
14// under GPL version 2 or later
15//
16// Copyright (C) 2005 Kristian HÞgsberg <krh@redhat.com>
17//
18// To see a description of the changes please see the Changelog file that
19// came with your tarball or type make ChangeLog if you are building from git
20//
21//========================================================================
22
23#ifndef ARRAY_H
24#define ARRAY_H
25
26#ifdef USE_GCC_PRAGMAS
27#pragma interface
28#endif
29
30#include "Object.h"
31
32class XRef;
33
34//------------------------------------------------------------------------
35// Array
36//------------------------------------------------------------------------
37
38class Array {
39public:
40
41  // Constructor.
42  Array(XRef *xrefA);
43
44  // Destructor.
45  ~Array();
46
47  // Reference counting.
48  int incRef() { return ++ref; }
49  int decRef() { return --ref; }
50
51  // Get number of elements.
52  int getLength() { return length; }
53
54  // Add an element.
55  void add(Object *elem);
56
57  // Accessors.
58  Object *get(int i, Object *obj);
59  Object *getNF(int i, Object *obj);
60  GBool getString(int i, GooString *string);
61
62private:
63
64  XRef *xref;                   // the xref table for this PDF file
65  Object *elems;                // array of elements
66  int size;                     // size of <elems> array
67  int length;                   // number of elements in array
68  int ref;                      // reference count
69};
70
71#endif
Note: See TracBrowser for help on using the repository browser.