Back to index

salome-kernel  6.5.0
Functions
SALOME_ModuleCatalog_Parser_IO.hxx File Reference
#include "SALOME_ModuleCatalog_Parser.hxx"
#include <iostream>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &f, const ParserParameter &P)
std::ostream & operator<< (std::ostream &f, const ParserDataStreamParameter &P)
std::ostream & operator<< (std::ostream &f, const ParserService &S)
std::ostream & operator<< (std::ostream &f, const ParserInterface &I)
std::ostream & operator<< (std::ostream &f, const ParserComponent &C)
std::ostream & operator<< (std::ostream &f, const ParserComponentType &T)

Function Documentation

std::ostream& operator<< ( std::ostream &  f,
const ParserParameter P 
)

Definition at line 34 of file SALOME_ModuleCatalog_Parser_IO.cxx.

{
  f << "          name :       " << P.name << std::endl;
  f << "          type :       " << P.type << std::endl;
  return f;
}
std::ostream& operator<< ( std::ostream &  f,
const ParserDataStreamParameter P 
)

Definition at line 41 of file SALOME_ModuleCatalog_Parser_IO.cxx.

{
  f << "          name :       " << P.name << std::endl;
  f << "          type :       " << P.type << std::endl;
  f << "          dependency : " << P.dependency << std::endl;
  return f;
}
std::ostream& operator<< ( std::ostream &  f,
const ParserService S 
)

Definition at line 50 of file SALOME_ModuleCatalog_Parser_IO.cxx.

{
  int i, n;
  f << "      name :       " << S.name << std::endl;
  f << "      default :    " << (S.byDefault ? "yes" : "no") 
    << std::endl;

  n = S.inParameters.size();
  f << "      in parameters : " << n << std::endl;
  for (i=0; i<n; i++)
    f << S.inParameters[i] << std::endl;
  if (n == 0) f << std::endl;

  n = S.inDataStreamParameters.size();
  f << "      in DataStream parameters : " << n << std::endl;
  for (i=0; i<n; i++)
    f << S.inDataStreamParameters[i] << std::endl;
  if (n == 0) f << std::endl;

  n = S.outParameters.size();
  f << "      out parameters : " << n << std::endl;
  for (i=0; i<n; i++)
    f << S.outParameters[i] << std::endl;
  if (n == 0) f << std::endl;

  n = S.outDataStreamParameters.size();
  f << "      out DataStream parameters : " << n << std::endl;
  for (i=0; i<n; i++)
    f << S.outDataStreamParameters[i] << std::endl;
  if (n == 0) f << std::endl;

  return f;
}
std::ostream& operator<< ( std::ostream &  f,
const ParserInterface I 
)

Definition at line 85 of file SALOME_ModuleCatalog_Parser_IO.cxx.

{
  int j, n;
  f << "    name :       " << I.name << std::endl;

  n = I.services.size();
  f << "    services : " << n << std::endl;
  for (j=0; j<n; j++) {
    MESSAGE(I.services[j].name);
    f << I.services[j] << std::endl;
  }

  return f;
}
std::ostream& operator<< ( std::ostream &  f,
const ParserComponent C 
)

Definition at line 119 of file SALOME_ModuleCatalog_Parser_IO.cxx.

{
  int j, n;
  f << std::endl
    << "    name :       " << C.name << std::endl;
  f << "    user name :  " << C.username << std::endl;
  f << "    type :       " << C.type << std::endl;
  f << "    multistudy : " << (C.multistudy ? "yes" : "no")
    << std::endl;
  f << "    icon :       " << C.icon << std::endl;
  f << "    constraint : " << C.constraint << std::endl;

  n = C.interfaces.size();
  f << "    interfaces : " << n << std::endl;
  for (j=0; j<n; j++)
    f << C.interfaces[j] << std::endl;
  if (n == 0) f << std::endl;

  return f;
}
std::ostream& operator<< ( std::ostream &  f,
const ParserComponentType T 
)

Definition at line 101 of file SALOME_ModuleCatalog_Parser_IO.cxx.

{
  std::string s;
  switch (T) {
  case GEOM :   s = "GEOM"; break;
  case MESH :   s = "MESH"; break;
  case Med  :   s = "Med"; break;
  case SOLVER : s = "SOLVER"; break;
  case DATA :   s = "DATA"; break;
  case VISU :   s = "VISU"; break;
  case SUPERV : s = "SUPERV"; break;
  default :     s = "OTHER"; break;
  }
  f << s << std::endl;
  return f;
}