Esempio n. 1
0
def inStr(inst, *args, **kwds):
    '''Return the string representation of an instance.

       @param inst: The instance (any type).
       @param args: Optional positional arguments.
       @keyword kwds: Optional keyword arguments.

       @return: The I{inst}'s representation (C{str}).
    '''
    return unStr(classname(inst), *args, **kwds)
Esempio n. 2
0
 def _xcopy(self, *attrs):
     '''(INTERNAL) Must be overloaded.
     '''
     raise AssertionError(unStr(self.classname + '._xcopy', *attrs))
Esempio n. 3
0
 def falsed2(self):
     '''(INTERNAL) Must be overloaded.
     '''
     raise AssertionError(unStr(self.classname + '.falsed2'))
Esempio n. 4
0
    def toStr(self, **kwds):
        '''(INTERNAL) Must be overloaded.

           @param kwds: Optional, keyword arguments.
        '''
        raise AssertionError(unStr(self.classname + '.toStr', **kwds))
Esempio n. 5
0
 def toCartesian(self):
     '''Convert this (geodetic) point to (geocentric) x/y/z
        Cartesian coordinates.  Must be overloaded.
     '''
     raise AssertionError(unStr(self.classname + '.toCartesian'))