rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvProtoLibrary Class Reference

Simple prototype library implementation based on file system directories. More...

#include <ilviews/protos/proto.h>

Inheritance diagram for IlvProtoLibrary:
IlvAbstractProtoLibrary

List of all members.

Public Member Functions

 IlvProtoLibrary (IlvDisplay *display, const char *name=0, const char *path=0)
 Creates a new, empty prototype library named name.
const char * getPath ()
 Returns the library directory name, or 0 if no directory was specified.
void setPath (const char *path)
 Changes the library directory name.

Static Public Member Functions

static IlBoolean GetSingleFileMode ()
 Returns the current mode used to save prototype libraries.
static void SetSingleFileMode (IlBoolean singleFile)
 Sets the mode used to save prototype libraries.

Friends

class IlvGroup
class IlvProtoInstance
class IlvPrototype

Detailed Description

Simple prototype library implementation based on file system directories.

Library: ilvproto

An IlvProtoLibrary object stores prototype descriptions in a file or in several files contained in the same directory, depending on its mode:

By default, prototype libraries are stored in single-file mode, unless SetSingleFileMode(IlFalse) was called. The load method accepts prototype libraries in single-file or directory mode indifferently. Prototype libraries can be stored in "data blocks" (also called "resource files") to build self-contained executables (see the chapter "Packaging Rogue Wave Views Applications" in the Rogue Wave Views Foundation User's Manual). If the prototype library was saved in single-file mode, you only need to include the .ipl as a data block. If the library was saved in directory mode, you must include the .ipl file and all the .ilv, .ivp, and .ijs files as data blocks. Furthermore, the names of the data blocks for the .ilv, .ivp, and .ijs files must be prefixed with the name of the library (for example: "mylib/myproto.ivp"). Usually, you will not need to manipulate IlvProtoLibrary objects in your code. Prototypes are loaded automatically when you load a file containing prototype instances. You can also load a prototype explicitly using the IlvLoadPrototype function (See "IlvPrototype / Related External Functions").

See also:
IlvPrototype.

Constructor & Destructor Documentation

IlvProtoLibrary::IlvProtoLibrary ( IlvDisplay display,
const char *  name = 0,
const char *  path = 0 
)

Creates a new, empty prototype library named name.

The path argument specifies the directory where the prototype library file(s) will be located. The directory path may contain environment variable names such as ${ILVHOME}. If path is NULL, the library file is searched for using the display search path. The library file name is built by adding a .ipl suffix to the library name.


Member Function Documentation

static IlBoolean IlvProtoLibrary::GetSingleFileMode (  )  [static]

Returns the current mode used to save prototype libraries.

Returns:
IlTrue if the save if done in a single file, and IlFalse otherwise.
void IlvProtoLibrary::setPath ( const char *  path  ) 

Changes the library directory name.

Parameters:
path The new directory name of the library. The string is copied.
static void IlvProtoLibrary::SetSingleFileMode ( IlBoolean  singleFile  )  [static]

Sets the mode used to save prototype libraries.

If singleFile is IlTrue, each prototype library will be saved into a single .ipl file containing all the prototype descriptions. If singleFile is IlFalse, each prototype will be saved independently into a .ilv, a .ivp, and a .ijs file. The default mode is the single-file mode: use this method only if you need each prototype to be saved independently.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.