The Vish Visualization Shell 0.3
Vish
Classes | Public Types | Static Public Member Functions | List of all members
Wizt::Slottify Class Reference

Utility class for dealing with conversions from VObject and its Slots to strings and vice versa. More...

#include <ocean/remotevish/Slottify.hpp>

Classes

struct  CollectionOfLines
 A collection of lines, such as parsed from an input string or file. More...
 
struct  GetObjectInfo
 Callback object for parsing object slot information. More...
 
struct  ObjectsWithSlots
 A set of lines with object name prefixed. More...
 
struct  SlotCollection
 A set of lines with only slot information, but no containing objects. More...
 
struct  SlotInfo
 Information describing a specific Slot. More...
 

Public Types

typedef set< WeakPtr< VObject > > ObjectList_t
 A list of VObjects.
 
typedef std::map< string, SlotInfoObjectSlots_t
 A set of textual description of slots.
 
typedef std::set< WeakPtr< VSlot > > SlotList_t
 A set of actual slots.
 

Static Public Member Functions

static void addAllObjects (ObjectsWithSlots &)
 Add all objects found in the object pool.
 
static void addObjects (ObjectsWithSlots &, const ObjectList_t &OL)
 Add objects from the given list.
 
static bool getObjectInfo (const string &remote_objects, GetObjectInfo &theGetObjectInfo)
 Split a string using new line characters into lines in a ObjectsWithSlots structure and parse them via the GetObjectInfo parameter.
 

Detailed Description

Utility class for dealing with conversions from VObject and its Slots to strings and vice versa.


Class Documentation

◆ Wizt::Slottify::SlotInfo

struct Wizt::Slottify::SlotInfo

Information describing a specific Slot.

Class Members
string Owner where this slot belongs to
ValueMap Properties
string Source where this slot's parameter came from
string Type the type of this slot, a C++ typeid
string Value the current value of this slot
RefPtr< VCreationPreferences > VP

Member Typedef Documentation

◆ ObjectSlots_t

typedef std::map<string, SlotInfo> Wizt::Slottify::ObjectSlots_t

A set of textual description of slots.

Contains a SlotInfo for various names that correspond to Slots.

Member Function Documentation

◆ addObjects()

void Wizt::Slottify::addObjects ( ObjectsWithSlots OW,
const ObjectList_t OL 
)
static

Add objects from the given list.

This function is the complement to getObjectInfo().