Classes | Enumerations | Functions

pp_Revision.h File Reference

#include "ut_types.h"
#include "ut_string_class.h"
#include "ut_vector.h"
#include "pp_AttrProp.h"

Go to the source code of this file.

Classes

class  PP_Revision
class  PP_RevisionAttr

Enumerations

enum  PP_RevisionType {
  PP_REVISION_NONE = 0, PP_REVISION_ADDITION = 0x01, PP_REVISION_DELETION = 0x02, PP_REVISION_FMT_CHANGE = 0x04,
  PP_REVISION_ADDITION_AND_FMT = 0x05
}

Functions

ABI_EXPORT const char * UT_getAttribute (const PP_AttrProp *pAP, const char *name, const char *def=0)
ABI_EXPORT std::string UT_getLatestAttribute (const PP_AttrProp *pAP, const char *name, const char *def)
 Like UT_getAttribute(name,atts,def) but check for a revision attribute and if found first look for the most recent value of atts in the revision.

Enumeration Type Documentation

Enumerator:
PP_REVISION_NONE 
PP_REVISION_ADDITION 
PP_REVISION_DELETION 
PP_REVISION_FMT_CHANGE 
PP_REVISION_ADDITION_AND_FMT 

Function Documentation

ABI_EXPORT const char* UT_getAttribute ( const PP_AttrProp pAP,
const char *  name,
const char *  def = 0 
)
ABI_EXPORT std::string UT_getLatestAttribute ( const PP_AttrProp pAP,
const char *  name,
const char *  def 
)

Like UT_getAttribute(name,atts,def) but check for a revision attribute and if found first look for the most recent value of atts in the revision.

References PP_AttrProp::getAttribute(), PP_RevisionAttr::getNthRevision(), PP_RevisionAttr::getRevisionsCount(), and UT_getAttribute().