#ifndef T_CONTAINER_H | |
#define T_CONTAINER_H | |
#include "t_type.h" | |
class t_container : public t_type { | |
public: | |
t_container() : | |
cpp_name_(), | |
has_cpp_name_(false) {} | |
virtual ~t_container() {} | |
void set_cpp_name(std::string cpp_name) { | |
cpp_name_ = cpp_name; | |
has_cpp_name_ = true; | |
} | |
bool has_cpp_name() { | |
return has_cpp_name_; | |
} | |
std::string get_cpp_name() { | |
return cpp_name_; | |
} | |
bool is_container() const { | |
return true; | |
} | |
private: | |
std::string cpp_name_; | |
bool has_cpp_name_; | |
}; | |
#endif |