~ubuntu-branches/ubuntu/saucy/libwpd/saucy

« back to all changes in this revision

Viewing changes to src/lib/WP5VariableLengthGroup.h

  • Committer: Package Import Robot
  • Author(s): Rene Engelhard
  • Date: 2011-11-29 23:31:13 UTC
  • mfrom: (1.2.5)
  • Revision ID: package-import@ubuntu.com-20111129233113-xdtwca9h0y6wdxst
Tags: 0.9.4-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
1
2
/* libwpd
2
3
 * Copyright (C) 2003 William Lachance (wrlach@gmail.com)
3
4
 * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
4
5
 * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
5
 
 *  
 
6
 *
6
7
 * This library is free software; you can redistribute it and/or
7
8
 * modify it under the terms of the GNU Lesser General Public
8
9
 * License as published by the Free Software Foundation; either
20
21
 * For further information visit http://libwpd.sourceforge.net
21
22
 */
22
23
 
23
 
/* "This product is not manufactured, approved, or supported by 
 
24
/* "This product is not manufactured, approved, or supported by
24
25
 * Corel Corporation or Corel Corporation Limited."
25
26
 */
26
27
 
41
42
public:
42
43
        WP5VariableLengthGroup(); // WP5VariableLengthGroup should _never_ be constructed, only its inherited classes
43
44
        virtual ~WP5VariableLengthGroup() {}
44
 
        
45
 
        static WP5VariableLengthGroup * constructVariableLengthGroup(WPXInputStream *input, WPXEncryption *encryption, const uint8_t group);
 
45
 
 
46
        static WP5VariableLengthGroup *constructVariableLengthGroup(WPXInputStream *input, WPXEncryption *encryption, const uint8_t group);
46
47
 
47
48
        static bool isGroupConsistent(WPXInputStream *input, WPXEncryption *encryption, const uint8_t group);
48
49
 
49
50
protected:
50
51
        void _read(WPXInputStream *input, WPXEncryption *encryption);
51
 
        virtual void _readContents(WPXInputStream * /* input */, WPXEncryption * /* encryption */) {} // we don't always need more information than that provided generically
 
52
        virtual void _readContents(WPXInputStream * /* input */, WPXEncryption * /* encryption */) {} // we don't always need more information than that provided generically
52
53
 
53
 
        uint8_t getSubGroup() const { return m_subGroup; }
54
 
        uint16_t getSize() const { return m_size; }
 
54
        uint8_t getSubGroup() const
 
55
        {
 
56
                return m_subGroup;
 
57
        }
 
58
        uint16_t getSize() const
 
59
        {
 
60
                return m_size;
 
61
        }
55
62
 
56
63
private:
57
64
        uint8_t m_subGroup;
59
66
};
60
67
 
61
68
#endif /* WP5VARIABLELENGTHGROUP_H */
 
69
/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */