g4tools  5.4.0
Public Member Functions | List of all members
tools::sg::field_desc_opts Class Reference
Inheritance diagram for tools::sg::field_desc_opts:
Inheritance graph
[legend]
Collaboration diagram for tools::sg::field_desc_opts:
Collaboration graph
[legend]

Public Member Functions

 field_desc_opts (const std::string &a_name, const std::string &a_class, offset_t a_offset, bool a_editable, size_t a_num,...)
 
virtual ~field_desc_opts ()
 
 field_desc_opts (const field_desc_opts &a_from)
 
field_desc_optsoperator= (const field_desc_opts &a_from)
 
- Public Member Functions inherited from tools::sg::field_desc
 field_desc ()
 
 field_desc (const std::string &a_name, const std::string &a_class, offset_t a_offset, bool a_editable)
 
virtual ~field_desc ()
 
 field_desc (const field_desc &a_from)
 
field_descoperator= (const field_desc &a_from)
 
const std::string & name () const
 
const std::string & cls () const
 
offset_t offset () const
 
void add_enum (const std::string &a_key, int a_value)
 
const std::vector< enum_t > & enums () const
 
void add_opt (const std::string &a_value)
 
const std::vector< std::string > & opts () const
 
bool editable () const
 

Additional Inherited Members

- Public Types inherited from tools::sg::field_desc
typedef ptrdiff_t offset_t
 
typedef std::pair< std::string, int > enum_t
 
- Protected Attributes inherited from tools::sg::field_desc
std::string m_name
 
std::string m_class
 
offset_t m_offset
 
bool m_editable
 
std::vector< enum_tm_enums
 
std::vector< std::string > m_opts
 

Detailed Description

Definition at line 120 of file field_desc.

Constructor & Destructor Documentation

◆ field_desc_opts() [1/2]

tools::sg::field_desc_opts::field_desc_opts ( const std::string &  a_name,
const std::string &  a_class,
offset_t  a_offset,
bool  a_editable,
size_t  a_num,
  ... 
)
inline

Definition at line 123 of file field_desc.

124  :parent(a_name,a_class,a_offset,a_editable)
125  {
126  va_list args;
127  va_start(args,a_num);
128  for(size_t index=0;index<a_num;index++) {
129  char* _value = va_arg(args,char*);
130  m_opts.push_back(_value);
131  }
132  va_end(args);
133  }

◆ ~field_desc_opts()

virtual tools::sg::field_desc_opts::~field_desc_opts ( )
inlinevirtual

Definition at line 134 of file field_desc.

134 {}

◆ field_desc_opts() [2/2]

tools::sg::field_desc_opts::field_desc_opts ( const field_desc_opts a_from)
inline

Definition at line 136 of file field_desc.

136 :parent(a_from) {}

Member Function Documentation

◆ operator=()

field_desc_opts& tools::sg::field_desc_opts::operator= ( const field_desc_opts a_from)
inline

Definition at line 137 of file field_desc.

137 {parent::operator=(a_from);return *this;}

The documentation for this class was generated from the following file:
tools::sg::field_desc::operator=
field_desc & operator=(const field_desc &a_from)
Definition: field_desc:61
tools::sg::field_desc::m_opts
std::vector< std::string > m_opts
Definition: field_desc:89