KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
d_type.h
Go to the documentation of this file.
1 /* =========================================================================== *
2  |
3  | Copyright (c) 1994-2011 by Kobus Barnard (author)
4  |
5  | Personal and educational use of this code is granted, provided that this
6  | header is kept intact, and that the authorship is not misrepresented, that
7  | its use is acknowledged in publications, and relevant papers are cited.
8  |
9  | For other use contact the author (kobus AT cs DOT arizona DOT edu).
10  |
11  | Please note that the code in this file has not necessarily been adequately
12  | tested. Naturally, there is no guarantee of performance, support, or fitness
13  | for any particular task. Nonetheless, I am interested in hearing about
14  | problems that you encounter.
15  |
16  | Author: Kyle Simek, Jinyan Guan
17  * =========================================================================== */
18 
19 /* $Id: d_type.h 14240 2013-04-11 08:13:35Z jguan1 $ */
20 
21 #ifndef KJB_D_TYPE_H
22 #define KJB_D_TYPE_H
23 
24 #include <string>
25 #include <vector>
26 #include <istream>
27 #include <ostream>
28 
29 namespace kjb {
30 
36 // To add a new type, add entries to detection_type, and detection_type_map;
40 
42 std::vector<std::string> get_all_detection_type_names();
43 
45 const std::string& get_detection_type_name(Detection_type type);
46 
48 Detection_type get_detection_type(const std::string& name);
49 
51 std::ostream& operator<<(std::ostream& ost, Detection_type type);
52 
54 std::istream& operator>>(std::istream& ist, Detection_type& type);
55 
56 } // namespace kjb
57 
58 #endif
Definition: d_type.h:39
const std::string & get_detection_type_name(Detection_type type)
Get the name of a detection type.
Definition: d_type.cpp:73
Definition: d_type.h:37
Detection_type get_detection_type(const std::string &name)
Get the type of a detection name.
Definition: d_type.cpp:66
std::istream & operator>>(std::istream &ist, Detection_type &type)
Stream in an detection.
Definition: d_type.cpp:91
Definition: d_type.h:38
Definition: d_type.h:39
std::ofstream & operator<<(std::ofstream &out, const Quaternion &q)
Definition: turntable_camera.cpp:77
Definition: d_type.h:37
Definition: d_type.h:38
std::vector< std::string > get_all_detection_type_names()
Get all types.
Definition: d_type.cpp:50
Definition: d_type.h:37
Detection_type
Definition: d_type.h:37
Definition: d_type.h:39