Package saga :: Package file :: Module _file :: Class file
[hide private]
[frames] | no frames]

Class file

          object --+            
                   |            
         ??.instance --+        
                       |        
          _engine.object --+    
                           |    
name_space._name_space.entry --+
                               |
                              file

Nested Classes [hide private]
  seek_mode

Inherited from _engine.object: object_type

Instance Methods [hide private]
 
__init__(...)
__init__( (object)arg1, (url)arg2) -> None :
 
get_size(...)
get_size( (file)arg1) -> int : returns the size of this file (plain)
 
read(...)
read( (file)arg1, (buffer)arg2 [, (int)arg3]) -> int : reads the given number of bytes from the file (plain)
 
seek(...)
seek( (file)arg1, (int)arg2, (seek_mode)arg3) -> int : repositions the current file pointer (plain)
 
write(...)
write( (file)arg1, (buffer)arg2 [, (int)arg3]) -> int : writes the given bytes to the file (plain)

Inherited from name_space._name_space.entry: close, copy, get_cwd, get_group, get_name, get_owner, get_url, is_dir, is_entry, is_link, link, move, permissions_allow, permissions_check, permissions_deny, read_link, remove

Inherited from _engine.object: __reduce__, clone, get_id, get_object_type_name, get_session, get_type

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  Current = saga.file._file.seek_mode.Current
  End = saga.file._file.seek_mode.End
  Start = saga.file._file.seek_mode.Start

Inherited from _engine.object: Advert, AdvertDirectory, Buffer, Context, Directory, Endpoint, Exception, File, IOVec, Job, JobDescription, JobSelf, JobService, LogicalDirectory, LogicalFile, Metric, Msg, NSDirectory, NSEntry, Parameter, RPC, Session, Stream, StreamService, Task, TaskContainer, URL, __instance_size__

Properties [hide private]

Inherited from _engine.object: id, session, type

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

__init__( (object)arg1, (url)arg2) -> None :

    C++ signature :
        void __init__(_object*,saga::url)

__init__( (object)arg1, (url)arg2, (int)arg3) -> None :

    C++ signature :
        void __init__(_object*,saga::url,int)

__init__( (object)arg1, (session)arg2, (url)arg3) -> None :

    C++ signature :
        void __init__(_object*,saga::session,saga::url)

__init__( (object)arg1, (session)arg2, (url)arg3, (int)arg4) -> None :

    C++ signature :
        void __init__(_object*,saga::session,saga::url,int)

Overrides: object.__init__

get_size(...)

 

get_size( (file)arg1) -> int :
    returns the size of this file (plain)

    C++ signature :
        long long get_size(saga::filesystem::file)

get_size( (file)arg1, (routine_type)arg2) -> task :
    returns the size of this file (task based)

    C++ signature :
        saga::task get_size(saga::filesystem::file,saga::python::routine_type)

read(...)

 

read( (file)arg1, (buffer)arg2 [, (int)arg3]) -> int :
    reads the given number of bytes from the file (plain)

    C++ signature :
        long read(saga::filesystem::file,saga::mutable_buffer [,unsigned long])

read( (file)arg1, (routine_type)arg2, (buffer)arg3 [, (int)arg4]) -> task :
    reads the given number of bytes from the file (task based)

    C++ signature :
        saga::task read(saga::filesystem::file,saga::python::routine_type,saga::mutable_buffer [,unsigned long])

read( (file)arg1 [, (int)arg2]) -> object :
    reads the given number of bytes from the file (plain)

    C++ signature :
        boost::python::handle<_object> read(saga::filesystem::file [,unsigned long])

read( (file)arg1, (routine_type)arg2 [, (int)arg3]) -> task :
    reads the given number of bytes from the file (task based)

    C++ signature :
        saga::task read(saga::filesystem::file,saga::python::routine_type [,unsigned long])

seek(...)

 

seek( (file)arg1, (int)arg2, (seek_mode)arg3) -> int :
    repositions the current file pointer (plain)

    C++ signature :
        long long seek(saga::filesystem::file,long long,saga::filesystem::seek_mode)

seek( (file)arg1, (routine_type)arg2, (int)arg3, (seek_mode)arg4) -> task :
    repositions the current file pointer (task based)

    C++ signature :
        saga::task seek(saga::filesystem::file,saga::python::routine_type,long long,saga::filesystem::seek_mode)

write(...)

 

write( (file)arg1, (buffer)arg2 [, (int)arg3]) -> int :
    writes the given bytes to the file (plain)

    C++ signature :
        long write(saga::filesystem::file,saga::mutable_buffer [,unsigned long])

write( (file)arg1, (routine_type)arg2, (buffer)arg3 [, (int)arg4]) -> task :
    writes the given bytes to the file (task based)

    C++ signature :
        saga::task write(saga::filesystem::file,saga::python::routine_type,saga::mutable_buffer [,unsigned long])

write( (file)arg1, (object)arg2) -> int :
    writes the given bytes to the file (plain)

    C++ signature :
        long write(saga::filesystem::file,boost::python::api::object)

write( (file)arg1, (routine_type)arg2, (object)arg3) -> task :
    writes the given bytes to the file (task based)

    C++ signature :
        saga::task write(saga::filesystem::file,saga::python::routine_type,boost::python::api::object)