gwnavruntime/navdata/generateddataindex.h Source File

generateddataindex.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
14 
15 
16 namespace Kaim
17 {
18 
19 
25 class GeneratedDataIndex : public RefCountBaseNTS<GeneratedDataIndex, MemStat_Data_Other>
26 {
28 
29 public:
30  enum DataIndexLoadMode
31  {
32  LoadDataIndex_NavData = 1 << 0,
33  LoadDataIndex_AbstractData = 1 << 1,
34  LoadDataIndex_ColData = 1 << 2,
35 
36  LoadDataIndex_All = KyUInt32MAXVAL,
37  };
38 
39 public:
41 
42  void Clear();
43 
44  KyResult LoadDataIndex(const char* filename, FileOpenerBase* fileOpener = nullptr, DataIndexLoadMode loadMode = LoadDataIndex_All);
45 
46  KyResult LoadDataIndex(const BlobAggregate& blobAggregate, DataIndexLoadMode loadMode = LoadDataIndex_All);
47 
48  KyResult Save(const char* absoluteFilename, FileOpenerBase* fileOpener = nullptr);
49 
50 public:
51  Ptr< BlobHandler<NavDataIndex> > m_navDataIndexHandler;
52  Ptr< BlobHandler<AbstractDataIndex> > m_abstractDataIndexHandler;
53  Ptr< BlobHandler<ColDataIndex> > m_colDataIndexHandler;
54 
55  DatabaseDescriptor m_databaseDescriptor;
56 };
57 
58 // previous class name was DatabaseDescriptorIndex (which was confusing)
59 // here is a typedef to keep backward compatibility
61 
62 }
63 
Base interface for a class that opens a file on disk.
Definition: fileopener.h:30
File that register files that were generated the Generator m_navDataIndexHandler for NavMeshes...
Definition: generateddataindex.h:25
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
Easy to write/read version of DatabaseDescriptorBlob.
Definition: databasedescriptor.h:34
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
#define KyUInt32MAXVAL
KyUInt32 max value
Definition: types.h:68