#include <string>
#include <list>
#include <vector>
#include <map>
#include <typedefs.h>
#include <guiddef.h>
#include <sdbtypes.h>
#include "sdbwrite.h"
#include <sdbtagid.h>
Go to the source code of this file.
◆ sdbstring
◆ PlatformType
| Enumerator |
|---|
| PLATFORM_NONE | |
| PLATFORM_X86 | |
| PLATFORM_AMD64 | |
| PLATFORM_ANY | |
Definition at line 31 of file xml2sdb.h.
◆ str_to_enum()
Definition at line 51 of file xml2sdb.cpp.
52{
54 std::istringstream iss(
str);
56 while (std::getline(iss,
item,
','))
57 {
58 std::string trimmedItem =
item;
59 trimmedItem.erase(
remove_if(trimmedItem.begin(), trimmedItem.end(),
isspace), trimmedItem.end());
60 std::transform(trimmedItem.begin(), trimmedItem.end(), trimmedItem.begin(),
::toupper);
62 {
63 if (trimmedItem ==
p->name)
64 {
66 break;
67 }
68 }
69 }
71}
_STLP_INLINE_LOOP _ForwardIter remove_if(_ForwardIter __first, _ForwardIter __last, _Predicate __pred)
Referenced by parse_platform(), and ReadPlatformNode().
◆ platform_to_flag