DSS C-API and dss.hpp
DSS C-API and dss.hpp expose a customized and extended implementation of OpenDSS to C and C++.
dss::classic::IDSSElement Class Reference
Inheritance diagram for dss::classic::IDSSElement:
[legend]
Collaboration diagram for dss::classic::IDSSElement:
[legend]

Public Member Functions

 IDSSElement (dss::APIUtil *util)
 
strings AllPropertyNames ()
 Array of strings containing the names of all properties for the active DSS object.
 
string Name ()
 Full Name of Active DSS Object (general element or circuit element).
 
int32_t NumProperties ()
 Number of Properties for the active DSS object.
 
string ToJSON (int32_t options=0)
 Returns the properties of the active DSS object as a JSON-encoded string. More...
 
- Public Member Functions inherited from dss::ContextState
 ContextState (APIUtil *util)
 

Public Attributes

IDSSProperty Properties
 
- Public Attributes inherited from dss::ContextState
void * ctx
 Pointer to the DSSContext for easy access.
 
APIUtilapi_util
 API utility functions.
 

Member Function Documentation

◆ ToJSON()

string dss::classic::IDSSElement::ToJSON ( int32_t  options = 0)
inline

Returns the properties of the active DSS object as a JSON-encoded string.

The options parameter contains bit-flags to toggle specific features. See Obj_ToJSON (C-API) for more, or DSSObj.to_json in Python.

(API Extension)


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