Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
/**
* DocumentRow.h
*
* Author: Jamey Calabrese
*/
#ifndef DOCUMENT_ROW_H
#define DOCUMENT_ROW_H
#include <memory>
#include <vector>
#include <string>
class DocumentRow
{
public:
DocumentRow(int maxWidth);
~DocumentRow();
void ClearRow();
int GetLength();
int GetFirstWordLength();
int GetLastWordLength();
bool AppendWord(std::shared_ptr<std::string> word);
std::string GetString();
private:
std::vector<std::shared_ptr<std::string>> row;
int maxWidth;
};
#endif /* DOCUMENT_ROW_H */