Definition at line 129 of file leaf.
◆ leaf_string_ref() [1/2]
tools::wroot::leaf_string_ref::leaf_string_ref |
( |
std::ostream & |
a_out, |
|
|
const std::string & |
a_name, |
|
|
const std::string & |
a_ref |
|
) |
| |
|
inline |
Definition at line 165 of file leaf.
166 :parent(a_out,a_name,a_name)
◆ ~leaf_string_ref()
virtual tools::wroot::leaf_string_ref::~leaf_string_ref |
( |
| ) |
|
|
inlinevirtual |
Definition at line 172 of file leaf.
◆ leaf_string_ref() [2/2]
tools::wroot::leaf_string_ref::leaf_string_ref |
( |
const leaf_string_ref & |
a_from | ) |
|
|
inlineprotected |
Definition at line 174 of file leaf.
174 :ibo(a_from),parent(a_from),
m_ref(a_from.m_ref){}
◆ cast()
virtual void* tools::wroot::leaf_string_ref::cast |
( |
cid |
a_class | ) |
const |
|
inlinevirtual |
◆ fill_buffer()
virtual bool tools::wroot::leaf_string_ref::fill_buffer |
( |
buffer & |
a_buffer | ) |
const |
|
inlinevirtual |
Implements tools::wroot::base_leaf.
Definition at line 150 of file leaf.
152 size_t len = ::strlen(
m_ref.c_str());
153 if(len >= (
size_t)
m_max)
self.m_max = int(len)+1;
156 if(!a_buffer.write<
unsigned char>((
unsigned char)len))
return false;
158 if(!a_buffer.write<
unsigned char>(255))
return false;
161 if(len)
if(!a_buffer.write_fast_array(
m_ref.c_str(),
uint32(len)))
return false;
◆ get_max()
int tools::wroot::leaf_string_ref::get_max |
( |
| ) |
const |
|
inline |
Definition at line 177 of file leaf.
◆ id_class()
static cid tools::wroot::leaf_string_ref::id_class |
( |
| ) |
|
|
inlinestatic |
Definition at line 132 of file leaf.
◆ id_cls()
virtual cid tools::wroot::leaf_string_ref::id_cls |
( |
| ) |
const |
|
inlinevirtual |
◆ operator=()
Definition at line 175 of file leaf.
◆ set_max()
void tools::wroot::leaf_string_ref::set_max |
( |
int |
a_value | ) |
|
|
inline |
Definition at line 178 of file leaf.
◆ store_cls()
virtual const std::string& tools::wroot::leaf_string_ref::store_cls |
( |
| ) |
const |
|
inlinevirtual |
◆ stream()
virtual bool tools::wroot::leaf_string_ref::stream |
( |
buffer & |
a_buffer | ) |
const |
|
inlinevirtual |
Reimplemented from tools::wroot::base_leaf.
Definition at line 140 of file leaf.
142 if(!a_buffer.write_version(1,c))
return false;
144 if(!a_buffer.write(
m_min))
return false;
145 if(!a_buffer.write(
m_max))
return false;
146 if(!a_buffer.set_byte_count(c))
return false;
◆ variable() [1/2]
std::string& tools::wroot::leaf_string_ref::variable |
( |
| ) |
|
|
inline |
Definition at line 181 of file leaf.
181 {
return const_cast<std::string&
>(
m_ref);}
◆ variable() [2/2]
const std::string& tools::wroot::leaf_string_ref::variable |
( |
| ) |
const |
|
inline |
Definition at line 180 of file leaf.
◆ m_max
int tools::wroot::leaf_string_ref::m_max |
|
protected |
Definition at line 184 of file leaf.
◆ m_min
int tools::wroot::leaf_string_ref::m_min |
|
protected |
Definition at line 183 of file leaf.
◆ m_ref
const std::string& tools::wroot::leaf_string_ref::m_ref |
|
protected |
Definition at line 185 of file leaf.
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/wroot/leaf