# -*- encoding: utf-8 -*-
"""
 Created by eniocc at 11/10/2020
"""
import ctypes

from py_dss_interface.models.Base import Base


class TopologyS(Base):
    """
    This interface can be used to read/write certain properties of the active DSS object.

    The structure of the interface is as follows:
        CStr TopologyS(int32_t Parameter, CStr Argument);

    This interface returns a string with the result of the query according to the value of the variable Parameter,
    which can be one of the following.
    """

    def topology_read_branch_name(self):
        """Gets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(0), ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_branch_name(self, argument):
        """Sets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(1), argument.encode('ascii')))
        return result.value.decode('ascii')

    def topology_read_bus_name(self):
        """Gets the name of the active Bus."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(2), ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_bus_name(self, argument):
        """Sets the Bus active by name."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(3), argument.encode('ascii')))
        return result.value.decode('ascii')

550e32bd42467b5fa34c37310cb43bee26e368b7
<mask token>


class TopologyS(Base):
    <mask token>

    def topology_read_branch_name(self):
        """Gets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(0),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')
    <mask token>

    def topology_read_bus_name(self):
        """Gets the name of the active Bus."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(2),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_bus_name(self, argument):
        """Sets the Bus active by name."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(3),
            argument.encode('ascii')))
        return result.value.decode('ascii')

<mask token>


class TopologyS(Base):
    <mask token>

    def topology_read_branch_name(self):
        """Gets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(0),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_branch_name(self, argument):
        """Sets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(1),
            argument.encode('ascii')))
        return result.value.decode('ascii')

    def topology_read_bus_name(self):
        """Gets the name of the active Bus."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(2),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_bus_name(self, argument):
        """Sets the Bus active by name."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(3),
            argument.encode('ascii')))
        return result.value.decode('ascii')

<mask token>


class TopologyS(Base):
    """
    This interface can be used to read/write certain properties of the active DSS object.

    The structure of the interface is as follows:
        CStr TopologyS(int32_t Parameter, CStr Argument);

    This interface returns a string with the result of the query according to the value of the variable Parameter,
    which can be one of the following.
    """

    def topology_read_branch_name(self):
        """Gets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(0),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_branch_name(self, argument):
        """Sets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(1),
            argument.encode('ascii')))
        return result.value.decode('ascii')

    def topology_read_bus_name(self):
        """Gets the name of the active Bus."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(2),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_bus_name(self, argument):
        """Sets the Bus active by name."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(3),
            argument.encode('ascii')))
        return result.value.decode('ascii')

<mask token>
import ctypes
from py_dss_interface.models.Base import Base


class TopologyS(Base):
    """
    This interface can be used to read/write certain properties of the active DSS object.

    The structure of the interface is as follows:
        CStr TopologyS(int32_t Parameter, CStr Argument);

    This interface returns a string with the result of the query according to the value of the variable Parameter,
    which can be one of the following.
    """

    def topology_read_branch_name(self):
        """Gets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(0),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_branch_name(self, argument):
        """Sets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(1),
            argument.encode('ascii')))
        return result.value.decode('ascii')

    def topology_read_bus_name(self):
        """Gets the name of the active Bus."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(2),
            ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_bus_name(self, argument):
        """Sets the Bus active by name."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(3),
            argument.encode('ascii')))
        return result.value.decode('ascii')

# -*- encoding: utf-8 -*-
"""
 Created by eniocc at 11/10/2020
"""
import ctypes

from py_dss_interface.models.Base import Base


class TopologyS(Base):
    """
    This interface can be used to read/write certain properties of the active DSS object.

    The structure of the interface is as follows:
        CStr TopologyS(int32_t Parameter, CStr Argument);

    This interface returns a string with the result of the query according to the value of the variable Parameter,
    which can be one of the following.
    """

    def topology_read_branch_name(self):
        """Gets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(0), ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_branch_name(self, argument):
        """Sets the name of the active branch."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(1), argument.encode('ascii')))
        return result.value.decode('ascii')

    def topology_read_bus_name(self):
        """Gets the name of the active Bus."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(2), ctypes.c_int32(0)))
        return result.value.decode('ascii')

    def topology_write_bus_name(self, argument):
        """Sets the Bus active by name."""
        result = ctypes.c_char_p(self.dss_obj.TopologyS(ctypes.c_int32(3), argument.encode('ascii')))
        return result.value.decode('ascii')
