fipa_acl  1.4
Classes | Public Types | Public Member Functions | List of all members
convertToStringImpl Struct Reference

#include <grammar_common.h>

Classes

struct  result
 

Public Types

typedef std::string result_type
 

Public Member Functions

template<typename T >
result_type operator() (T arg) const
 
result_type operator() (fipa::acl::ByteSequence arg) const
 

Detailed Description

Convert types to strings

Definition at line 387 of file grammar_common.h.

Member Typedef Documentation

typedef std::string convertToStringImpl::result_type

Definition at line 389 of file grammar_common.h.

Member Function Documentation

template<typename T >
result_type convertToStringImpl::operator() ( arg) const
inline

Definition at line 399 of file grammar_common.h.

400  {
401  return std::string(arg.begin(), arg.end());
402  }
result_type convertToStringImpl::operator() ( fipa::acl::ByteSequence  arg) const
inline

Definition at line 404 of file grammar_common.h.

405  {
406  // TODO: (optional) perform some encoding stuff here
407  // using arg.encoding
408  return arg.toRawDataString();
409  }
std::string toRawDataString() const

The documentation for this struct was generated from the following file: