Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

WP3VariableLengthGroup.h

Go to the documentation of this file.
00001 /* libwpd
00002  * Copyright (C) 2004 Marc Maurer (j.m.maurer@student.utwente.nl)
00003  *  
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00017  *
00018  * For further information visit http://libwpd.sourceforge.net
00019  */
00020 
00021 /* "This product is not manufactured, approved, or supported by 
00022  * Corel Corporation or Corel Corporation Limited."
00023  */
00024 
00025 #ifndef WP3VARIABLELENGTHGROUP_H
00026 #define WP3VARIABLELENGTHGROUP_H
00027 
00028 #include "WP3Part.h"
00029 
00030 class WP3VariableLengthGroup : public WP3Part
00031 {
00032  public:
00033         WP3VariableLengthGroup(); // WP3VariableLengthGroup should _never_ be constructed, only its inherited classes
00034         virtual ~WP3VariableLengthGroup() {}
00035         
00036         static WP3VariableLengthGroup * constructVariableLengthGroup(WPXInputStream *input, uint8_t group);
00037 
00038  protected:
00039         void _read(WPXInputStream *input);
00040         virtual void _readContents(WPXInputStream *input) {} // we don't always need more information than that provided generically
00041 
00042         const uint8_t getSubGroup() const { return m_subGroup; }
00043 
00044  private:
00045         uint8_t m_subGroup;
00046         uint16_t m_size; 
00047 };
00048 
00049 #endif /* WP3VARIABLELENGTHGROUP_H */

Generated on Mon Mar 12 10:11:47 2007 for libwpd by doxygen 1.4.2