VTFLib
A C and C++ API that, with a few simple functions, can open and save .vtf and .vmt files.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Writer.h
1 /*
2  * VTFLib
3  * Copyright (C) 2005-2010 Neil Jedrzejewski & Ryan Gregg
4 
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later
9  * version.
10  */
11 
12 #ifndef VTFLIB_WRITER_H
13 #define VTFLIB_WRITER_H
14 
15 #include "stdafx.h"
16 
17 namespace VTFLib
18 {
19  namespace IO
20  {
21  namespace Writers
22  {
23  class IWriter
24  {
25  public:
26  virtual ~IWriter() {}
27  virtual vlBool Opened() const = 0;
28 
29  virtual vlBool Open() = 0;
30  virtual vlVoid Close() = 0;
31 
32  virtual vlSSize GetStreamSize() const = 0;
33  virtual vlSSize GetStreamPointer() const = 0;
34 
35  virtual vlSSize Seek(vlOffset lOffset, VLSeekMode uiMode) = 0;
36 
37  virtual vlBool Write(vlChar cChar) = 0;
38  virtual vlSize Write(vlVoid *vData, vlSize uiBytes) = 0;
39  };
40  }
41  }
42 }
43 
44 #endif
char vlChar
Single signed character.
Definition: stdafx.h:51
Application framework header plus VTFLib custom data types.
void vlVoid
Void value.
Definition: stdafx.h:61
unsigned char vlBool
Boolean value 0/1.
Definition: stdafx.h:50