python-module/cpplmodule.cc
/**
 * Compress an uncompressed cppl policy and write the result to a file.
 */
Compress an uncompressed cppl policy and write the result to a file.
Compress an uncompressed cppl policy and write the result to a file .
static PyObject *cpplmodule_read_policy_from_file(PyObject *self, PyObject *args)
{
  PyObject *retval;
  char *cpplFilePath;
  string ret;
  if (!PyArg_ParseTuple(args, "s", &cpplFilePath)) {
    return NULL;
  }
  try {
    ret = cppl_read_policy_from_file(cpplFilePath);
  }
  catch (std::string s) {
    return PyErr_Format(CpplError, "%s", s.c_str());
  }
  retval = Py_BuildValue("s", ret.c_str());
  return retval;
}
static PyObject * cpplmodule_read_policy_from_file ( PyObject * self , PyObject * args ) { PyObject * retval ; char * cpplFilePath ; string ret ; if ( ! PyArg_ParseTuple ( args , " " , & cpplFilePath ) ) { return NULL ; } try { ret = cppl_read_policy_from_file ( cpplFilePath ) ; } catch ( std :: string s ) { return PyErr_Format ( CpplError , " " , s . c_str ( ) ) ; } retval = Py_BuildValue ( " " , ret . c_str ( ) ) ; return retval ; }
Compress an uncompressed cppl policy and write the result to a file.
Compress an uncompressed cppl policy and write the result to a file .