COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Private Attributes | List of all members
TaggedObject Class Reference

Manages tags. More...

#include <TaggedObject.hpp>

Inherited by Component, and Option.

Public Member Functions

 TaggedObject ()
 Constructor. More...
 
bool has_tag (const std::string &tag) const
 
void add_tag (const std::string &tag)
 
std::vector< std::string > get_tags () const
 
void remove_tag (const std::string &tag)
 

Private Attributes

std::string m_tags
 

Detailed Description

Manages tags.

Definition at line 19 of file TaggedObject.hpp.

Constructor & Destructor Documentation

Constructor.

Definition at line 13 of file TaggedObject.cpp.

Member Function Documentation

void add_tag ( const std::string &  tag)

add tag to this component

Parameters
tagto add

Definition at line 20 of file TaggedObject.cpp.

std::vector< std::string > get_tags ( ) const
Returns
tags in a vector

Definition at line 28 of file TaggedObject.cpp.

bool has_tag ( const std::string &  tag) const

Check if this component has a given tag assigned

Parameters
tagto check
Returns
if has it or not

Definition at line 44 of file TaggedObject.cpp.

void remove_tag ( const std::string &  tag)

removes tag

Parameters
tagto remove

Definition at line 59 of file TaggedObject.cpp.

Member Data Documentation

std::string m_tags
private

Definition at line 43 of file TaggedObject.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin