Skip to content

Commit

Permalink
OMC
Browse files Browse the repository at this point in the history
- Changed the omniOrb message size limit to 2GB.
- Changed the getComponents API output. Now all elements are enclosed in quotes.
- New API calls added.
  + getAnnotationCount(M1)          // returns the number of annotation in the class.
  + getNthAnnotationString(M1,1)    // returns the nth annotation string. (non flattened annotation).
  + getClassComment(M1)             // returns the class comment
  + getComponentComment(M1, x)      // returns the component comment. Takes the class name and component name.
OMEdit
- Added the new method unparseArrays to parse the omc arrays based results.
- Updated code to accommodate new format of getComponents.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@10674 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Dec 7, 2011
1 parent 6c5d843 commit 0711327
Show file tree
Hide file tree
Showing 4 changed files with 665 additions and 9 deletions.
13 changes: 13 additions & 0 deletions Compiler/FrontEnd/ModelicaBuiltin.mo
Expand Up @@ -1695,6 +1695,19 @@ function getNthInitialEquation "Returns the Nth Initial Equation section"
external "builtin";
end getNthInitialEquation;

function getAnnotationCount "Counts the number of Annotation sections in a class"
input TypeName class_;
output Integer count;
external "builtin";
end getAnnotationCount;

function getNthAnnotationString "Returns the Nth Annotation section as string"
input TypeName class_;
input Integer index;
output String result;
external "builtin";
end getNthAnnotationString;

function iconv "The iconv() function converts one multibyte characters from one character
set to another.
See man (3) iconv for more information.
Expand Down

0 comments on commit 0711327

Please sign in to comment.