• Navigation überspringen
  • Zur Navigation
  • Zum Seitenende
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
  • FAUZur zentralen FAU Website
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Suche öffnen
  • English
  • Campo
  • StudOn
  • FAUdir
  • Stellenangebote
  • Lageplan
  • Hilfe im Notfall
  1. Friedrich-Alexander-Universität
  2. Technische Fakultät
  3. Department Informatik
Friedrich-Alexander-Universität Lehrstuhl für Informatik 4 (Systemsoftware)
Menu schließen
  • Lehrstuhl
    • Team
    • Aktuelles
    • Kontakt und Anfahrt
    • Leitbild
    • 50-jähriges Jubiläum
    Portal Lehrstuhl
  • Forschung
    • Forschungsbereiche
      • Betriebssysteme
      • Confidential Computing
      • Eingebettete Systemsoftware
      • Verteilte Systeme
    • Projekte
      • AIMBOS
      • BALu
      • BFT2Chain
      • DOSS
      • Mirador
      • NEON
      • PAVE
      • ResPECT
      • Watwa
    • Projektkampagnen
      • maRE
    • Seminar
      • Systemsoftware
    Portal Forschung
  • Publikationen
  • Lehre
    • Sommersemester 2025
      • Applied Software Architecture
      • Ausgewählte Kapitel der Systemsoftware
      • Betriebssystemtechnik
      • Projekt angewandte Systemsoftwaretechnik
      • System-Level Programming
      • Systemnahe Programmierung in C
      • Systemprogrammierung 1
      • Verteilte Systeme
    • Wintersemester 2024/25
      • Betriebssysteme
      • Middleware – Cloud Computing
      • Systemprogrammierung 2
      • Verlässliche Echtzeitsysteme
      • Virtuelle Maschinen
      • Web-basierte Systeme
    Portal Lehre
  • Examensarbeiten
  1. Startseite
  2. Extern

Extern

Bereichsnavigation: Lehre
  • Betriebssysteme
    • Vorlesung
      • Folien
    • Übung
      • Seminar
      • Aufgaben
      • Aufgabe 0: C++ Streams
        • Aufgabe 1: Ein-/Ausgabe
          • Aufgabe 2: Unterbrechungen
            • Aufgabe 3: Pro-/Epilog
              • Aufgabe 4: Kontextwechsel
                • Aufgabe 5: Zeitscheiben
                  • Aufgabe 6: Synchronisation
                    • Aufgabe 7: Anwendung
                      • Assembler Crashkurs
                        • C++ Crashkurs
                          • Entwicklungsumgebung
                            • FAQ
                              • Ruhmeshalle
                              • Evaluation

                              Aufgabe 0: C++ Streams

                              Public Member Functions | Static Public Member Functions | List of all members
                              FileOut Class Reference

                              Write text into file. More...

                              #include <test-stream/file_out.h>

                              + Inheritance diagram for FileOut:
                              Video: https://sys.cs.fau.de/lehre/ws23/bs/uebung/aufgabe-0/extern/classFileOut__inherit__graph.svg
                              [legend]
                              + Collaboration diagram for FileOut:
                              Video: https://sys.cs.fau.de/lehre/ws23/bs/uebung/aufgabe-0/extern/classFileOut__coll__graph.svg
                              [legend]

                              Public Member Functions

                               FileOut (const char *path)
                               Constructor. More...
                               
                              virtual ~FileOut ()
                               Destructor. More...
                               
                              const char * getPath ()
                               Get path of the output file. More...
                               
                              virtual void flush () override
                               Write the string to the open file. More...
                               
                              - Public Member Functions inherited from OutputStream
                               OutputStream ()
                               Default constructor. Initial number system is decimal. More...
                               
                              virtual ~OutputStream ()
                               Destructor.
                               
                              virtual void flush ()=0
                               Clears the buffer. More...
                               
                              OutputStream & operator<< (char c)
                               Print a single character. More...
                               
                              OutputStream & operator<< (unsigned char c)
                               Print a single character. More...
                               
                              OutputStream & operator<< (const char *string)
                               Printing a null-terminated string. More...
                               
                              OutputStream & operator<< (bool b)
                               Print a boolean value. More...
                               
                              OutputStream & operator<< (short ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (unsigned short ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (int ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (unsigned int ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (long ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (unsigned long ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (long long ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (unsigned long long ival)
                               Print an integral number in radix base More...
                               
                              OutputStream & operator<< (const void *ptr)
                               Print a pointer as hexadecimal number. More...
                               
                              OutputStream & operator<< (OutputStream &(*f)(OutputStream &))
                               Calls one of the manipulator functions. More...
                               
                              - Public Member Functions inherited from Stringbuffer
                              virtual ~Stringbuffer ()
                               Destructor (nothing to do here)
                               

                              Static Public Member Functions

                              static int count ()
                               Number of output files which are currently opened (with this class) More...
                               

                              Additional Inherited Members

                              - Public Attributes inherited from OutputStream
                              int base
                               Number system used for printing integral numbers (one of 2, 8, 10, or 16)
                               
                              - Protected Member Functions inherited from Stringbuffer
                               Stringbuffer ()
                               Constructor; Marks the buffer as empty. More...
                               
                              void put (char c)
                               Inserts a character into the buffer. More...
                               
                              virtual void flush ()=0
                               Flush the buffer contents. More...
                               
                              - Protected Attributes inherited from Stringbuffer
                              char buffer [80]
                               buffer containing characters that will be printed upon flush()
                               
                              long unsigned pos
                               current position in the buffer
                               

                              Detailed Description

                              Write text into file.

                              This class allows a comfortable output to a file only by using the elementary system calls open() / write() / close() and (optional) fsync(). The class is derived from OutputStream.

                              Constructor & Destructor Documentation

                              FileOut::FileOut ( const char *  path)
                              explicit

                              Constructor.

                              Opens the file for writing using the system call open().

                              Parameters
                              pathPath to the output file
                              Todo:
                              Implement constructor
                              FileOut::~FileOut ( )
                              virtual

                              Destructor.

                              Close the output file (using the system call close())

                              Todo:
                              Implement destructor

                              Member Function Documentation

                              const char * FileOut::getPath ( )

                              Get path of the output file.

                              Returns
                              Path to output file (as defined in constructor)
                              Todo:
                              Implement Method
                              int FileOut::count ( )
                              static

                              Number of output files which are currently opened (with this class)

                              Returns
                              Number of active files
                              Todo:
                              Implement Method
                              void FileOut::flush ( )
                              overridevirtual

                              Write the string to the open file.

                              The implementation should only use the system calls write() and fsync().

                              Todo:
                              Implement virtual Method

                              Implements OutputStream.


                              The documentation for this class was generated from the following files:
                              • test-stream/file_out.h
                              • test-stream/file_out.cc
                              Friedrich-Alexander-Universität
                              Erlangen-Nürnberg

                              Schlossplatz 4
                              91054 Erlangen
                              • Impressum
                              • Datenschutz
                              • Barrierefreiheit
                              • Facebook
                              • RSS Feed
                              • Xing
                              Nach oben