Transformation pass to set defaults for IO operations.  
 More...
#include <IODefaults.h>
Transformation pass to set defaults for IO operations. 
Definition at line 41 of file IODefaults.h.
◆ clone()
◆ getName()
  
  | 
        
          | std::string souffle::ast::transform::IODefaultsTransformer::getName | ( |  | ) | const |  | inlineoverridevirtual | 
 
 
◆ getRelationName()
  
  | 
        
          | std::string souffle::ast::transform::IODefaultsTransformer::getRelationName | ( | const Directive * | node | ) |  |  | inlineprivate | 
 
Get the relation name from the qualified name. 
- Returns
- Valid relation name from the concatenated qualified name. 
Definition at line 137 of file IODefaults.h.
 
 
◆ setDefaults()
  
  | 
        
          | bool souffle::ast::transform::IODefaultsTransformer::setDefaults | ( | TranslationUnit & | translationUnit | ) |  |  | inlineprivate | 
 
Set IO defaults. 
If no IO type is specified, use 'file' If no name is set, use the relation name. Add the operation type to the directives list. If a global fact directory is specified, add to the directives list. If a global output directory is specified, add to the directives list. If stdout is requested at the command line ('-D-'), change all output to stdout. If a printsize operation is requested, set IO type and operation accordingly.
- Parameters
- 
  
  
- Returns
- true if any changes were made 
Definition at line 80 of file IODefaults.h.
   89             if (!io->hasParameter(
"operation")) {
 
   91                     io->addParameter(
"operation", 
"input");
 
   98                     io->addParameter(
"operation", 
"output");
 
  103                             io->addParameter(
"IO", 
"stdout");
 
  104                             io->addParameter(
"headers", 
"true");
 
  110                     io->addParameter(
"operation", 
"printsize");
 
  111                     io->addParameter(
"IO", 
"stdoutprintsize");
 
  126         return toString(
join(node->getQualifiedName().getQualifiers(), 
"."));
 
 
 
 
◆ transform()
  
  | 
        
          | bool souffle::ast::transform::IODefaultsTransformer::transform | ( | TranslationUnit & | translationUnit | ) |  |  | inlineoverrideprivatevirtual | 
 
 
The documentation for this class was generated from the following file:
 
detail::joined_sequence< Iter, Printer > join(const Iter &a, const Iter &b, const std::string &sep, const Printer &p)
Creates an object to be forwarded to some output stream for printing sequences of elements interspers...