← Documentation
ADS-IDAC Engine 5.0.0
fta_parser.hpp File Reference

Reader that turns a GeNIe/SMILE .fta fault tree document into a validated faulttree::FaultTree. More...

#include "faulttree/fault_tree.hpp"
#include <string>
Include dependency graph for fta_parser.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  faulttree
 

Functions

FaultTree faulttree::parseFtaString (const std::string &text)
 Parses .fta content held in memory. More...
 
FaultTree faulttree::parseFtaFile (const std::string &path)
 Parses a .fta file from disk. More...
 

Detailed Description

Reader that turns a GeNIe/SMILE .fta fault tree document into a validated faulttree::FaultTree.

The reader sits between the XML layer (xml_lite.hpp) and the model (fault_tree.hpp): it walks the parsed <ftaDiagram> element, maps the .fta type codes to GateType values, shares nodes that repeat by name, and returns a tree that has passed FaultTree::validate().

Definition in file fta_parser.hpp.