g4tools  5.4.0
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
tools::osc::Annotation Class Reference
Inheritance diagram for tools::osc::Annotation:
Inheritance graph
[legend]
Collaboration diagram for tools::osc::Annotation:
Collaboration graph
[legend]

Public Member Functions

 Annotation ()
 
virtual ~Annotation ()
 
- Public Member Functions inherited from tools::istorable
virtual ~istorable ()
 

Public Attributes

std::vector< Itemm_items
 

Protected Member Functions

virtual void * cast (const std::string &a_class) const
 
virtual const std::string & store_cls () const
 
virtual bool visit (iobj_const_visitor &a_v) const
 

Static Protected Member Functions

static bool s_visit (const istorable &a_o, iobj_const_visitor &a_v)
 

Detailed Description

Definition at line 271 of file osc_streamers.

Constructor & Destructor Documentation

◆ Annotation()

tools::osc::Annotation::Annotation ( )
inline

Definition at line 298 of file osc_streamers.

298 {}

◆ ~Annotation()

virtual tools::osc::Annotation::~Annotation ( )
inlinevirtual

Definition at line 299 of file osc_streamers.

299 {}

Member Function Documentation

◆ cast()

virtual void* tools::osc::Annotation::cast ( const std::string &  a_class) const
inlineprotectedvirtual

Implements tools::istorable.

Definition at line 275 of file osc_streamers.

275  {
276  if(void* p = cmp_cast<Annotation>(this,a_class)) return p;
277  return 0;
278  }

◆ s_visit()

static bool tools::osc::Annotation::s_visit ( const istorable a_o,
iobj_const_visitor a_v 
)
inlinestaticprotected

Definition at line 292 of file osc_streamers.

292  {
293  const Annotation* local = safe_cast<istorable,Annotation>(a_o);
294  if(!local) return false;
295  return local->Annotation::visit(a_v); //IMPORTANT : have Annotation::
296  }

◆ store_cls()

virtual const std::string& tools::osc::Annotation::store_cls ( ) const
inlineprotectedvirtual

Implements tools::istorable.

Definition at line 279 of file osc_streamers.

279 {return s_annotation();}

◆ visit()

virtual bool tools::osc::Annotation::visit ( iobj_const_visitor a_v) const
inlineprotectedvirtual

Implements tools::istorable.

Definition at line 280 of file osc_streamers.

280  {
281  if(!a_v.begin(*this,s_annotation(),Annotation::s_visit)) return false;
282 
283  int version = 1;
284  if(!a_v.visit("fVersion",version)) return false;
285 
286  Vector<Item> v(m_items,s_item());
287  if(!a_v.visit("fItems",v)) return false;
288 
289  if(!a_v.end(*this)) return false;
290  return true;
291  }

Member Data Documentation

◆ m_items

std::vector<Item> tools::osc::Annotation::m_items

Definition at line 304 of file osc_streamers.


The documentation for this class was generated from the following file:
tools::osc::s_annotation
const std::string & s_annotation()
Definition: osc_streamers:28
tools::osc::Annotation::m_items
std::vector< Item > m_items
Definition: osc_streamers:304
tools::osc::Annotation::Annotation
Annotation()
Definition: osc_streamers:298
tools::osc::Annotation::s_visit
static bool s_visit(const istorable &a_o, iobj_const_visitor &a_v)
Definition: osc_streamers:292
tools::version
unsigned int version()
Definition: version:14
tools::osc::s_item
const std::string & s_item()
Definition: osc_streamers:36