List of all members | Public Types | Public Member Functions | Static Public Member Functions
casadi::ModelicaParser Class Reference

Modelica parser. More...

#include <modelica_parser.hpp>

Detailed Description

Can be used for parsing Modelica files into CasADi data structures.

Author
Joris Gillis
Date
2026

Extra doc: https://github.com/casadi/casadi/wiki/L_2j3

Definition at line 46 of file modelica_parser.hpp.

Inheritance diagram for casadi::ModelicaParser:
Inheritance graph
[legend]

Public Types

using internal_base_type = SharedObjectInternal
 
using base_type = SharedObject
 

Public Member Functions

 ModelicaParser ()
 
 ModelicaParser (const std::string &name)
 
 ~ModelicaParser ()
 
void parse (const std::string &filename, const std::string &output_dir)
 
std::string class_name () const
 Get class name. More...
 
void disp (std::ostream &stream, bool more=false) const
 Print a description of the object. More...
 
std::string get_str (bool more=false) const
 Get string representation. More...
 
std::string debug_repr () const
 
bool is_null () const
 Is a null pointer? More...
 
casadi_int __hash__ () const
 Returns a number that is unique for a given Node. More...
 

Static Public Member Functions

static std::string type_name ()
 Get type name. More...
 
static void load_plugin (const std::string &name)
 Load a plugin dynamically. More...
 
static std::string doc (const std::string &name)
 Get solver specific documentation. More...
 

Member Typedef Documentation

◆ base_type

Definition at line 103 of file shared_object.hpp.

◆ internal_base_type

using casadi::SharedObject::internal_base_type = SharedObjectInternal
inherited

Definition at line 102 of file shared_object.hpp.

Constructor & Destructor Documentation

◆ ModelicaParser() [1/2]

casadi::ModelicaParser::ModelicaParser ( )

◆ ModelicaParser() [2/2]

casadi::ModelicaParser::ModelicaParser ( const std::string &  name)

◆ ~ModelicaParser()

casadi::ModelicaParser::~ModelicaParser ( )

Member Function Documentation

◆ __hash__()

casadi_int casadi::GenericShared< SharedObject , SharedObjectInternal >::__hash__
inherited

If the Object does not point to any node, "0" is returned.

Extra doc: https://github.com/casadi/casadi/wiki/L_av

Definition at line 123 of file generic_shared_impl.hpp.

◆ class_name()

std::string casadi::SharedObject::class_name ( ) const
inherited

◆ debug_repr()

std::string casadi::GenericShared< SharedObject , SharedObjectInternal >::debug_repr
inherited

Definition at line 112 of file generic_shared_impl.hpp.

◆ disp()

void casadi::SharedObject::disp ( std::ostream &  stream,
bool  more = false 
) const
inherited

◆ doc()

static std::string casadi::ModelicaParser::doc ( const std::string &  name)
static

◆ get_str()

std::string casadi::SharedObject::get_str ( bool  more = false) const
inlineinherited

Definition at line 91 of file shared_object.hpp.

◆ is_null()

bool casadi::GenericShared< SharedObject , SharedObjectInternal >::is_null
inherited

Definition at line 116 of file generic_shared_impl.hpp.

◆ load_plugin()

static void casadi::ModelicaParser::load_plugin ( const std::string &  name)
static

◆ parse()

void casadi::ModelicaParser::parse ( const std::string &  filename,
const std::string &  output_dir 
)

◆ type_name()

static std::string casadi::ModelicaParser::type_name ( )
inlinestatic

Extra doc: https://github.com/casadi/casadi/wiki/L_2j4

Definition at line 53 of file modelica_parser.hpp.


The documentation for this class was generated from the following file: