[Home] [Prev] [Next] [Up]


XGArgStream class

Provides access to the arguments used to specify a particular view.

Usage:

#include <XView.h>

class XGArgStream;

Description

This is the third parameter of the XGViewFactory::CreateView class, and provides access to the arguments in the 'VRes' resource. This provides several methods for extracting those arguments.

In general, you would pass this to the parent class constructor which constructs this view, and then grab the arguments specific to your custom view.

Argument Accessors

bool XGArgStream::GetBoolean()

Get the next boolean argument.

long XGArgStream::GetInteger()

Get the next integer argument

void XGArgStream::GetString(short len, char *string)

Get the next text argument. The len parameter specifies the maximum size of the string receiving this argument; if the stored argument is larger, the extra characters are ignored.


[Home] [Prev] [Next] [Up]