Guest User

Untitled

a guest
May 1st, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.16 KB | None | 0 0
  1. /**
  2.  *   MTGos - LowLevel OS
  3.  *   Copyright (C) 2013 Morten Delenk
  4.  *
  5.  *   This program is free software: you can redistribute it and/or modify
  6.  *   it under the terms of the GNU General Public License as published by
  7.  *   the Free Software Foundation, either version 3 of the License, or
  8.  *   (at your option) any later version.
  9.  *
  10.  *   This program is distributed in the hope that it will be useful,
  11.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *   GNU General Public License for more details.
  14.  *
  15.  *   You should have received a copy of the GNU General Public License
  16.  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17.  *   Please Read "LICENSE" for the Complete License
  18. **/
  19. struct Sector
  20. {
  21.   int SektorLength; // z.B. 512, 1024, 2048, 4096, ...
  22.   unsigned char * sektor; // Zeiger auf Beginn des Sektors
  23.   int sektorNum;
  24. };
  25. class NullDrive
  26. {
  27. public:
  28.   NullDrive();
  29.   ~NullDrive();
  30.   void operator >> (Sector& val);
  31.   NullDrive& operator << (Sector val);
  32.   Sector getCurrentSectorPos();
  33. private:
  34.   int Sectornum;
  35.   int Sectorlenth;
  36. };
Advertisement
Add Comment
Please, Sign In to add comment