3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Message/Message.cpp

Committer:
niallfrancis
Date:
2017-05-13
Revision:
85:422d0a1b95cf
Parent:
83:0d3572a8a851

File content as of revision 85:422d0a1b95cf:

#include "Message.h"

/**
    @file :     Message.cpp
    @authors :   Radu Marcu, Jacob Williams, Niall Francis, Arron Burch
    
    @section DESCRIPTION
    
    This is the Message class, which is used by the MessageLogger to pass messages into the mail box
    awaiting printing by the logger. The Message class is also used by the MessageLogger to get the
    contents of the mail box back out to be printed.
*/


/**
    Copies the content from ptr into the Message object text char array.
    
    @param ptr :    Pointer to char array containing message.
*/
void Message::copy(char* ptr)
{
    strncpy(text, ptr, 256);
}

/**
    @return text :  Returns the text char array stored in Message object.
*/
char* Message::getText()
{
    return text;
}