ProfileSection.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  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. */
  18. /***********************************************************************************************
  19. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : LevelEdit *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/LevelEdit/ProfileSection.h $Author:: Patrick_s *
  25. * *
  26. * $Modtime:: 4/15/99 6:30p $Revision:: 1 *
  27. * *
  28. *---------------------------------------------------------------------------------------------*
  29. * Functions: *
  30. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  31. #if defined(_MSC_VER)
  32. #pragma once
  33. #endif
  34. #ifndef __PROFILE_SECTION_CLASS_H
  35. #define __PROFILE_SECTION_CLASS_H
  36. /////////////////////////////////////////////////////////////////////////////
  37. //
  38. // ProfileSectionClass
  39. //
  40. class ProfileSectionClass
  41. {
  42. public:
  43. ///////////////////////////////////////////////////
  44. //
  45. // Public constructors/destructors
  46. //
  47. ProfileSectionClass (LPCTSTR section_data)
  48. : m_pszSectionData (section_data) { Before_First (); }
  49. virtual ~ProfileSectionClass (void) {}
  50. ///////////////////////////////////////////////////
  51. //
  52. // Public methods
  53. //
  54. void Before_First (void) { m_pszCurrentKey = m_pszSectionData; }
  55. bool Get_Next_Key (CString *key_name, CString *key_value);
  56. private:
  57. ///////////////////////////////////////////////////
  58. //
  59. // Private constructors/destructors
  60. //
  61. ProfileSectionClass (void) {}
  62. ///////////////////////////////////////////////////
  63. //
  64. // Private member data
  65. //
  66. LPCTSTR m_pszSectionData;
  67. LPCTSTR m_pszCurrentKey;
  68. };
  69. #endif //__PROFILE_SECTION_CLASS_H