Views
Prototypes Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions | Friends
IlvGroupFile Class Reference

Base class for handling input/output of groups. More...

#include <ilviews/protos/groupio.h>

Inheritance diagram for IlvGroupFile:
IlvGroupInputFile IlvGroupOutputFile

Public Member Functions

IlFloat getVersion ()
 Returns the file version. More...
 
void setVersion (IlFloat v)
 Lets you set the version of an output file in order to write files compatible with previous versions of the prototypes library. More...
 

Friends

class IlvGroup
 
class IlvGroupNode
 

Detailed Description

Base class for handling input/output of groups.

library ilvproto

Group files should not be created directly by the application: they are created internally by the load() and save() methods of the group, or by the prototype-specific subclasses ofIlvManagerwhen savingilv` files. You will never need to use this class directly, unless you write new subclasses of IlvGroupNode.

See also
IlvGroupInputFile, IlvGroupNode, IlvGroupOutputFile.

Member Function Documentation

◆ getVersion()

IlFloat IlvGroupFile::getVersion ( )

Returns the file version.

Returns
The version of the prototypes library in which the file is read or written. This version is a float number that includes major and minor version numbers. The file format version is:
  • 0 for files prior to Rogue Wave Views 3.1
  • 1.0 for Rogue Wave Views 3.1 files
  • 1.1 for Rogue Wave Views 4.0 files
  • 1.2 for Rogue Wave Views 4.02 and above files

◆ setVersion()

void IlvGroupFile::setVersion ( IlFloat  v)

Lets you set the version of an output file in order to write files compatible with previous versions of the prototypes library.

These files may not be readable with previous versions of the library if they use features that were not available.

Parameters
vVersion of the file (float number), including major and minor versions. The file format version is:
  • 0 for files prior to Rogue Wave Views 3.1
  • 1.0 for Rogue Wave Views 3.1 files
  • 1.1 for Rogue Wave Views 4.0 files
  • 1.2 for Rogue Wave Views 4.02 and above files