$search

rxtools::RosoutTextFilter Class Reference

#include <rosout_text_filter.h>

Inheritance diagram for rxtools::RosoutTextFilter:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Field {
  Message = 1<<0, Node = 1<<1, Location = 1<<2, Topics = 1<<3,
  Default = Message | Node | Location | Topics
}
enum  FilterType { Include, Exclude }

Public Member Functions

void addField (Field field)
uint32_t getFieldMask ()
FilterType getFilterType ()
const std::string & getText ()
bool getUseRegex ()
void removeField (Field field)
 RosoutTextFilter ()
void setFieldMask (uint32_t field_mask)
void setFilterType (FilterType type)
void setText (const std::string &text)
void setUseRegex (bool use)

Protected Member Functions

virtual bool doFilter (const rosgraph_msgs::LogConstPtr &) const
virtual bool doIsValid () const

Private Member Functions

bool filterString (const std::string &str) const
bool filterVector (const std::vector< std::string > &strs) const

Private Attributes

uint32_t field_mask_
boost::regex regex_
bool regex_valid_
std::string text_
FilterType type_
bool use_regex_

Detailed Description

Definition at line 45 of file rosout_text_filter.h.


Member Enumeration Documentation

Enumerator:
Message 
Node 
Location 
Topics 
Default 

Definition at line 50 of file rosout_text_filter.h.

Enumerator:
Include 
Exclude 

Definition at line 76 of file rosout_text_filter.h.


Constructor & Destructor Documentation

rxtools::RosoutTextFilter::RosoutTextFilter (  ) 

Definition at line 84 of file rosout_text_filter.cpp.


Member Function Documentation

void rxtools::RosoutTextFilter::addField ( Field  field  )  [inline]

Definition at line 60 of file rosout_text_filter.h.

bool rxtools::RosoutTextFilter::doFilter ( const rosgraph_msgs::LogConstPtr &  msg  )  const [protected, virtual]

Implements rxtools::RosoutFilter.

Definition at line 173 of file rosout_text_filter.cpp.

bool rxtools::RosoutTextFilter::doIsValid (  )  const [protected, virtual]

Implements rxtools::RosoutFilter.

Definition at line 210 of file rosout_text_filter.cpp.

bool rxtools::RosoutTextFilter::filterString ( const std::string &  str  )  const [private]

Definition at line 138 of file rosout_text_filter.cpp.

bool rxtools::RosoutTextFilter::filterVector ( const std::vector< std::string > &  strs  )  const [private]

Definition at line 158 of file rosout_text_filter.cpp.

uint32_t rxtools::RosoutTextFilter::getFieldMask (  )  [inline]

Definition at line 59 of file rosout_text_filter.h.

FilterType rxtools::RosoutTextFilter::getFilterType (  )  [inline]

Definition at line 82 of file rosout_text_filter.h.

const std::string& rxtools::RosoutTextFilter::getText (  )  [inline]

Definition at line 71 of file rosout_text_filter.h.

bool rxtools::RosoutTextFilter::getUseRegex (  )  [inline]

Definition at line 74 of file rosout_text_filter.h.

void rxtools::RosoutTextFilter::removeField ( Field  field  )  [inline]

Definition at line 65 of file rosout_text_filter.h.

void rxtools::RosoutTextFilter::setFieldMask ( uint32_t  field_mask  ) 

Definition at line 93 of file rosout_text_filter.cpp.

void rxtools::RosoutTextFilter::setFilterType ( FilterType  type  ) 

Definition at line 131 of file rosout_text_filter.cpp.

void rxtools::RosoutTextFilter::setText ( const std::string &  text  ) 

Definition at line 100 of file rosout_text_filter.cpp.

void rxtools::RosoutTextFilter::setUseRegex ( bool  use  ) 

Definition at line 123 of file rosout_text_filter.cpp.


Member Data Documentation

Definition at line 92 of file rosout_text_filter.h.

boost::regex rxtools::RosoutTextFilter::regex_ [private]

Definition at line 97 of file rosout_text_filter.h.

Definition at line 98 of file rosout_text_filter.h.

std::string rxtools::RosoutTextFilter::text_ [private]

Definition at line 93 of file rosout_text_filter.h.

Definition at line 95 of file rosout_text_filter.h.

Definition at line 94 of file rosout_text_filter.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rxtools
Author(s): Josh Faust, Rob Wheeler, Ken Conley
autogenerated on Sat Mar 2 13:31:06 2013