VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
readerWriter
cStringHashKey.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
6
#pragma once
7
8
#include "
readerWriter/readerWriterDefines.h
"
9
#include <vlutil/vlString.h>
10
#include <vlutil/vlHashKeys.h>
11
#include <vlutil/vlHashlist.h>
12
13
14
//
15
// The DtCStringHashKey class is a string hash key not based upon DtString.
16
// This is useful for longterm storage because this may consume less memory
17
// as DtStrings always take 64 bytes.
18
//
19
class
DT_DLL_readerWriter
DtCStringHashKey
:
public
DtBaseHashKey
20
{
21
public
:
22
23
// empty constructor -- generally should not be called
24
DtCStringHashKey
();
25
26
// default constructor
27
DtCStringHashKey
(
const
DtString
& str);
28
29
// alternate constructor
30
DtCStringHashKey
(
const
char
* str);
31
32
// destructor
33
virtual
~
DtCStringHashKey
();
34
35
// copy constructor
36
DtCStringHashKey
(
const
DtCStringHashKey
& orig);
37
38
// assignment operator
39
DtCStringHashKey
& operator=(
const
DtCStringHashKey
& orig);
40
41
// equality operator
42
virtual
bool
operator==
(
const
DtBaseHashKey
& other)
const
;
43
44
// Make a copy of this hash key.
45
virtual
DtBaseHashKey
* clone()
const
;
46
47
// Get hash key value.
48
virtual
const
char
* value()
const
;
49
virtual
const
DtString
stringRep()
const
;
50
51
// Set hash key value
52
virtual
void
setValue(
const
char
* val);
53
54
protected
:
55
56
// Compute the hashed value for this key.
57
virtual
DtU64 computeHashValue();
58
59
protected
:
60
61
char
*
myString
;
62
};
63
DT_DLL_readerWriter
#define DT_DLL_readerWriter
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition:
readerWriterDefines.h:34
DtBaseHashKey
operator==
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
readerWriterDefines.h
DtCStringHashKey::myString
char * myString
Definition:
cStringHashKey.h:61
DtCStringHashKey
Definition:
cStringHashKey.h:19
DtString
Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)