14 static const char*
fmt_oid =
"[OID=%08X-%08X]";
17 if( source.empty() )
ora::throwException(
"Provided token is empty.",
"PoolToken::parseToken");
19 std::pair<std::string,int> oid;
22 for(
char*
p1 = (
char*)tmp.c_str();
p1;
p1 = ::strchr(++
p1,
'[')) {
23 char*
p2 = ::strchr(
p1,
'=');
24 char*
p3 = ::strchr(
p1,
']');
27 if ( ::strncmp(
"[DB=",
p1, 4) == 0 ) {
29 }
else if ( ::strncmp(
"[CNT=",
p1, 5) == 0 ) {
32 }
else if ( ::strncmp(
fmt_oid,
p1, 5) == 0 ) {
51 ::sprintf(text,
fmt_oid, oid0, oid1);
69 Guid* gd =
reinterpret_cast<Guid*
>(buff);
std::string toString() const
static std::string null()
std::pair< std::string, int > parseToken(const std::string &objectId)
static const char * fmt_oid
std::string writeTokenContainerFragment(const std::string &containerName, const std::string &className)
static TypeWithDict byName(std::string const &name)
static const char * fmt_tech
void * genMD5(void *buffer, unsigned long len, void *code)
void throwException(const std::string &message, const std::string &methodName) __attribute__((noreturn))
std::vector< std::vector< double > > tmp
std::string getClassProperty(const std::string &propertyName, const edm::TypeWithDict &type)
std::string writeToken(const std::string &containerName, int oid0, int oid1, const std::string &className)
static std::string const source
std::string className(const T &t)