VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfNavigation
navSectorName.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2017 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrfNavigation/vrfNavigationDefines.h
>
12
#include <vlutil/vlString.h>
13
14
enum
DtNavSectorDataType
15
{
16
UnknownNavDataType
,
17
NavDataType
,
18
TransitionPointType
,
19
CoverPointType
,
20
NavEdgeType
21
};
22
24
class
DT_DLL_vrfNavigation
DtNavSectorName
25
{
26
public
:
27
30
DtNavSectorName
(
const
DtNavSectorName
& other);
31
DtNavSectorName
(
const
DtString
& fullName);
32
DtNavSectorName
(
const
DtString
& profile,
int
x,
int
y,
DtNavSectorDataType
navDataType,
33
const
DtString
& randomId);
34
DtNavSectorName
(
const
DtString
& profile,
DtNavSectorDataType
navDataType,
const
DtString
& randomId);
35
36
38
const
DtString
& fullName()
const
;
39
41
const
DtString
& baseName()
const
;
42
44
const
DtString
& profile()
const
;
45
47
void
setProfile(
const
DtString
& prof);
48
50
int
x()
const
;
51
53
int
y()
const
;
54
56
void
setCoordinates(
int
x,
int
y);
57
59
DtNavSectorDataType
navDataType()
const
;
60
62
void
setNavDataType(
DtNavSectorDataType
dataType);
63
65
const
DtString
& randomId()
const
;
66
68
void
setRandomId(
const
DtString
& rId);
69
71
static
DtString
generateRandomId(
unsigned
length = 4);
72
75
virtual
bool
operator<(
const
DtNavSectorName
& rhs)
const
;
76
virtual
bool
operator>
(
const
DtNavSectorName
& rhs)
const
;
77
virtual
bool
operator<=(
const
DtNavSectorName
& rhs)
const
;
78
virtual
bool
operator>=(
const
DtNavSectorName
& rhs)
const
;
79
virtual
bool
operator==
(
const
DtNavSectorName
& rhs)
const
;
80
virtual
bool
operator!=
(
const
DtNavSectorName
& rhs)
const
;
82
85
static
DtString
navDataTypeToString(
DtNavSectorDataType
& dt);
86
static
DtNavSectorDataType
navDataTypeFromString(
const
DtString
& dtStr);
88
89
protected
:
90
92
void
assembleFullName()
const
;
93
95
void
parseFullName()
const
;
96
100
mutable
DtString
myFullName
;
101
mutable
DtString
myBaseName
;
102
mutable
DtString
myProfile
;
103
mutable
int
myX
;
104
mutable
int
myY
;
105
mutable
DtNavSectorDataType
myNavDataType
;
106
mutable
DtString
myRandomId
;
107
};
108
109
110
DT_DLL_vrfNavigation
std::ostream&
operator<<
(std::ostream&,
const
DtNavSectorName
&);
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)