#include <seTransmittal.h>
Public Member Functions | |
seTransmittal () | |
Constructor. | |
seTransmittal (const seTransmittal &other) | |
virtual | ~seTransmittal () |
virtual seTransmittal & | operator= (const seTransmittal &other) |
virtual bool | isValid () const |
Returns true if this transmittal handle is valid. | |
virtual bool | isOpened () const |
Returns true if this transmittal is opened. | |
virtual bool | isEditable () const |
virtual bool | isModified () const |
virtual const char * | getFileName () const |
Returns the file location of this transmittal. | |
virtual SE_Access_Mode | getAccessMode () const |
Returns the access mode used to open this transmittal. | |
virtual SE_Encoding | getEncoding () const |
virtual void | close () |
virtual void | getRootObject (seObject &obj) const |
virtual void | setRootObject (seObject &obj) |
virtual void | createObject (seObject &obj, SE_DRM_Class type=SE_DRM_CLS_NULL) |
virtual void | deleteObject (seObject &obj) |
virtual void | deleteObjectTree (seObject &obj) |
virtual void | getObjectFromID (const char *str_obj_ID, seObject &obj) const |
virtual void | getPublishedObject (const char *obj_label, seObject &obj) const |
virtual void | getPublishedObjectsIterator (seIterator &iter) const |
virtual void | setURN (const char *urn) |
virtual const char * | getURN () const |
virtual unsigned int | getITRReferenceCount () const |
virtual const char * | getITRReference (unsigned int urn_index) const |
virtual unsigned int | getITRReferenceLabelCount (unsigned int urn_index) const |
virtual const char * | getITRReferenceLabel (unsigned int urn_index, unsigned int label_index) const |
virtual const char * | getUniqueID () const |
virtual void | cloneTo (seTransmittal &other) const |
virtual bool | isSameAs (const seTransmittal &other) const |
virtual void | release () |
virtual bool | isInWorkspace (const seWorkspace &wksp) const |
seWorkspace wksp; seTransmittal xmtal; // create a transmittal wksp.createTransmittal(fileName, xmtal); ... create Transmittal Root object as needed xmtal.setRoot(rootObj); ... add top level objects as needed ... add a hierarchy of objects as needed xmtal.close(); // open the transmittal wksp.openTransmittalByFile(fileName, xmtal); xmtal.getRootObject(rootObj); ... process objects
seException | on error. |
|
|
|
Copy constructor, same as cloneTo().
|
|
Destructor, releases the transmittal handle.
|
|
Clones this instance handle into another transmittal handle. Used to make another seTransmittal refer to the same transmittal this instance refers to.
|
|
Close the transmittal. Closing a transmittal forces the writing of all opened and edited objects. You do not need to call close() explicitly if you intend the transmittal to be closed when the workspace handle goes out of scope. So for example, this code is perfectly legal since the transmittal is closed when the variable "wksp" goes out of scope: { seWorkspace wksp; seTransmittal xmtal; wksp.openTransmittalByFile(...); ... work on transmittal ... let wksp and xmtal go out of scope } { seWorkspace wksp; seTransmittal xmtal; wksp.createTransmittal("my_test.stf"); ... work on transmittal wksp.openTransmittal("my_test.stf"); <<< EXCEPTION } { seWorkspace wksp; seTransmittal xmtal; wksp.createTransmittal("my_test.stf"); ... work on transmittal xmtal.close(); // explicit close of transmittal wksp.openTransmittal("my_test.stf"); // Now OK }
|
|
Creates a transmittal object of a specific DRM type. The object created can only be used within the transmittal that created it. That is, you can't add objects from one transmittal into another. You can pass seDRMBase-derived concrete DRM classes to this method, in which case you don't need to specify the DRM type since it is implicit by the class of the parameter. For example, you can do: seDRMAccess access; xmtal.createObject(access); ... seDRMAccess access; xmtal.createObject(access, SE_DRM_CLS_ACCESS); ... If you do pass a true seObject to this method, then you MUST provide a concrete DRM class for the type parameter or an exception will occur. For example: seObject troot; xmtal.createObject(troot, SE_DRM_CLS_TRANSMITTAL_ROOT); ...
|
|
Deletes an object from the transmittal. Prior to calling this function, the user must have removed all relationships that
In addition, note that deleting The transmittal must be editable for this operation to succeed.
|
|
Deletes an object and all its descendants from the transmittal by recursively removing all its relationships. This method removes the object passed in from its parent and deletes all its component objects. Since objects can be shared with other parts of the transmittal, the behaviour is to skip deletion of shared objects (but they are still removed as components of objects in the tree).
|
|
|
|
Returns the encoding type of this transmittal. Encoding identifiers are used to differentiate between storage mechanisms for SEDRIS transmittals. SEDRIS transmittals stored in STF format return the encoding type SE_ENC_STF. |
|
|
|
Returns the URN for an ITR referenced transmittal by index.
|
|
Returns the number of ITR referenced transmittals. A transmittal may contain objects that actually reference objects in other transmittals. The reference is both by a transmittal URN and the published label for an object in that transmittal. This method returns the total number of transmittals being referenced.
|
|
Returns the label (by label index) being used to reference an object in a particular URN-referenced transmittal (by URN index).
|
|
Returns the number of labels being used to reference objects in a particular URN-referenced transmittal (by URN index).
|
|
Get an object in the transmittal by its identifier. Every object in a transmittal has an identifier that can be used to refer to it. If you have the identifier for an object (see seObject::getID()), you can use this method to retrieve that object directly without having to traverse the transmittal hierarchy.
|
|
Get an object in the transmittal based on its published label. An object that is published is available for reference from other transmittals using ITR. This method allows for direct access to a particular object based on the label that was used to publish it.
|
|
Initializes an iterator with the list of objects published by the transmittal for possible reference using ITR. You can use this method to get a hold of all the published objects in a transmittal. Sample usage: seIterator iter; seObject obj; xmtal.getPublishedObjectsIterator(iter); while (iter.getNext(obj)) { unsigned int i, cnt = obj.getPublishedLabelCount(); for (i=0; i < cnt; i++) { cout << obj.getPublishedLabel(i) << endl; } }
|
|
Get the object that has been stored as the root of the transmittal hierarchy.
|
|
Returns the transmittal unique identifier. Unique identifiers are assigned to transmittals every time a transmittal is modified and saved (for example after creation or update on transmittal closing). The unique identifier returned by this method is a character string suitable for printing, comparison, or storage operations. Unique identifiers are automatically managed by the API, so there are no methods that allow you to change or set them to specific values. You can use unique identifiers to compare two transmittals to see if they are in fact the same transmittals (for example two transmittals may have different file names but contain the same data). cout << "Unique identifier is " << xmtal.getUniqueID() << endl;
|
|
Returns the transmittal URN associated with this transmittal.
|
|
Returns true if this transmittal is opened and editable. A transmittal is "editable" if it is opened in create or edit mode.
|
|
Returns true if this transmittal was opened in the passed-in workspace.
|
|
Returns true if this transmittal was modified (for example if objects were added or deleted). |
|
|
|
Returns true if the transmittal passed in is a clone of this one (i.e. both handles reference the same transmittal). |
|
|
|
Copy operator, same as cloneTo().
|
|
Releases the handle to the transmittal. Generally there is no need to call this method, since release() is called by any change of handle or when the object goes out of scope.
|
|
Set the root object for the transmittal hierarchy. The root object of a transmittal is the root of the DRM hierarchy stored in the transmittal. You can continue adding objects to the root object after calling this method.
|
|
Set (or modify) the URN for the transmittal. You are encouraged to always assign a URN to transmittals you create. Every transmittal should have a unique URN. The URN set by this method is stored in the transmittal file. URNs are of the form "urn:sedris:xyzcorp:xyz_data_orlando:1".
|
SEDRIS Transmittal Access C++ API | 4.0.0 beta - 14 Jul 2004 |
Copyright © 2004 SEDRIS | Docs by Doxygen 1.3.2 |