Siena Fast Forwarding Documentation (v. 2.0.1)
Public Member Functions | List of all members
siena::Tag Class Referenceabstract

interface of a generic tag in the Siena data model. More...

#include <tags.h>

Inheritance diagram for siena::Tag:
Inheritance graph
[legend]

Public Member Functions

virtual ~Tag ()
 virtual destructor.
 
virtual std::string to_string () const =0
 string value of this tag. More...
 
virtual std::string & to_string (std::string &) const =0
 string value of this tag. More...
 

Detailed Description

interface of a generic tag in the Siena data model.

A tag is essentially a reference to the value of the tag, which is simply a string. This very basic interface defines what amounts to an immutable tag.

Member Function Documentation

virtual std::string siena::Tag::to_string ( ) const
pure virtual

string value of this tag.

Returns
this tag expressed as a standard string object.
virtual std::string& siena::Tag::to_string ( std::string &  ) const
pure virtual

string value of this tag.

Assigns to the string value of this tag to the given standard string object.