summaryrefslogtreecommitdiff
path: root/lyt/binaryfilesection.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2010-10-07 15:56:13 +0200
committerTreeki <treeki@gmail.com>2010-10-07 15:56:13 +0200
commit5f6dad55d75cbe146ff7fefc899a02ccd39078ba (patch)
tree0822df14cc6d2c0329810c9ae7b4a4a638fe82b1 /lyt/binaryfilesection.h
downloadLayoutStudio-5f6dad55d75cbe146ff7fefc899a02ccd39078ba.tar.gz
LayoutStudio-5f6dad55d75cbe146ff7fefc899a02ccd39078ba.zip
initial commit -- everything compiles except for material.cpp. the material system still needs quite a bit of work; this will come in due time
Diffstat (limited to 'lyt/binaryfilesection.h')
-rw-r--r--lyt/binaryfilesection.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/lyt/binaryfilesection.h b/lyt/binaryfilesection.h
new file mode 100644
index 0000000..0d6c4f7
--- /dev/null
+++ b/lyt/binaryfilesection.h
@@ -0,0 +1,23 @@
+#ifndef LYTBINARYFILESECTION_H
+#define LYTBINARYFILESECTION_H
+
+#include <QtCore/QDataStream>
+
+#include "common.h"
+
+class LYTBinaryFileSection {
+public:
+ LYTBinaryFileSection();
+
+ Magic magic;
+ QByteArray data;
+
+ void writeToDataStream(QDataStream &out);
+ void readFromDataStream(QDataStream &in);
+
+ int writtenSize();
+};
+
+
+
+#endif // LYTBINARYFILESECTION_H