Support for building applications on top of clingo.  
More...
 | 
| 
using  | Clingo::ModelPrinter = std::function< void()> | 
|   | A callback to print the current model. 
  | 
|   | 
 | 
| auto  | Clingo::main (Library &lib, std::span< std::string_view const > arguments={}, App *app=nullptr) -> int | 
|   | Run a clingo based application with the given arguments.  
  | 
|   | 
| auto  | Clingo::main (Library &lib, std::initializer_list< std::string_view const > arguments, App *app=nullptr) -> int | 
|   | Run a clingo based application with the given arguments.  
  | 
|   | 
Support for building applications on top of clingo. 
◆ main() [1/2]
  
  
      
        
          | auto Clingo::main  | 
          ( | 
          Library &  | 
          lib,  | 
         
        
           | 
           | 
          std::initializer_list< std::string_view const >  | 
          arguments,  | 
         
        
           | 
           | 
          App *  | 
          app = nullptr  | 
         
        
           | 
          ) | 
           |  -> int  | 
         
       
   | 
  
inline   | 
  
 
Run a clingo based application with the given arguments. 
Convenience overload to specify arguments via initializer_lists.
- Parameters
 - 
  
    | lib | the library to store symbols  | 
    | arguments | the command line arguments  | 
    | app | an optional application to customize solving  | 
  
   
- Returns
 - the exit code 
 
 
 
◆ main() [2/2]
  
  
      
        
          | auto Clingo::main  | 
          ( | 
          Library &  | 
          lib,  | 
         
        
           | 
           | 
          std::span< std::string_view const >  | 
          arguments = {},  | 
         
        
           | 
           | 
          App *  | 
          app = nullptr  | 
         
        
           | 
          ) | 
           |  -> int  | 
         
       
   | 
  
inline   | 
  
 
Run a clingo based application with the given arguments. 
- Parameters
 - 
  
    | lib | the library to store symbols  | 
    | arguments | the command line arguments  | 
    | app | an optional application to customize solving  | 
  
   
- Returns
 - the exit code