Go to the documentation of this file.
28 #ifndef MYSQLPP_FIELD_NAMES_H
29 #define MYSQLPP_FIELD_NAMES_H
36 #if !defined(DOXYGEN_IGNORE)
38 class MYSQLPP_EXPORT ResultBase;
42 class FieldNames :
public std::vector<std::string>
50 std::vector<std::string>()
52 assign(other.begin(), other.end());
57 std::vector<std::string>()
65 std::vector<std::string>(i)
79 insert(begin(), i,
"");
110 unsigned int operator [](
const std::string& s)
const;
FieldNames()
Default constructor.
Definition: field_names.h:90
Holds a list of SQL field names.
Definition: field_names.h:64
Base class for StoreQueryResult and UseQueryResult.
Definition: result.h:132
const Fields & fields() const
Get the underlying Fields structure.
Definition: result.h:150
void str_to_lwr(std::string &s)
Lowercase a C++ string in place.
Definition: utility.cpp:76
Declares a class to hold a list of field names.
FieldNames & operator=(const ResultBase *res)
Initializes the field list from a result set.
Definition: field_names.h:114
Declares classes for holding information about SQL query results.
size_t num_fields() const
Returns the number of fields in this result set.
Definition: result.h:175
std::string & operator[](int i)
Get the name of a field given its index.
Definition: field_names.h:128
This file includes top-level definitions for use both internal to the library, and outside it....