ControlHost tag.  
 More...
#include <JTag.hh>
ControlHost tag. 
Definition at line 38 of file JTag.hh.
 
Default constructor. 
Definition at line 43 of file JTag.hh.
 
 
  
  
      
        
          | JNET::JTag::JTag  | 
          ( | 
          const JTag &  | 
          tag | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Copy constructor. 
- Parameters
 - 
  
  
 
Definition at line 53 of file JTag.hh.
void setTag(const JTag &tag)
Set tag. 
 
 
 
 
  
  
      
        
          | JNET::JTag::JTag  | 
          ( | 
          const std::string &  | 
          tag | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 64 of file JTag.hh.
void setTag(const JTag &tag)
Set tag. 
 
 
 
 
  
  
      
        
          | JNET::JTag::JTag  | 
          ( | 
          const JTag_t  | 
          id | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 75 of file JTag.hh.
void setTag(const JTag &tag)
Set tag. 
 
 
 
 
  
  
      
        
          | const JTag& JNET::JTag::getTag  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get tag. 
- Returns
 - tag 
 
Definition at line 86 of file JTag.hh.
   88       return static_cast<const JTag&
>(*this);
 
 
 
 
  
  
      
        
          | JTag& JNET::JTag::getTag  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get tag. 
- Returns
 - tag 
 
Definition at line 97 of file JTag.hh.
   99       return static_cast<JTag&
>(*this);
 
 
 
 
  
  
      
        
          | void JNET::JTag::setTag  | 
          ( | 
          const JTag &  | 
          tag | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set tag. 
- Parameters
 - 
  
  
 
Definition at line 108 of file JTag.hh.
JTag_t getID() const 
Get identifier. 
 
 
 
 
  
  
      
        
          | void JNET::JTag::setTag  | 
          ( | 
          const std::string &  | 
          tag | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set tag. 
This method may throw an exception.
- Parameters
 - 
  
  
 
Definition at line 121 of file JTag.hh.
  123       if (!tag.empty() && tag.size() <= 
TAGSIZE) {
 
  125         char* __p = (
char*) &(this->
id);
 
  129         for ( ; i != tag.size(); ++i) {
 
  139         THROW(JControlHostException, 
"Invalid tag length <" << tag << 
"> " << tag.size());
 
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message. 
 
static const size_t TAGSIZE
Size of ControlHost tag. 
 
 
 
 
  
  
      
        
          | void JNET::JTag::setTag  | 
          ( | 
          const JTag_t  | 
          id | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set tag. 
- Parameters
 - 
  
  
 
Definition at line 149 of file JTag.hh.
 
 
  
  
      
        
          | JTag_t JNET::JTag::getID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get identifier. 
- Returns
 - identifier 
 
Definition at line 160 of file JTag.hh.
 
 
  
  
      
        
          | std::string JNET::JTag::toString  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Convert tag to string. 
- Returns
 - tag 
 
Definition at line 171 of file JTag.hh.
  175       const char* __p = (
const char*) &(this->
id);
 
  177       while (pos != 0 && __p[pos-1] == 
'\0') {
 
  181       return std::string(__p, pos);
 
static const size_t TAGSIZE
Size of ControlHost tag. 
 
 
 
 
  
  
      
        
          | JNET::JTag::operator std::string  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Type conversion operators. 
- Returns
 - tag 
 
Definition at line 190 of file JTag.hh.
std::string toString() const 
Convert tag to string. 
 
 
 
 
  
  
      
        
          | const char* JNET::JTag::c_str  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
C-string. 
- Returns
 - tag 
 
Definition at line 201 of file JTag.hh.
  203       return (
const char*) &(this->
id);
 
 
 
 
  
  
      
        
          | const char JNET::JTag::operator[]  | 
          ( | 
          int  | 
          i | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Get character. 
- Parameters
 - 
  
  
 
- Returns
 - character at index 
 
Definition at line 213 of file JTag.hh.
  215       const char* __p = (
const char*) &(this->
id);
 
 
 
 
  
  
      
        
          | std::istream& operator>>  | 
          ( | 
          std::istream &  | 
          in,  | 
         
        
           | 
           | 
          JTag &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Read JTag from input stream. 
- Parameters
 - 
  
    | in | input stream  | 
    | object | JTag  | 
  
   
- Returns
 - input stream 
 
Definition at line 228 of file JTag.hh.
  233         object.setTag(buffer);
 
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
 
 
 
 
  
  
      
        
          | std::ostream& operator<<  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const JTag &  | 
          object  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
friend   | 
  
 
Write JTag to output stream. 
- Parameters
 - 
  
    | out | output stream  | 
    | object | JTag  | 
  
   
- Returns
 - output stream 
 
Definition at line 247 of file JTag.hh.
  249       return out << 
object.toString();
 
 
 
 
The documentation for this class was generated from the following file: