SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
smtk
resource
query
Query.h
1
//=========================================================================
2
// Copyright (c) Kitware, Inc.
3
// All rights reserved.
4
// See LICENSE.txt for details.
5
6
// This software is distributed WITHOUT ANY WARRANTY; without even
7
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8
// PURPOSE. See the above copyright notice for more information.
9
//=========================================================================
10
#ifndef smtk_geometry_Query_h
11
#define smtk_geometry_Query_h
12
13
#include "smtk/CoreExports.h"
14
15
#include "smtk/common/UUID.h"
16
17
#include <limits>
18
19
namespace
smtk
20
{
21
namespace
resource
22
{
23
namespace
query
24
{
25
26
class
Metadata;
27
29
class
SMTKCORE_EXPORT
Query
30
{
31
friend
class
Metadata
;
32
33
public
:
34
static
std::size_t typeIndex();
35
virtual
~
Query
() =
default
;
36
37
protected
:
38
static
int
numberOfGenerationsFromType(
const
std::size_t index)
39
{
40
return
(Query::typeIndex() == index ? 0 : std::numeric_limits<int>::lowest());
41
}
42
};
43
}
// namespace query
44
}
// namespace resource
45
}
// namespace smtk
46
47
#endif
smtk
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition:
doc.h:33
smtk::resource::query::Query
A base class for Query functors.
Definition:
Query.h:29
smtk::resource::query::Metadata
A structure to hold type and construction information about a Query type.
Definition:
Metadata.h:28
Generated by
1.8.17