Public Member Functions | Private Attributes
rms::article Class Reference

#include <article.h>

List of all members.

Public Member Functions

 article (int artid, std::string title, std::string content, int pageid, int index)
int get_artid ()
std::string get_content ()
int get_index ()
int get_pageid ()
std::string get_title ()

Private Attributes

int artid
std::string content
int index
int pageid
std::string title

Detailed Description

An article account object to store information on an article in the RMS.

Definition at line 28 of file article.h.


Constructor & Destructor Documentation

article::article ( int  artid,
std::string  title,
std::string  content,
int  pageid,
int  index 
)

Create an article with the given information.

Parameters:
artidthe article ID number
titlethe title of the article
contentthe HTML content of the article
pageidthe page ID this article belongs to
indexthe index on the page for this article

Definition at line 16 of file article.cpp.


Member Function Documentation

Get the article ID number.

Returns:
the article ID number

Definition at line 26 of file article.cpp.

Get the HTML content.

Returns:
the HTML content

Definition at line 36 of file article.cpp.

Get the index on the page for this article.

Returns:
the index on the page for this article

Definition at line 46 of file article.cpp.

Get the page ID this article belongs to.

Returns:
the page ID this article belongs to

Definition at line 41 of file article.cpp.

string article::get_title ( )

Get the title.

Returns:
the title

Definition at line 31 of file article.cpp.


Member Data Documentation

int rms::article::artid [private]

Definition at line 74 of file article.h.

std::string rms::article::content [private]

the title and HTML content

Definition at line 75 of file article.h.

int rms::article::index [private]

the article ID, page ID, and page index

Definition at line 74 of file article.h.

int rms::article::pageid [private]

Definition at line 74 of file article.h.

std::string rms::article::title [private]

Definition at line 75 of file article.h.


The documentation for this class was generated from the following files:


rmscpp
Author(s): Russell Toris
autogenerated on Sat Dec 28 2013 17:08:58