Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Column.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file basic/database/schema_generator/Column.hh
11 /// @brief Column class for the schema generator framework
12 /// @author Tim Jacobs
13 
14 #ifndef INCLUDED_basic_database_schema_generator_Column_HH
15 #define INCLUDED_basic_database_schema_generator_Column_HH
16 
17 // Unit Headers
18 #include <iosfwd> // for string
21 #include <basic/database/schema_generator/DbDataType.fwd.hh> // for DbData...
22 #include <platform/types.hh> // for Size
23 #include <utility/pointer/ReferenceCount.hh> // for Refere...
24 
25 namespace basic {
26 namespace database {
27 namespace schema_generator {
28 
30 public:
31 
32  Column(std::string name, DbDataTypeOP type);
33 
34  Column(std::string name, DbDataTypeOP type, bool allow_null);
35 
36  Column(std::string name, DbDataTypeOP type, bool allow_null, bool auto_increment, platform::Size auto_increment_base = 0);
37 
38  Column(Column const & src);
39 
40  virtual ~Column();
41 
42  std::string name() const;
43 
44  bool auto_increment() const;
45  Size auto_increment_base() const;
46 
47  std::string print(utility::sql_database::sessionOP db_session) const;
48 
49  bool operator==(const Column &other) const;
50 
51 private:
52 
53  std::string name_;
58 };
59 
60 } // schema_generator
61 } // namespace database
62 } // namespace utility
63 
64 #endif
ReferenceCount base class – dispatch class.
std::string print(utility::sql_database::sessionOP db_session) const
Definition: Column.cc:75
Base class for reference-counted polymorphic classes.
tuple database
bool operator==(const Column &other) const
Definition: Column.cc:103
forward hearder for the Column class in the schema generator framework
Column(std::string name, DbDataTypeOP type)
Definition: Column.cc:28
std::size_t Size
Definition: types.hh:37
pointer::shared_ptr< session > sessionOP
utility::pointer::shared_ptr< DbDataType > DbDataTypeOP