Reader small image

You're reading from  C++ Windows Programming

Product typeBook
Published inSep 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781786464224
Edition1st Edition
Languages
Right arrow
Author (1)
Stefan Björnander
Stefan Björnander
author image
Stefan Björnander

Stefan Björnander is the author of the books Microsoft Windows C++ and C++ Windows Programming. He holds a Master of Engineering and a Licentiate in Computer Science. He has worked as a software developer and as a teacher in computer science and mathematics for many years.
Read more about Stefan Björnander

Right arrow

The InfoList class


The InfoList class is an auxiliary class with template methods that stores information in a character list; information can be added and extracted; or written to, or read from, a buffer.

InfoList .h

namespace SmallWindows { 
  class InfoList { 
    public: 
      template <class AlignType> void Align(); 
      template <class ListType> 
        void AddValue(const ListType value); 
      template <class ListType> 
        void PeekValue(ListType& value, int index); 
      template <class ListType> void GetValue(ListType& value); 
      template <class CharType> 
        void AddString(basic_string<CharType> text); 
      template <class CharType> 
        basic_string<CharType> GetString(); 
      void FromBuffer(const void* voidBuffer, int size); 
      void ToBuffer(void* voidBuffer); 
      int Size() const {return list.Size();} 
 ...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
C++ Windows Programming
Published in: Sep 2016Publisher: PacktISBN-13: 9781786464224

Author (1)

author image
Stefan Björnander

Stefan Björnander is the author of the books Microsoft Windows C++ and C++ Windows Programming. He holds a Master of Engineering and a Licentiate in Computer Science. He has worked as a software developer and as a teacher in computer science and mathematics for many years.
Read more about Stefan Björnander