SheetState

The SheetState class is used to maintain important information about the Sheet as the user manipulates it, and should be thought of as a helper class that simply stores a number of dimension characteristics. The code required for SheetState is listed in Figure 5-17.

The {constructor} is simple in that its only job is to save passed parameters into class member variables.

Curl allows the declaration of a number of class constructors, as long as each has a unique name. The SheetState class makes use of this capability by declaring another constructor that will be used to construct a new SheetState object from an existing SheetState. In other words, we need a copy constructor. The code required is listed in Figure 5-18.

The {from} constructor ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.