/src/print_inode_to.h

http://ext3grep.googlecode.com/ · C Header · 41 lines · 12 code · 6 blank · 23 comment · 0 complexity · d0a94385994f472cf4ff7e6cc1041fec MD5 · raw file

  1. // ext3grep -- An ext3 file system investigation and undelete tool
  2. //
  3. //! @file print_inode_to.h Declaration of function print_inode_to.
  4. //
  5. // Copyright (C) 2008, by
  6. //
  7. // Carlo Wood, Run on IRC <carlo@alinoe.com>
  8. // RSA-1024 0x624ACAD5 1997-01-26 Sign & Encrypt
  9. // Fingerprint16 = 32 EC A7 B6 AC DB 65 A6 F6 F6 55 DD 1C DC FF 61
  10. //
  11. // This program is free software: you can redistribute it and/or modify
  12. // it under the terms of the GNU General Public License as published by
  13. // the Free Software Foundation, either version 2 of the License, or
  14. // (at your option) any later version.
  15. //
  16. // This program is distributed in the hope that it will be useful,
  17. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. // GNU General Public License for more details.
  20. //
  21. // You should have received a copy of the GNU General Public License
  22. // along with this program. If not, see <http://www.gnu.org/licenses/>.
  23. #ifndef PRINT_INODE_TO_H
  24. #define PRINT_INODE_TO_H
  25. #ifndef USE_PCH
  26. #include <iostream>
  27. #endif
  28. #include "inode.h"
  29. void print_inode_to(std::ostream& os, Inode const& inode);
  30. inline void print_inode_to(std::ostream& os, InodePointer inoderef)
  31. {
  32. // We can dereference inoderef here because it is known that print_inode_to does not keep a pointer or reference to the inode.
  33. print_inode_to(os, *inoderef);
  34. }
  35. #endif // PRINT_INODE_TO_H