blob: eb8175e307f26bc9735bdd1f2f7f00dbb63c6fff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// file : odb/sql-token.ixx
// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
// license : GNU GPL v3; see accompanying LICENSE file
inline sql_token::token_type sql_token::
type () const
{
return type_;
}
inline std::string const& sql_token::
identifier () const
{
return str_;
}
inline sql_token::punctuation_type sql_token::
punctuation () const
{
return type_ == t_punctuation ? punctuation_ : p_invalid;
}
inline std::string const& sql_token::
literal () const
{
return str_;
}
inline sql_token::
sql_token ()
: type_ (t_eos)
{
}
inline sql_token::
sql_token (punctuation_type p)
: type_ (t_punctuation), punctuation_ (p)
{
}
inline sql_token::
sql_token (token_type t, std::string const& s)
: type_ (t), str_ (s)
{
}
|