• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • kasten
  • gui
  • io
  • streamencoder
  • viewtext
bytearrayviewtextstreamencoder.h
Go to the documentation of this file.
1 /*
2  This file is part of the Okteta Kasten module, made within the KDE community.
3 
4  Copyright 2007-2008 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef BYTEARRAYVIEWTEXTSTREAMENCODER_H
24 #define BYTEARRAYVIEWTEXTSTREAMENCODER_H
25 
26 // lib
27 #include "abstractbytearraystreamencoder.h"
28 // Okteta gui
29 // #include <offsetformat.h>
30 // Okteta core
31 #include <oktetacore.h>
32 // Qt
33 #include <QtCore/QString>
34 
35 
36 namespace Kasten2
37 {
38 
39 class ByteArrayViewTextStreamEncoderSettings
40 {
41  public:
42  ByteArrayViewTextStreamEncoderSettings();
43  public:
44 // Okteta::OffsetFormat::Format offsetFormat;
45  int codingWidth;
46  int firstLineOffset;
47  int startOffset;
48  int delta;
49  Okteta::ValueCoding valueCoding;
50  QString codecName;
51  QChar undefinedChar;
52  QChar substituteChar;
53  QString separation;
54 // Okteta::CharCodec *CharCodec;
55 // Okteta::OffsetFormat::print printFunction;
56 };
57 
58 // TODO: this could rather be one of the default cop
59 class ByteArrayViewTextStreamEncoder : public AbstractByteArrayStreamEncoder
60 {
61  Q_OBJECT
62 
63  public:
64  ByteArrayViewTextStreamEncoder();
65  virtual ~ByteArrayViewTextStreamEncoder();
66 
67  protected: // AbstractByteArrayStreamEncoder API
68  virtual bool encodeDataToStream( QIODevice* device,
69  const ByteArrayView* byteArrayView,
70  const Okteta::AbstractByteArrayModel* byteArrayModel,
71  const Okteta::AddressRange& range );
72 
73  protected:
74  ByteArrayViewTextStreamEncoderSettings mSettings;
75 };
76 
77 }
78 
79 #endif
Kasten2::ByteArrayViewTextStreamEncoder::ByteArrayViewTextStreamEncoder
ByteArrayViewTextStreamEncoder()
Definition: bytearrayviewtextstreamencoder.cpp:58
Okteta::AbstractByteArrayModel
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
Kasten2::ByteArrayViewTextStreamEncoder::~ByteArrayViewTextStreamEncoder
virtual ~ByteArrayViewTextStreamEncoder()
Definition: bytearrayviewtextstreamencoder.cpp:165
Kasten2::ByteArrayViewTextStreamEncoderSettings::codingWidth
int codingWidth
Definition: bytearrayviewtextstreamencoder.h:45
Kasten2::ByteArrayViewTextStreamEncoderSettings::undefinedChar
QChar undefinedChar
Definition: bytearrayviewtextstreamencoder.h:51
Kasten2::ByteArrayViewTextStreamEncoderSettings::startOffset
int startOffset
Definition: bytearrayviewtextstreamencoder.h:47
Kasten2::ByteArrayViewTextStreamEncoderSettings::codecName
QString codecName
Definition: bytearrayviewtextstreamencoder.h:50
KDE::NumberRange< Address, Size >
Kasten2::ByteArrayViewTextStreamEncoderSettings::substituteChar
QChar substituteChar
Definition: bytearrayviewtextstreamencoder.h:52
Kasten2::ByteArrayViewTextStreamEncoder
Definition: bytearrayviewtextstreamencoder.h:59
Kasten2::AbstractByteArrayStreamEncoder
Definition: abstractbytearraystreamencoder.h:45
oktetacore.h
Kasten2::ByteArrayViewTextStreamEncoder::encodeDataToStream
virtual bool encodeDataToStream(QIODevice *device, const ByteArrayView *byteArrayView, const Okteta::AbstractByteArrayModel *byteArrayModel, const Okteta::AddressRange &range)
Definition: bytearrayviewtextstreamencoder.cpp:63
Kasten2::ByteArrayViewTextStreamEncoderSettings::separation
QString separation
Definition: bytearrayviewtextstreamencoder.h:53
Kasten2::ByteArrayViewTextStreamEncoderSettings::valueCoding
Okteta::ValueCoding valueCoding
Definition: bytearrayviewtextstreamencoder.h:49
Kasten2::ByteArrayViewTextStreamEncoderSettings::firstLineOffset
int firstLineOffset
Definition: bytearrayviewtextstreamencoder.h:46
abstractbytearraystreamencoder.h
Okteta::ValueCoding
ValueCoding
Definition: oktetacore.h:34
Kasten2::ByteArrayViewTextStreamEncoder::mSettings
ByteArrayViewTextStreamEncoderSettings mSettings
Definition: bytearrayviewtextstreamencoder.h:74
Kasten2::ByteArrayViewTextStreamEncoderSettings::delta
int delta
Definition: bytearrayviewtextstreamencoder.h:48
QIODevice
Kasten2::ByteArrayViewTextStreamEncoderSettings
Definition: bytearrayviewtextstreamencoder.h:39
Kasten2::ByteArrayView
Definition: bytearrayview.h:51
Kasten2::ByteArrayViewTextStreamEncoderSettings::ByteArrayViewTextStreamEncoderSettings
ByteArrayViewTextStreamEncoderSettings()
Definition: bytearrayviewtextstreamencoder.cpp:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal