Program Listing for File Label.h

Program Listing for File Label.h#

Return to documentation for file (src/main/cpp/lib/Label.h)

#ifndef LABEL_H_
#define LABEL_H_

#include <string>
#include "TextProperties.h"

class Label
{
private:
  std::string m_text;
  TextProperties m_prop;
public:
  Label (const std::string& text, const TextProperties& prop) :
      m_text (text), m_prop (prop)
  {
  }

  const std::string&
  get_text () const
  {
    return m_text;
  }

  const TextProperties&
  get_properties () const
  {
    return m_prop;
  }
};


#endif /* LABEL_H_ */