XIOS
1.0
Xml I/O Server
|
#include <scalar.hpp>
Types publics | |
typedef CScalarAttributes | RelAttributes |
typedef CScalarGroup | RelGroup |
typedef CTransformation < CScalar > ::TransformationMapTypes | TransMapTypes |
Fonctions membres publiques | |
CScalar (void) | |
Constructeurs ///. Plus de détails... | |
CScalar (const StdString &id) | |
CScalar (const CScalar &var) | |
CScalar (const CScalar *const var) | |
virtual | ~CScalar (void) |
Destructeur ///. Plus de détails... | |
void | checkAttributes (void) |
void | addRelFile (const StdString &filename) |
bool | IsWritten (const StdString &filename) const |
void | checkAttributesOnClient () |
virtual void | parse (xml::CXMLNode &node) |
Parse children nodes of a scalar in xml file. Plus de détails... | |
bool | hasTransformation () |
void | solveInheritanceTransformation () |
Go through the hierarchy to find the scalar from which the transformations must be inherited. Plus de détails... | |
TransMapTypes | getAllTransformations () |
void | duplicateTransformation (CScalar *) |
CTransformation< CScalar > * | addTransformation (ETranformationType transType, const StdString &id="") |
bool | isEqual (CScalar *scalar) |
Compare two scalar objects. Plus de détails... | |
Fonctions membres publiques inherited from xios::CObjectTemplate< CScalar > | |
virtual StdString | toString (void) const |
Autres ///. Plus de détails... | |
virtual void | fromString (const StdString &str) |
virtual string | getName (void) const |
ENodeType | getType (void) const |
Accesseurs ///. Plus de détails... | |
virtual bool | hasChild (void) const |
Test ///. Plus de détails... | |
virtual void | solveDescInheritance (bool apply, const CAttributeMap *const parent=0) |
Traitements ///. Plus de détails... | |
std::map< int, size_t > | getMinimumBufferSizeForAttributes (CContextClient *client) |
void | sendAttributToServer (const string &id) |
void | sendAttributToServer (const string &id, CContextClient *client) |
void | sendAttributToServer (CAttribute &attr) |
void | sendAttributToServer (CAttribute &attr, CContextClient *client) |
void | sendAllAttributesToServer () |
void | sendAllAttributesToServer (CContextClient *client) |
void | sendAddItem (const string &id, int itemType) |
void | sendAddItem (const string &id, int itemType, CContextClient *client) |
bool | isEqual (const string &id, const vector< StdString > &excludedAttrs) |
bool | isEqual (CScalar *obj, const vector< StdString > &excludedAttrs) |
virtual | ~CObjectTemplate (void) |
Destructeur ///. Plus de détails... | |
CScalar * | get (void) |
std::shared_ptr< CScalar > | getShared (void) |
void | generateCInterface (ostream &oss) |
void | generateFortran2003Interface (ostream &oss) |
void | generateFortranInterface (ostream &oss) |
Fonctions membres publiques inherited from xios::CObject | |
virtual | ~CObject (void) |
Destructeur ///. Plus de détails... | |
const StdString & | getId (void) const |
Accesseurs ///. Plus de détails... | |
virtual const StdString & | getIdServer () const |
virtual StdString | dumpClassAttributes (void) |
void | resetId (void) |
Mutateurs ///. Plus de détails... | |
void | setId (const StdString &id, bool idAutoGenerated=false) |
bool | hasId (void) const |
Tests ///. Plus de détails... | |
bool | hasAutoGeneratedId (void) const |
Fonctions membres publiques inherited from xios::CAttributeMap | |
bool | hasAttribute (const StdString &key) const |
Tests ///. Plus de détails... | |
CAttribute * | operator[] (const StdString &key) |
Accesseurs ///. Plus de détails... | |
void | setAttribute (const StdString &key, CAttribute *const attr) |
Mutateurs ///. Plus de détails... | |
void | setAttributes (const xml::THashAttributes &attributes) |
void | setAttributes (const CAttributeMap *const _parent, bool apply=true) |
Set attributes from a specific attributemap, considered parent. Plus de détails... | |
void | duplicateAttributes (const CAttributeMap *const _parent) |
Duplicate attribute map with a specific attribute map. Plus de détails... | |
void | clearAllAttributes (void) |
Plus de détails... | |
StdString | dumpXiosAttributes (void) const |
Plus de détails... | |
void | clearAttribute (const StdString &key) |
bool | isEqual (const CAttributeMap &another, const vector< StdString > &excludedAttrs) |
Compare two attribute maps. Plus de détails... | |
virtual | ~CAttributeMap (void) |
Destructeur ///. Plus de détails... | |
virtual void | generateCInterface (ostream &oss, const string &className) |
virtual void | generateFortran2003Interface (ostream &oss, const string &className) |
virtual void | generateFortranInterface_hdl_ (ostream &oss, const string &className) |
Plus de détails... | |
virtual void | generateFortranInterface_hdl (ostream &oss, const string &className) |
virtual void | generateFortranInterface_id (ostream &oss, const string &className) |
virtual void | generateFortranInterfaceGet_hdl_ (ostream &oss, const string &className) |
virtual void | generateFortranInterfaceGet_hdl (ostream &oss, const string &className) |
virtual void | generateFortranInterfaceGet_id (ostream &oss, const string &className) |
virtual void | generateFortranInterfaceIsDefined_hdl_ (ostream &oss, const string &className) |
virtual void | generateFortranInterfaceIsDefined_hdl (ostream &oss, const string &className) |
virtual void | generateFortranInterfaceIsDefined_id (ostream &oss, const string &className) |
Fonctions membres publiques statiques | |
static StdString | GetName (void) |
Accesseurs statiques ///. Plus de détails... | |
static StdString | GetDefName (void) |
static ENodeType | GetType (void) |
static CScalar * | createScalar () |
Fonctions membres publiques statiques inherited from xios::CObjectTemplate< CScalar > | |
static void | ClearAllAttributes (void) |
Traitement statique ///. Plus de détails... | |
static void | recvAttributFromClient (CEventServer &event) |
static bool | dispatchEvent (CEventServer &event) |
static std::vector < std::shared_ptr< DerivedType > > & | GetAllVectobject (const StdString &contextId) |
Accesseur statique ///. Plus de détails... | |
static bool | has (const string &id) |
static bool | has (const string &contextId, const string &id) |
static CScalar * | get (const string &id) |
static CScalar * | get (const CScalar *ptr) |
static CScalar * | get (const string &contextId, const string &id) |
static std::shared_ptr< CScalar > | getShared (const CScalar *ptr) |
static CScalar * | create (const string &id=string("")) |
static const vector< CScalar * > | getAll () |
static const vector< CScalar * > | getAll (const string &contextId) |
Types privés | |
typedef CObjectTemplate< CScalar > | SuperClass |
typedef /// Plus de détails... | |
typedef CScalarAttributes | SuperClassAttribute |
Fonctions membres privées | |
void | setTransformations (const TransMapTypes &) |
Fonctions membres privées statiques | |
static bool | initializeTransformationMap (std::map< StdString, ETranformationType > &m) |
Attributs privés | |
std::set< StdString > | relFiles |
TransMapTypes | transformationMap_ |
Attributs privés statiques | |
static std::map< StdString, ETranformationType > | transformationMapList_ = std::map<StdString, ETranformationType>() |
static bool | dummyTransformationMapList_ = CScalar::initializeTransformationMap(CScalar::transformationMapList_) |
Amis | |
class | CScalarGroup |
Additional Inherited Members | |
Attributs publics inherited from std::map< K, T > | |
K | keys |
STL member. Plus de détails... | |
T | elements |
STL member. Plus de détails... | |
Fonctions membres protégées inherited from xios::CObjectTemplate< CScalar > | |
CObjectTemplate (void) | |
Constructeurs ///. Plus de détails... | |
CObjectTemplate (const StdString &id) | |
CObjectTemplate (const CObjectTemplate< CScalar > &object, bool withAttrList=true, bool withId=true) | |
CObjectTemplate (const CObjectTemplate< CScalar > *const object) | |
Fonctions membres protégées inherited from xios::CObject | |
CObject (void) | |
Constructeurs ///. Plus de détails... | |
CObject (const StdString &id, bool idAutoGenerated=false) | |
CObject (const CObject &object) | |
CObject (const CObject *const object) | |
Fonctions membres protégées inherited from xios::CAttributeMap | |
CAttributeMap (void) | |
Constructeurs ///. Plus de détails... | |
CAttributeMap (const std::map< StdString, CAttribute * > &umap) | |
CAttributeMap (const std::map< StdString, CAttribute * > *const umap) | |
Attributs protégés statiques inherited from xios::CAttributeMap | |
static CAttributeMap * | Current = NULL |
Propriété statique ///. Plus de détails... | |
typedef CScalarAttributes xios::CScalar::RelAttributes |
Définition à la ligne 44 du fichier scalar.hpp.
typedef CScalarGroup xios::CScalar::RelGroup |
Définition à la ligne 45 du fichier scalar.hpp.
|
private |
typedef ///
Définition à la ligne 37 du fichier scalar.hpp.
|
private |
Définition à la ligne 38 du fichier scalar.hpp.
typedef CTransformation<CScalar>::TransformationMapTypes xios::CScalar::TransMapTypes |
Définition à la ligne 46 du fichier scalar.hpp.
xios::CScalar::CScalar | ( | void | ) |
Constructeurs ///.
////////////////////// Définitions ////////////////////// ///
Définition à la ligne 14 du fichier scalar.cpp.
|
explicit |
Définition à la ligne 20 du fichier scalar.cpp.
xios::CScalar::CScalar | ( | const CScalar & | var | ) |
xios::CScalar::CScalar | ( | const CScalar *const | var | ) |
|
virtual |
Destructeur ///.
Définition à la ligne 26 du fichier scalar.cpp.
void xios::CScalar::addRelFile | ( | const StdString & | filename | ) |
Définition à la ligne 54 du fichier scalar.cpp.
Références relFiles.
Référencé par xios::CNc4DataOutput::writeScalar_().
CTransformation< CScalar > * xios::CScalar::addTransformation | ( | ETranformationType | transType, |
const StdString & | id = "" |
||
) |
Définition à la ligne 99 du fichier scalar.cpp.
Références transformationMap_.
Référencé par cxios_xml_tree_add_extractaxistoscalartoscalar(), cxios_xml_tree_add_reduceaxistoscalartoscalar(), et cxios_xml_tree_add_reducedomaintoscalartoscalar().
void xios::CScalar::checkAttributes | ( | void | ) |
Définition à la ligne 59 du fichier scalar.cpp.
Référencé par xios::CNc4DataOutput::writeScalar_().
void xios::CScalar::checkAttributesOnClient | ( | ) |
Définition à la ligne 63 du fichier scalar.cpp.
Référencé par xios::CGridTransformation::setUpGridSource().
|
static |
Définition à la ligne 43 du fichier scalar.cpp.
Référencé par xios::CGrid::cloneGrid(), xios::CGridTransformation::setUpGridSource(), et xios::CField::solveGridReference().
void xios::CScalar::duplicateTransformation | ( | CScalar * | src | ) |
Définition à la ligne 120 du fichier scalar.cpp.
Références getAllTransformations(), hasTransformation(), et setTransformations().
Référencé par xios::CGrid::cloneGrid().
CScalar::TransMapTypes xios::CScalar::getAllTransformations | ( | void | ) |
Définition à la ligne 115 du fichier scalar.cpp.
Références transformationMap_.
Référencé par duplicateTransformation(), isEqual(), et solveInheritanceTransformation().
|
static |
Définition à la ligne 40 du fichier scalar.cpp.
Références GetName().
|
static |
Accesseurs statiques ///.
Définition à la ligne 39 du fichier scalar.cpp.
Référencé par GetDefName().
|
static |
Définition à la ligne 41 du fichier scalar.cpp.
Références xios::eScalar.
Référencé par xios::CContextServer::dispatchEvent().
bool xios::CScalar::hasTransformation | ( | ) |
Définition à la ligne 105 du fichier scalar.cpp.
Références transformationMap_.
Référencé par duplicateTransformation(), et solveInheritanceTransformation().
|
staticprivate |
Définition à la ligne 31 du fichier scalar.cpp.
Références xios::TRANS_EXTRACT_AXIS_TO_SCALAR, xios::TRANS_REDUCE_AXIS_TO_SCALAR, xios::TRANS_REDUCE_DOMAIN_TO_SCALAR, et xios::TRANS_REDUCE_SCALAR_TO_SCALAR.
bool xios::CScalar::isEqual | ( | CScalar * | obj | ) |
Compare two scalar objects.
They are equal if only if they have identical attributes as well as their values. Moreover, they must have the same transformations.
[in] | scalar | Compared scalar |
Définition à la ligne 75 du fichier scalar.cpp.
Références getAllTransformations(), et xios::CObjectTemplate< CScalar >::isEqual().
bool xios::CScalar::IsWritten | ( | const StdString & | filename | ) | const |
Définition à la ligne 49 du fichier scalar.cpp.
Références relFiles.
Référencé par xios::CNc4DataOutput::writeScalar_().
|
virtual |
Parse children nodes of a scalar in xml file.
node | child node to process |
Réimplémentée à partir de xios::CObjectTemplate< CScalar >.
Définition à la ligne 153 du fichier scalar.cpp.
Références xios::ERROR, xios::xml::CXMLNode::getAttributes(), xios::xml::CXMLNode::getElementName(), xios::xml::CXMLNode::goToChildElement(), xios::xml::CXMLNode::goToNextElement(), xios::xml::CXMLNode::goToParentElement(), xios::CObjectTemplate< CScalar >::parse(), transformationMap_, et transformationMapList_.
Référencé par xios::xml::CXMLParser::ParseStream().
|
private |
Définition à la ligne 110 du fichier scalar.cpp.
Références transformationMap_.
Référencé par duplicateTransformation(), et solveInheritanceTransformation().
void xios::CScalar::solveInheritanceTransformation | ( | ) |
Go through the hierarchy to find the scalar from which the transformations must be inherited.
Définition à la ligne 131 du fichier scalar.cpp.
Références getAllTransformations(), hasTransformation(), et setTransformations().
Référencé par xios::CGrid::cloneGrid(), et xios::CGrid::solveDomainAxisRefInheritance().
|
friend |
Définition à la ligne 40 du fichier scalar.hpp.
|
staticprivate |
Définition à la ligne 90 du fichier scalar.hpp.
|
private |
Définition à la ligne 82 du fichier scalar.hpp.
Référencé par addRelFile(), et IsWritten().
|
private |
Définition à la ligne 83 du fichier scalar.hpp.
Référencé par addTransformation(), getAllTransformations(), hasTransformation(), parse(), et setTransformations().
|
staticprivate |
Définition à la ligne 89 du fichier scalar.hpp.
Référencé par parse().