gwnavgeneration/input/clientinputdescriptor.h Source File
Go to the documentation of this file.
9 #ifndef GwNavGen_ClientInputDescriptorBlob_H
10 #define GwNavGen_ClientInputDescriptorBlob_H
23 class ClientInputDescriptorBlob
27 KY_ROOT_BLOB_CLASS(Generator, ClientInputDescriptorBlob, 0)
30 ClientInputDescriptorBlob() {}
32 BlobArray<char> m_clientInputFilename;
36 SwapEndianness(e,
self.m_clientInputFilename);
40 struct ClientInputDescriptor
43 ClientInputDescriptor() {}
45 ClientInputDescriptor(
const char* filename)
46 : m_clientInputFilename(filename) {}
48 void Init(
const ClientInputDescriptorBlob& blob)
50 m_clientInputFilename = blob.m_clientInputFilename.GetValues();
54 String m_clientInputFilename;
58 class ClientInputDescriptorBlobBuilder :
public BaseBlobBuilder<ClientInputDescriptorBlob>
61 ClientInputDescriptorBlobBuilder(
const ClientInputDescriptor& information) : m_info(&information) {}
64 virtual void DoBuild()
66 BLOB_STRING(
m_blob->m_clientInputFilename, m_info->m_clientInputFilename.ToCStr());
69 const ClientInputDescriptor* m_info;
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
ClientInputDescriptorBlob * m_blob
The blob maintained by this builder. Only modify using the macros listed under DoBuild().
Definition: baseblobbuilder.h:117
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
#define BLOB_STRING(str, src)
Use this macro only in implementations of BaseBlobBuilder::DoBuild().
Definition: baseblobbuilder.h:179