Jpp  15.0.5
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
JEEP::JPropertiesTemplateElement< JProperties > Class Template Reference

Template specialisation for JProperties. More...

#include <JProperties.hh>

Inheritance diagram for JEEP::JPropertiesTemplateElement< JProperties >:
JEEP::JPropertiesElementInterface JLANG::JStreamInput JLANG::JStreamOutput JLANG::JStreamSuffixOutput

Public Member Functions

 JPropertiesTemplateElement (const JProperties &value)
 Constructor. More...
 
virtual std::istream & read (std::istream &in) override
 Stream input. More...
 
virtual std::ostream & write (std::ostream &out, const char *prefix, const char postfix) const override
 Stream output. More...
 
virtual std::ostream & write (std::ostream &out) const override
 Stream output. More...
 
virtual bool is_properties () const override
 Get properties type. More...
 
virtual bool equals (const JPropertiesElementInterface &element) const
 Equality between property element interfaces. More...
 

Private Attributes

JProperties object
 

Detailed Description

template<>
class JEEP::JPropertiesTemplateElement< JProperties >

Template specialisation for JProperties.

Definition at line 1159 of file JProperties.hh.

Constructor & Destructor Documentation

Constructor.

Parameters
valuereference of template bject

Definition at line 1168 of file JProperties.hh.

1168  :
1170  object(value)
1171  {}
Interface for I/O of properties element.
Definition: JProperties.hh:66

Member Function Documentation

virtual std::istream& JEEP::JPropertiesTemplateElement< JProperties >::read ( std::istream &  in)
inlineoverridevirtual

Stream input.

Parameters
ininput stream
Returns
input stream

Implements JLANG::JStreamInput.

Definition at line 1180 of file JProperties.hh.

1181  {
1182  object.read(in);
1183 
1184  return in;
1185  }
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
Definition: JCanberra.sh:41
virtual std::ostream& JEEP::JPropertiesTemplateElement< JProperties >::write ( std::ostream &  out,
const char *  prefix,
const char  postfix 
) const
inlineoverridevirtual

Stream output.

Parameters
outoutput stream
prefixprefix
postfixpostfix
Returns
output stream

Implements JLANG::JStreamSuffixOutput.

Definition at line 1196 of file JProperties.hh.

1199  {
1200  using namespace std;
1201 
1202  for (JProperties::const_iterator i = object.begin(); i != object.end(); ++i) {
1203 
1204  char c = ' ';
1205 
1206  if (i->second->is_properties()) {
1207  c = object.getDefaultDivision ();
1208  } else {
1209  c = object.getDefaultSeparator();
1210  }
1211 
1212  i->second->write(out, (prefix + i->first + c).c_str(), postfix);
1213  }
1214 
1215  out << flush;
1216 
1217  return out;
1218  }
virtual std::ostream& JEEP::JPropertiesTemplateElement< JProperties >::write ( std::ostream &  out) const
inlineoverridevirtual

Stream output.

Parameters
outoutput stream
Returns
output stream

Implements JLANG::JStreamOutput.

Definition at line 1227 of file JProperties.hh.

1228  {
1229  return writeObject(out, object);
1230  }
std::ostream & writeObject(std::ostream &out, const T &object)
Stream output of object.
virtual bool JEEP::JPropertiesTemplateElement< JProperties >::is_properties ( ) const
inlineoverridevirtual

Get properties type.

Returns
true

Reimplemented from JEEP::JPropertiesElementInterface.

Definition at line 1238 of file JProperties.hh.

1239  {
1240  return true;
1241  }
virtual bool JEEP::JPropertiesElementInterface::equals ( const JPropertiesElementInterface element) const
inlinevirtualinherited

Equality between property element interfaces.

Parameters
elementproperties element interface
Returns
false

Reimplemented in JEEP::JPropertiesTemplateElement< JProperties::JFileReader >, JEEP::JPropertiesTemplateElement< const T >, and JEEP::JPropertiesTemplateElement< T >.

Definition at line 94 of file JProperties.hh.

95  {
96  return false;
97  }

Member Data Documentation

Definition at line 1245 of file JProperties.hh.


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