Changeset 394 for trunk/include


Ignore:
Timestamp:
Apr 2, 2006 11:44:53 PM (18 years ago)
Author:
dkearney
Message:

improved tcl bindings, additions to xml parser including entity reference translations
so we dont get errors when user tries to put values like "<" and ">"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/core/RpLibrary.h

    r365 r394  
    3131#define E_QUEUE_SIZE 100
    3232
     33#define TRANSLATE 1
     34#define NO_TRANSLATE 0
     35
    3336#ifndef _RpLIBRARY_H
    3437#define _RpLIBRARY_H
     
    6669                                RpLibrary* fromObj = NULL);
    6770
    68         std::string get       ( std::string path = "");
    69         std::string getString ( std::string path = "");
     71        std::string get       ( std::string path = "",
     72                                int translateFlag = TRANSLATE);
     73        std::string getString ( std::string path = "",
     74                                int translateFlag = TRANSLATE);
    7075        double      getDouble ( std::string path = "");
    7176
     
    7378                            std::string value,
    7479                            std::string id = "",
    75                             int append = 0  );
     80                            int append = 0,
     81                            int translateFlag = TRANSLATE);
    7682
    7783        RpLibrary& put (    std::string path,
     
    402408                            std::stringstream& outString    );
    403409
     410        static int _translateIn (std::string& value, std::string& translated);
     411        static int _translateOut (char* inStr);
    404412
    405413};
Note: See TracChangeset for help on using the changeset viewer.