blob: 3b9f132732158910a3c34d8f9c0a40ee13b412c9 [file] [log] [blame]
Mark Slee4f8da1d2006-10-12 02:47:27 +00001#ifndef T_CONTAINER_H
2#define T_CONTAINER_H
3
4#include "t_type.h"
5
6class t_container : public t_type {
7 public:
8 t_container() :
9 cpp_name_(),
10 has_cpp_name_(false) {}
11
12 virtual ~t_container() {}
13
14 void set_cpp_name(std::string cpp_name) {
15 cpp_name_ = cpp_name;
16 has_cpp_name_ = true;
17 }
18
19 bool has_cpp_name() {
20 return has_cpp_name_;
21 }
22
23 std::string get_cpp_name() {
24 return cpp_name_;
25 }
26
27 bool is_container() const {
28 return true;
29 }
30
31 private:
32 std::string cpp_name_;
33 bool has_cpp_name_;
34
35};
36
37#endif