Column.cc 375 B

1234567891011121314151617181920212223242526272829
  1. #include "Orm/Column.h"
  2. namespace Egametang {
  3. Column::Column(const std::string name): columnStr(name)
  4. {
  5. }
  6. Column::~Column()
  7. {
  8. }
  9. Column& Column::operator()(std::string& name)
  10. {
  11. columnStr = columnStr + ", " + name;
  12. return *this;
  13. }
  14. bool Column::Empty()
  15. {
  16. return columnStr.empty();
  17. }
  18. std::string Column::ToString() const
  19. {
  20. return columnStr;
  21. }
  22. } // namespace Egametang