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::APIUtil Struct Reference
Collaboration diagram for dss::APIUtil:
[legend]

Classes

struct  ErrorChecker
 

Public Member Functions

void check_for_error ()
 
 APIUtil (bool create_ctx=false)
 
 APIUtil (void *context, bool is_owner=false)
 
template<typename T , typename enabled_ = std::enable_if_t<std::is_convertible<T*, dss::obj::DSSObj*>::value>>
create (const char *name, bool activate=true, bool begin_edit=true)
 
template<typename T , typename enabled_ = std::enable_if_t<std::is_convertible<T*, dss::obj::DSSObj*>::value>>
create (const string &name, bool activate=true, bool begin_edit=true)
 
template<typename T , typename enabled_ = std::enable_if_t<std::is_convertible<T*, dss::obj::DSSBatch*>::value>>
create (const char *prefix, int32_t count, bool begin_edit=true, int32_t start_at=1)
 
template<typename T , typename enabled_ = std::enable_if_t< std::is_convertible<T*, dss::obj::DSSBatch*>::value >>
create (const string &prefix, int32_t count, bool begin_edit=true, int32_t start_at=1)
 
template<typename VectorT = Eigen::Matrix<double, Eigen::Dynamic, 1>, typename std::enable_if< std::is_same< typename VectorT::value_type, double >::value >::type * = nullptr>
VectorT get_float64_gr_array ()
 
template<typename VectorT = Eigen::Matrix<int32_t, Eigen::Dynamic, 1>, typename std::enable_if< std::is_same< typename VectorT::value_type, int32_t >::value >::type * = nullptr>
VectorT get_int32_gr_array ()
 
template<typename VectorT = Eigen::Matrix<int8_t, Eigen::Dynamic, 1>, typename std::enable_if< std::is_same< typename VectorT::value_type, int8_t >::value >::type * = nullptr>
VectorT get_int8_gr_array ()
 
template<typename FunctionT , typename... Args>
strings get_string_array (FunctionT func, Args... args)
 
template<typename FunctionT , typename... Args>
void set_string_array (FunctionT func, const strings &value, Args... args)
 

Public Attributes

void * ctx
 
int32_t * error_ptr
 
bool owns_ctx
 
char *** data_PPAnsiChar
 
double ** data_PDouble
 
int32_t ** data_PInteger
 
int8_t ** data_PByte
 
int32_t * count_PPAnsiChar
 
int32_t * count_PDouble
 
int32_t * count_PInteger
 
int32_t * count_PByte
 

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