blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
2d259b707c4613a47cc9f22c40525edfb9135768
c1865f58b1cf34f55c1cc47b217c44d4aca3e707
/4_5.cpp
1f7a7dc384b205bb5cee09575cf72452c7341a70
[]
no_license
chris3will/BIGINT
4cff078b16e875fd638b8892b7c8879802b0e430
19519108872a66593a88a22199caa9d95ec028fd
refs/heads/master
2020-03-22T14:18:12.031534
2018-07-08T13:08:42
2018-07-08T13:08:42
140,168,220
1
0
null
null
null
null
GB18030
C++
false
false
408
cpp
#include "BigInt.h" #include<iostream> #include<iomanip> using namespace std; int main() { BigInt x,y; cout<<"持续输入两个整数X,Y中间用空格隔开,输出结果如下"<<endl; while(cin>>x>>y) { cout<<"一下判断结果为1是真,为0是假!"<<endl; cout<<"X>y? "<<setw(6)<<(x>y)<<endl; cout<<"x<y? "<<setw(6)<<(x<y)<<endl; cout<<"x==y? "<<setw(5)<<(x==y)<<endl; } return 0; }
efcb993c7d57d2f156d579ae70fd66ece53eefb3
9f5646571e6d7d52a4c6ef0b6f021f4801727288
/acoustic_iso_lib/python/python_float/pyAcoustic_iso_float_wemva.cpp
d1707803b560b9b93594aa2fb97023d4c313842c
[]
no_license
kristiantorres/acoustic_isotropic_operators
79a765b86b627afc1a2068226837e25eb62da33b
a1aa5c595c7829a2405d54ffb4a3190d5e75f8fc
refs/heads/master
2023-06-12T15:27:38.619733
2021-07-07T22:26:18
2021-07-07T22:26:18
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,795
cpp
#include <pybind11/chrono.h> #include <pybind11/complex.h> #include <pybind11/functional.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <pybind11/iostream.h> #include "wemvaExtShotsGpu.h" namespace py = pybind11; using namespace SEP; //Definition of Born operator PYBIND11_MODULE(pyAcoustic_iso_float_wemva, clsGeneric) { py::add_ostream_redirect(clsGeneric, "ostream_redirect"); py::class_<wemvaExtShotsGpu, std::shared_ptr<wemvaExtShotsGpu>>(clsGeneric,"wemvaExtShotsGpu") .def(py::init<std::shared_ptr<SEP::float2DReg>, std::shared_ptr<paramObj>, std::vector<std::shared_ptr<deviceGpu>>, std::vector<std::shared_ptr<SEP::float2DReg>>, std::vector<std::shared_ptr<deviceGpu>>, std::vector<std::shared_ptr<SEP::float2DReg>>>(), "Initialize a wemvaExtShotsGpu") .def("forward", (void (wemvaExtShotsGpu::*)(const bool, const std::shared_ptr<float2DReg>, std::shared_ptr<float3DReg>)) &wemvaExtShotsGpu::forward, "Forward") .def("adjoint", (void (wemvaExtShotsGpu::*)(const bool, const std::shared_ptr<float2DReg>, std::shared_ptr<float3DReg>)) &wemvaExtShotsGpu::adjoint, "Adjoint") .def("forwardWavefield", (void (wemvaExtShotsGpu::*)(const bool, const std::shared_ptr<float2DReg>, std::shared_ptr<float3DReg>)) &wemvaExtShotsGpu::forwardWavefield, "Forward wavefield") .def("adjointWavefield",(void (wemvaExtShotsGpu::*)(const bool, const std::shared_ptr<float2DReg>, std::shared_ptr<float3DReg>)) &wemvaExtShotsGpu::adjointWavefield, "Adjoint wavefield") .def("setVel",(void (wemvaExtShotsGpu::*)(std::shared_ptr<float2DReg>)) &wemvaExtShotsGpu::setVel,"Function to set background velocity") .def("dotTest",(bool (wemvaExtShotsGpu::*)(const bool, const float)) &wemvaExtShotsGpu::dotTest,"Dot-Product Test") ; }
29ae8852f7aa3941510aaaac352f4f2b079fae1a
beae7fbd023804e56edf7c97be994b89c9aaaa10
/Cursor.cpp
ea2e280e0d51596c8a8de9172e9478b0f88b01fe
[]
no_license
haz93/OFEM
dc433704309c489676952313b3d4b0b48129337f
79b997a3b2e7ef7c3e0d03e1e5c884a95bd243d0
refs/heads/master
2023-01-07T09:00:40.370369
2020-11-08T19:33:21
2020-11-08T19:33:21
267,773,281
3
1
null
null
null
null
UTF-8
C++
false
false
2,107
cpp
#include "StandardCursor.hpp" #ifdef SFML_SYSTEM_WINDOWS sf::StandardCursor::StandardCursor(const sf::StandardCursor::TYPE t) { switch (t) { case sf::StandardCursor::WAIT: Cursor = LoadCursor(NULL, IDC_WAIT); break; case sf::StandardCursor::HAND: Cursor = LoadCursor(NULL, IDC_HAND); break; case sf::StandardCursor::NORMAL: Cursor = LoadCursor(NULL, IDC_ARROW); break; case sf::StandardCursor::TEXT: Cursor = LoadCursor(NULL, IDC_IBEAM); break; //For more cursor options on Windows go here: // http://msdn.microsoft.com/en-us/library/ms648391%28v=vs.85%29.aspx } } void sf::StandardCursor::set(const sf::WindowHandle& aWindowHandle) const { SetClassLongPtr(aWindowHandle, GCLP_HCURSOR, reinterpret_cast<LONG_PTR>(Cursor)); } sf::StandardCursor::~StandardCursor() { // Nothing to do for destructor : // no memory has been allocated (shared ressource principle) } #elif defined(SFML_SYSTEM_LINUX) sf::StandardCursor::StandardCursor(const sf::StandardCursor::TYPE t) { display = XOpenDisplay(NULL); switch (t) { case sf::StandardCursor::WAIT: Cursor = XCreateFontCursor(display, XC_watch); break; case sf::StandardCursor::HAND: Cursor = XCreateFontCursor(display, XC_hand1); break; case sf::StandardCursor::NORMAL: Cursor = XCreateFontCursor(display, XC_left_ptr); break; case sf::StandardCursor::TEXT: Cursor = XCreateFontCursor(display, XC_xterm); break; // For more cursor options on Linux go here: // http://www.tronche.com/gui/x/xlib/appendix/b/ } } void sf::StandardCursor::set(const sf::WindowHandle& aWindowHandle) const { XDefineCursor(display, aWindowHandle, Cursor); XFlush(display); } sf::StandardCursor::~StandardCursor() { XFreeCursor(display, Cursor); delete display; display = NULL; } #else #error This OS is not yet supported by the cursor library. #endif
2a9a0daa5f6645183e7085c95d2aeec7aaf31519
91a882547e393d4c4946a6c2c99186b5f72122dd
/Source/XPSP1/NT/ds/security/services/scerpc/client/infwrite.cpp
f293bba18726bfc7d2cc3261c54dc0be9df98e8f
[]
no_license
IAmAnubhavSaini/cryptoAlgorithm-nt5src
94f9b46f101b983954ac6e453d0cf8d02aa76fc7
d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2
refs/heads/master
2023-09-02T10:14:14.795579
2021-11-20T13:47:06
2021-11-20T13:47:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
148,756
cpp
/*++ Copyright (c) 1996 Microsoft Corporation Module Name: infwrite.c Abstract: Routines to set information into security profiles (INF layout). Author: Jin Huang (jinhuang) 07-Dec-1996 Revision History: --*/ #include "headers.h" #include "scedllrc.h" #include "infp.h" #include "sceutil.h" #include "splay.h" #include <io.h> #include <sddl.h> #pragma hdrstop const TCHAR c_szCRLF[] = TEXT("\r\n"); // // Forward references // SCESTATUS SceInfpWriteSystemAccess( IN PCWSTR ProfileName, IN PSCE_PROFILE_INFO pSCEinfo, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWritePrivileges( IN PCWSTR ProfileName, IN PSCE_PRIVILEGE_ASSIGNMENT pPrivileges, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWriteUserSettings( IN PCWSTR ProfileName, IN PSCE_NAME_LIST pProfiles, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWriteGroupMembership( IN PCWSTR ProfileName, IN PSCE_GROUP_MEMBERSHIP pGroupMembership, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWriteServices( IN PCWSTR ProfileName, IN PCWSTR SectionName, IN PSCE_SERVICES pServices, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); DWORD SceInfpWriteOneService( IN PSCE_SERVICES pService, OUT PSCE_NAME_LIST *pNameList, OUT PDWORD ObjectSize, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWriteObjects( IN PCWSTR ProfileName, IN PCWSTR SectionName, IN PSCE_OBJECT_ARRAY pObjects, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); DWORD SceInfpWriteOneObject( IN PSCE_OBJECT_SECURITY pObject, OUT PSCE_NAME_LIST *pNameList, OUT PDWORD ObjectSize, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWriteAuditing( IN PCWSTR ProfileName, IN PSCE_PROFILE_INFO pSCEinfo, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpAppendAuditing( IN PCWSTR ProfileName, IN PSCE_PROFILE_INFO pSCEinfo, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS ScepWriteOneIntValueToProfile( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN PWSTR KeyName, IN DWORD Value ); SCESTATUS SceInfpWriteAuditLogSetting( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN DWORD LogSize, IN DWORD Periods, IN DWORD RetentionDays, IN DWORD RestrictGuest, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWriteInfSection( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN DWORD TotalSize, IN PWSTR *EachLineStr, IN DWORD *EachLineSize, IN DWORD StartIndex, IN DWORD EndIndex, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); #define SCEINF_ADD_EQUAL_SIGN 1 #define SCEINF_APPEND_SECTION 2 DWORD SceInfpWriteListSection( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN DWORD TotalSize, IN PSCE_NAME_LIST ListLines, IN DWORD Option, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); LONG SceInfpConvertNameListToString( IN LSA_HANDLE LsaHandle, IN PCWSTR KeyText, IN PSCE_NAME_LIST Fields, IN BOOL bOverwrite, OUT PWSTR *Strvalue, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); LONG SceInfpConvertMultiSZToString( IN PCWSTR KeyText, IN UNICODE_STRING Fields, OUT PWSTR *Strvalue, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS ScepAllocateAndCopy( OUT PWSTR *Buffer, OUT PDWORD BufSize, IN DWORD MaxSize, IN PWSTR SrcBuf ); SCESTATUS SceInfpBreakTextIntoMultiFields( IN PWSTR szText, IN DWORD dLen, OUT LPDWORD pnFields, OUT LPDWORD *arrOffset ); SCESTATUS SceInfpWriteKerberosPolicy( IN PCWSTR ProfileName, IN PSCE_KERBEROS_TICKET_INFO pKerberosInfo, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); SCESTATUS SceInfpWriteRegistryValues( IN PCWSTR ProfileName, IN PSCE_REGISTRY_VALUE_INFO pRegValues, IN DWORD ValueCount, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); DWORD SceInfpWriteOneValue( IN PCWSTR ProfileName, IN SCE_REGISTRY_VALUE_INFO RegValue, IN BOOL bOverwrite, OUT PSCE_NAME_LIST *pNameList, OUT PDWORD ObjectSize ); SCESTATUS ScepWriteSecurityProfile( IN PCWSTR InfProfileName, IN AREA_INFORMATION Area, IN PSCE_PROFILE_INFO InfoBuffer, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ); DWORD ScepCreateTempFiles( IN PWSTR InfProfileName, OUT PWSTR *ppszTempFileName, OUT PWSTR *ppszTargetTempName ); DWORD ScepWritePrivateProfileSection( IN LPCWSTR SectionName, IN LPTSTR pData, IN LPCWSTR FileName, IN BOOL bOverwrite ); DWORD ScepAppendProfileSection( IN LPCWSTR SectionName, IN LPCWSTR FileName, IN LPTSTR pData ); #define SCEP_PROFILE_WRITE_SECTIONNAME 0x1 #define SCEP_PROFILE_GENERATE_KEYS 0x2 #define SCEP_PROFILE_CHECK_DUP 0x4 DWORD ScepOverwriteProfileSection( IN LPCWSTR SectionName, IN LPCWSTR FileName, IN LPTSTR pData, IN DWORD dwFlags, IN OUT PSCEP_SPLAY_TREE pKeys ); DWORD ScepWriteStrings( IN HANDLE hFile, IN BOOL bUnicode, IN PWSTR szPrefix, IN DWORD dwPrefixLen, IN PWSTR szString, IN DWORD dwStrLen, IN PWSTR szSuffix, IN DWORD dwSuffixLen, IN BOOL bCRLF ); SCESTATUS WINAPI SceWriteSecurityProfileInfo( IN PCWSTR InfProfileName, IN AREA_INFORMATION Area, IN PSCE_PROFILE_INFO InfoBuffer, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) // see comments in ScepWriteSecurityProfile { return( ScepWriteSecurityProfile( InfProfileName, Area, InfoBuffer, TRUE, // overwrite the section(s) Errlog ) ); } SCESTATUS WINAPI SceAppendSecurityProfileInfo( IN PCWSTR InfProfileName, IN AREA_INFORMATION Area, IN PSCE_PROFILE_INFO InfoBuffer, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) // see comments in ScepWriteSecurityProfile { if ( InfoBuffer == NULL ) return SCESTATUS_SUCCESS; SCESTATUS rc=SCESTATUS_SUCCESS; /* AREA_INFORMATION Area2=0; HINF hInf=NULL; PSCE_PROFILE_INFO pOldBuffer=NULL; PSCE_OBJECT_ARRAY pNewKeys=NULL, pNewFiles=NULL; PSCE_OBJECT_ARRAY pOldKeys=NULL, pOldFiles=NULL; if ( (Area & AREA_REGISTRY_SECURITY) && (InfoBuffer->pRegistryKeys.pAllNodes != NULL) && (InfoBuffer->pRegistryKeys.pAllNodes->Count > 0) ) { Area2 |= AREA_REGISTRY_SECURITY; } if ( (Area & AREA_FILE_SECURITY) && (InfoBuffer->pFiles.pAllNodes != NULL ) && (InfoBuffer->pFiles.pAllNodes->Count > 0 ) ) { Area2 |= AREA_FILE_SECURITY; } if ( Area2 > 0 ) { // // query existing info from the template and check for duplicate // because these two sections do not support INF key name // any error occured in duplicate checking is ignored // rc = SceInfpOpenProfile( InfProfileName, &hInf ); if ( SCESTATUS_SUCCESS == rc ) { rc = SceInfpGetSecurityProfileInfo( hInf, Area2, &pOldBuffer, NULL ); if ( SCESTATUS_SUCCESS == rc ) { // // files/keys in the template are queried // now check if there is any existing files/keys // DWORD i,j,idxNew; if ( (Area2 & AREA_REGISTRY_SECURITY) && (pOldBuffer->pRegistryKeys.pAllNodes != NULL) && (pOldBuffer->pRegistryKeys.pAllNodes->Count > 0) ) { // // there are existing keys // now create a new buffer // pNewKeys = (PSCE_OBJECT_ARRAY)ScepAlloc(0,sizeof(SCE_OBJECT_ARRAY)); if ( pNewKeys ) { pNewKeys->Count = 0; pNewKeys->pObjectArray = (PSCE_OBJECT_SECURITY *)ScepAlloc(LPTR, (pOldBuffer->pRegistryKeys.pAllNodes->Count)*sizeof(PSCE_OBJECT_SECURITY)); if ( pNewKeys->pObjectArray ) { // // checking duplicate now // idxNew=0; for ( i=0; i<InfoBuffer->pRegistryKeys.pAllNodes->Count; i++) { if ( InfoBuffer->pRegistryKeys.pAllNodes->pObjectArray[i] == NULL ) continue; for ( j=0; j<pOldBuffer->pRegistryKeys.pAllNodes->Count; j++) { if ( pOldBuffer->pRegistryKeys.pAllNodes->pObjectArray[j] == NULL ) continue; // check if this one has been checked if ( pOldBuffer->pRegistryKeys.pAllNodes->pObjectArray[j]->Status == 255 ) continue; if ( _wcsicmp(InfoBuffer->pRegistryKeys.pAllNodes->pObjectArray[i]->Name, pOldBuffer->pRegistryKeys.pAllNodes->pObjectArray[j]->Name) == 0 ) { // // found it // pOldBuffer->pRegistryKeys.pAllNodes->pObjectArray[j]->Status = 255; break; } } if ( j >= pOldBuffer->pRegistryKeys.pAllNodes->Count ) { // // did not find it, now link it to the new buffer // pNewKeys->pObjectArray[idxNew] = InfoBuffer->pRegistryKeys.pAllNodes->pObjectArray[i]; idxNew++; } } pNewKeys->Count = idxNew; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; ScepFree(pNewKeys); pNewKeys = NULL; } } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; } } if ( (Area2 & AREA_FILE_SECURITY) && (pOldBuffer->pFiles.pAllNodes != NULL ) && (pOldBuffer->pFiles.pAllNodes->Count > 0 ) ) { // // there are existing files // now create a new buffer // pNewFiles = (PSCE_OBJECT_ARRAY)ScepAlloc(0,sizeof(SCE_OBJECT_ARRAY)); if ( pNewFiles ) { pNewFiles->Count = 0; pNewFiles->pObjectArray = (PSCE_OBJECT_SECURITY *)ScepAlloc(LPTR, (pOldBuffer->pFiles.pAllNodes->Count)*sizeof(PSCE_OBJECT_SECURITY)); if ( pNewFiles->pObjectArray ) { // // checking duplicate now // idxNew=0; for ( i=0; i<InfoBuffer->pFiles.pAllNodes->Count; i++) { if ( InfoBuffer->pFiles.pAllNodes->pObjectArray[i] == NULL ) continue; for ( j=0; j<pOldBuffer->pFiles.pAllNodes->Count; j++) { if ( pOldBuffer->pFiles.pAllNodes->pObjectArray[j] == NULL ) continue; // check if this one has been checked if ( pOldBuffer->pFiles.pAllNodes->pObjectArray[j]->Status == 255 ) continue; if ( _wcsicmp(InfoBuffer->pFiles.pAllNodes->pObjectArray[i]->Name, pOldBuffer->pFiles.pAllNodes->pObjectArray[j]->Name) == 0 ) { // // found it // pOldBuffer->pFiles.pAllNodes->pObjectArray[j]->Status = 255; break; } } if ( j >= pOldBuffer->pFiles.pAllNodes->Count ) { // // did not find it, now link it to the new buffer // pNewFiles->pObjectArray[idxNew] = InfoBuffer->pFiles.pAllNodes->pObjectArray[i]; idxNew++; } } pNewFiles->Count = idxNew; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; ScepFree(pNewFiles); pNewFiles = NULL; } } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; } } } SceInfpCloseProfile(hInf); SceFreeProfileMemory(pOldBuffer); } } if ( pNewKeys != NULL ) { // // use the purged buffer and save the old one // pOldKeys = InfoBuffer->pRegistryKeys.pAllNodes; InfoBuffer->pRegistryKeys.pAllNodes = pNewKeys; } if ( pNewFiles != NULL ) { // // use the purged buffer and save the old one // pOldFiles = InfoBuffer->pFiles.pAllNodes; InfoBuffer->pFiles.pAllNodes = pNewFiles; } */ rc = ScepWriteSecurityProfile( InfProfileName, Area, InfoBuffer, FALSE, // append to the section(s) Errlog ); /* if ( pNewKeys != NULL ) { // // reset the old pointer and free the new buffer // InfoBuffer->pRegistryKeys.pAllNodes = pOldKeys; ScepFree(pNewKeys->pObjectArray); ScepFree(pNewKeys); } if ( pNewFiles != NULL ) { // // use the purged buffer and save the old one // InfoBuffer->pFiles.pAllNodes = pOldFiles; ScepFree(pNewFiles->pObjectArray); ScepFree(pNewFiles); } */ return rc; } DWORD ScepCreateTempFiles( IN PWSTR InfProfileName, OUT PWSTR *ppszTempFileName, OUT PWSTR *ppszTargetTempName ) /* Description: This function is to get a temporary file name for system context (in system directory) as well as for normal user context (in user profile), and copy the input template data to the temporary file. Arguments: InfProfileName - the template file to copy from ppszTempFileName - the name of the temporary file to work on ppszTargetTempName - the backup copy of the template file in sysvol */ { if ( InfProfileName == NULL || ppszTempFileName == NULL || ppszTargetTempName == NULL) { return(SCESTATUS_INVALID_PARAMETER); } HANDLE Token=NULL; BOOL bSystem=FALSE; LONG Len=0, nSize=0, nRequired=0; PWSTR pTempName=NULL; DWORD rc=0; PWSTR pTemp=NULL; *ppszTempFileName = NULL; *ppszTargetTempName = NULL; // // check if we should have temp file on the target too. // only do this if the target file is in sysvol // if ((0xFFFFFFFF != GetFileAttributes(InfProfileName)) && InfProfileName[0] == L'\\' && InfProfileName[1] == L'\\' && (pTemp=wcschr(InfProfileName+2, L'\\')) ) { if ( _wcsnicmp(pTemp, L"\\sysvol\\", 8) == 0 ) { // // this is a file on sysvol // Len = wcslen(InfProfileName); *ppszTargetTempName = (PWSTR)LocalAlloc(LPTR, (Len+1)*sizeof(WCHAR)); if ( *ppszTargetTempName ) { wcsncpy(*ppszTargetTempName, InfProfileName, Len-4); wcscat(*ppszTargetTempName, L".tmp"); } else { rc = ERROR_NOT_ENOUGH_MEMORY; return rc; } } } // // determine if the current thread/process is system context // if this function fails, it's treated a regular user and the temp // file will be created in user profile location. // if (!OpenThreadToken( GetCurrentThread(), TOKEN_QUERY, FALSE, &Token)) { if (!OpenProcessToken( GetCurrentProcess(), TOKEN_QUERY, &Token)) Token = NULL; } if ( Token != NULL ) { ScepIsSystemContext(Token, &bSystem); CloseHandle(Token); } // // get a temp file name. // if ( bSystem ) { Len = lstrlen(TEXT("\\security\\sce00000.tmp")); nRequired = GetSystemWindowsDirectory(NULL, 0); } else { // // get the temp file name from user's temp directory // the environment variable "TMP" is used here because this write API // is always called in user's process (except called from system context) // Len = lstrlen(TEXT("\\sce00000.tmp")); nRequired = GetEnvironmentVariable( L"TMP", NULL, 0 ); } if ( nRequired > 0 ) { // // allocate buffer big enough for the temp file name // pTempName = (LPTSTR)LocalAlloc(0, (nRequired+2+Len)*sizeof(TCHAR)); if ( pTempName ) { if ( bSystem ) { nSize = GetSystemWindowsDirectory(pTempName, nRequired); } else { nSize = GetEnvironmentVariable(L"TMP", pTempName, nRequired ); } if ( nSize > 0 ) { pTempName[nSize] = L'\0'; } else { // // if failed to query the information, should fail // rc = GetLastError(); #if DBG == 1 SceDebugPrint(DEB_ERROR, "Error %d to query temporary file path\n", rc); #endif LocalFree(pTempName); pTempName = NULL; } } else { rc = ERROR_NOT_ENOUGH_MEMORY; } } else { rc = GetLastError(); #if DBG == 1 SceDebugPrint(DEB_ERROR, "Error %d to query temporary file path\n", rc); #endif } // // check if the temp file name is already used. // if ( ERROR_SUCCESS == rc && pTempName && nSize <= nRequired ) { ULONG seed=GetTickCount(); ULONG ranNum=0; ranNum = RtlRandomEx(&seed); // // make sure that it's not over 5 digits (99999) // if ( ranNum > 99999 ) ranNum = ranNum % 99999; swprintf(pTempName+nSize, bSystem ? L"\\security\\sce%05d.tmp\0" : L"\\sce%05d.tmp\0", ranNum); DWORD index=0; while ( 0xFFFFFFFF != GetFileAttributes(pTempName) && index <= 99999) { ranNum = RtlRandomEx(&seed); // // make sure that it's not over 5 digits (99999) // if ( ranNum > 99999 ) ranNum = ranNum % 99999; index++; swprintf(pTempName+nSize, bSystem ? L"\\security\\sce%05d.tmp\0" : L"\\sce%05d.tmp\0", ranNum); } if ( index >= 100000 ) { // // can't get a temp file name // rc = ERROR_DUP_NAME; #if DBG == 1 SceDebugPrint(DEB_ERROR, "Can't get an unique temporary file name\n", rc); #endif } } else if ( ERROR_SUCCESS == rc ) { rc = ERROR_INSUFFICIENT_BUFFER; } // // make a copy of the temp file // if ( ERROR_SUCCESS == rc ) { // // detect if the profile exist and if it does, make a local copy // DWORD dwAttr = GetFileAttributes(InfProfileName); if ( 0xFFFFFFFF != dwAttr ) { if ( FALSE == CopyFile( InfProfileName, pTempName, FALSE ) ) { rc = GetLastError(); #if DBG == 1 SceDebugPrint(DEB_ERROR, "CopyFile to temp failed with %d\n", rc); #endif } } } if ( ERROR_SUCCESS == rc ) { *ppszTempFileName = pTempName; } else { if ( pTempName ) { // // make usre the file is not left over // DeleteFile(pTempName); LocalFree(pTempName); } if ( *ppszTargetTempName ) { LocalFree(*ppszTargetTempName); *ppszTargetTempName = NULL; } } return(rc); } // // function definitions // SCESTATUS ScepWriteSecurityProfile( IN PCWSTR szInfProfileName, IN AREA_INFORMATION Area, IN PSCE_PROFILE_INFO InfoBuffer, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /**++ Function Description: This function writes all or part of information into a SCP profile in INF format. Arguments: ProfileName - The INF file name to write to Area - area(s) for which to get information from AREA_SECURITY_POLICY AREA_PRIVILEGES AREA_USER_SETTINGS AREA_GROUP_MEMBERSHIP AREA_REGISTRY_SECURITY AREA_SYSTEM_SERVICE AREA_FILE_SECURITY InfoBuffer - Information to write. The Header of InfoBuffer contains SCP/SAP file name or file handle. bOverwrite - TRUE = overwrite the section(s) with InfoBuffer FALSE = append InfoBuffer to the section(s) Errlog - A buffer to hold all error codes/text encountered when parsing the INF file. If Errlog is NULL, no further error information is returned except the return DWORD Return Value: SCESTATUS_SUCCESS SCESTATUS_PROFILE_NOT_FOUND SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_CORRUPT_PROFILE SCESTATUS_INVALID_DATA -- **/ { SCESTATUS rc=SCESTATUS_SUCCESS; DWORD Win32rc; DWORD SDsize; PSCE_PROFILE_INFO pNewBuffer=NULL; AREA_INFORMATION Area2=0; PWSTR InfProfileName=NULL; PWSTR TargetTempName=NULL; if ( szInfProfileName == NULL || InfoBuffer == NULL || Area == 0 ) { return(SCESTATUS_INVALID_PARAMETER); } // // get a temp file name // if this is system context, the temp file is under %windir%\security\scexxxxx.tmp // else the temp file will be in the user profile location. // // temp file name must be unique to handle simultaneous changes to different templates (GPOs) // temp file created under system context will be cleaned up when system booted up. // Win32rc = ScepCreateTempFiles((PWSTR)szInfProfileName, &InfProfileName, &TargetTempName); if ( Win32rc != ERROR_SUCCESS ) { ScepBuildErrorLogInfo( Win32rc, Errlog, SCEERR_ERROR_CREATE, TEXT("Temp") ); return(ScepDosErrorToSceStatus(Win32rc)); } // // initialize the error log buffer // if ( Errlog ) { *Errlog = NULL; } // // get Revision of this template // INT Revision = GetPrivateProfileInt( L"Version", L"Revision", 0, InfProfileName ); if ( Revision == 0 ) { // // maybe a old version of inf file, or // it's a brand new file // TCHAR szBuf[20]; szBuf[0] = L'\0'; SDsize = GetPrivateProfileString(TEXT("Version"), TEXT("signature"), TEXT(""), szBuf, 20, InfProfileName ); if ( SDsize == 0 ) { // // this is a new inf file // Revision = SCE_TEMPLATE_MAX_SUPPORTED_VERSION; // // make it unicode file, if error continues to use ansi // SetupINFAsUCS2(InfProfileName); } } // // system access // if ( Area & AREA_SECURITY_POLICY ) { rc = SceInfpWriteSystemAccess( InfProfileName, InfoBuffer, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; // // system auditing // if ( bOverwrite ) { rc = SceInfpWriteAuditing( InfProfileName, InfoBuffer, Errlog ); } else { rc = SceInfpAppendAuditing( InfProfileName, InfoBuffer, Errlog ); } if( rc != SCESTATUS_SUCCESS ) goto Done; // // kerberos policy // rc = SceInfpWriteKerberosPolicy( InfProfileName, InfoBuffer->pKerberosInfo, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; // // regsitry values // rc = SceInfpWriteRegistryValues( InfProfileName, InfoBuffer->aRegValues, InfoBuffer->RegValueCount, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } // // privilege/rights // if ( Area & AREA_PRIVILEGES ) { rc = SceInfpWritePrivileges( InfProfileName, InfoBuffer->OtherInfo.scp.u.pInfPrivilegeAssignedTo, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } // // privilege/rights and account profiles for each user // #if 0 if ( Area & AREA_USER_SETTINGS ) { rc = SceInfpWriteUserSettings( InfProfileName, InfoBuffer->OtherInfo.scp.pAccountProfiles, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } #endif // // group memberships // if ( Area & AREA_GROUP_MEMBERSHIP ) { rc = SceInfpWriteGroupMembership( InfProfileName, InfoBuffer->pGroupMembership, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } if ( Revision == 0 ) { // // old SDDL format, convert it // Area2 = ~Area & (AREA_REGISTRY_SECURITY | AREA_FILE_SECURITY | AREA_DS_OBJECTS | AREA_SYSTEM_SERVICE ); if ( Area2 > 0 ) { HINF hInf; rc = SceInfpOpenProfile( InfProfileName, &hInf ); if ( SCESTATUS_SUCCESS == rc ) { rc = SceInfpGetSecurityProfileInfo( hInf, Area2, &pNewBuffer, NULL ); SceInfpCloseProfile(hInf); if ( SCESTATUS_SUCCESS != rc ) { goto Done; } } else { // // the template can't be opened (new profile) // ignore the error // rc = SCESTATUS_SUCCESS; } } } // // registry keys security // if ( Area & AREA_REGISTRY_SECURITY ) { if ( !bOverwrite && pNewBuffer ) { rc = SceInfpWriteObjects( InfProfileName, szRegistryKeys, pNewBuffer->pRegistryKeys.pAllNodes, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } rc = SceInfpWriteObjects( InfProfileName, szRegistryKeys, InfoBuffer->pRegistryKeys.pAllNodes, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } else if ( pNewBuffer ) { // // should convert this section to new SDDL format // rc = SceInfpWriteObjects( InfProfileName, szRegistryKeys, pNewBuffer->pRegistryKeys.pAllNodes, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } // // file security // if ( Area & AREA_FILE_SECURITY ) { if ( !bOverwrite && pNewBuffer ) { rc = SceInfpWriteObjects( InfProfileName, szFileSecurity, pNewBuffer->pFiles.pAllNodes, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } rc = SceInfpWriteObjects( InfProfileName, szFileSecurity, InfoBuffer->pFiles.pAllNodes, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } else if ( pNewBuffer ) { // // should convert this section to new SDDL format // rc = SceInfpWriteObjects( InfProfileName, szFileSecurity, pNewBuffer->pFiles.pAllNodes, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } #if 0 // // DS security // if ( Area & AREA_DS_OBJECTS ) { if ( !bOverwrite && pNewBuffer ) { rc = SceInfpWriteObjects( InfProfileName, szDSSecurity, pNewBuffer->pDsObjects.pAllNodes, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } rc = SceInfpWriteObjects( InfProfileName, szDSSecurity, InfoBuffer->pDsObjects.pAllNodes, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } else if ( pNewBuffer ) { // // should convert this section to new SDDL format // rc = SceInfpWriteObjects( InfProfileName, szDSSecurity, pNewBuffer->pDsObjects.pAllNodes, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } #endif if ( Area & AREA_SYSTEM_SERVICE ) { if ( !bOverwrite && pNewBuffer ) { rc = SceInfpWriteServices( InfProfileName, szServiceGeneral, pNewBuffer->pServices, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } rc = SceInfpWriteServices( InfProfileName, szServiceGeneral, InfoBuffer->pServices, bOverwrite, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } else if ( pNewBuffer ) { // // should convert this section to new SDDL format // rc = SceInfpWriteServices( InfProfileName, szServiceGeneral, pNewBuffer->pServices, TRUE, Errlog ); if( rc != SCESTATUS_SUCCESS ) goto Done; } Done: if ( rc == SCESTATUS_SUCCESS ) { // // always write [Version] section. // WCHAR tmp[64]; memset(tmp, 0, 64*2); wcscpy(tmp, L"signature=\"$CHICAGO$\""); swprintf(tmp+wcslen(tmp)+1,L"Revision=%d\0\0", SCE_TEMPLATE_MAX_SUPPORTED_VERSION); WritePrivateProfileSection( L"Version", tmp, InfProfileName); // // all data are successfully written // if ( TargetTempName && (0xFFFFFFFF != GetFileAttributes(szInfProfileName)) ) { // // now make a copy of the sysvol file first on the target directory // if ( FALSE == CopyFile( szInfProfileName, TargetTempName, FALSE ) ) { Win32rc = GetLastError(); ScepBuildErrorLogInfo( Win32rc, Errlog, IDS_ERROR_COPY_TEMPLATE, Win32rc, TargetTempName ); rc = ScepDosErrorToSceStatus(Win32rc); #if DBG == 1 SceDebugPrint(DEB_ERROR, "CopyFile to backup fails with %d\n", Win32rc); #endif } } if ( SCESTATUS_SUCCESS == rc ) { // // now copy the temp file to the real sysvol file // make several attempts // int indx=0; while (indx < 5 ) { indx++; Win32rc = ERROR_SUCCESS; rc = SCESTATUS_SUCCESS; if ( FALSE == CopyFile( InfProfileName, szInfProfileName, FALSE ) ) { Win32rc = GetLastError(); ScepBuildErrorLogInfo( Win32rc, Errlog, IDS_ERROR_COPY_TEMPLATE, Win32rc, szInfProfileName ); rc = ScepDosErrorToSceStatus(Win32rc); #if DBG == 1 SceDebugPrint(DEB_WARN, "%d attempt of CopyFile fails with %d\n", indx, Win32rc); #endif } else { break; } Sleep(100); } ASSERT(ERROR_SUCCESS == Win32rc); } } // // delete the temp file for both success and failure case // DeleteFile(InfProfileName); LocalFree(InfProfileName); if ( TargetTempName ) { // // leave the file there if copy fails. // if ( rc == SCESTATUS_SUCCESS ) DeleteFile(TargetTempName); LocalFree(TargetTempName); } return(rc); } SCESTATUS SceInfpWriteSystemAccess( IN PCWSTR ProfileName, IN PSCE_PROFILE_INFO pSCEinfo, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /*++ Routine Description: This routine writes system access area information to the INF file in section [System Access]. Arguments: ProfileName - The profile to write to pSCEinfo - the profile info (SCP) to write. Errlog - A buffer to hold all error codes/text encountered when parsing the INF file. If Errlog is NULL, no further error information is returned except the return DWORD Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_CORRUPT_PROFILE SCESTATUS_INVALID_DATA --*/ { SCESTATUS rc=SCESTATUS_SUCCESS; DWORD Value; PWSTR Strvalue=NULL; DWORD TotalSize=0; SCE_KEY_LOOKUP AccessSCPLookup[] = { {(PWSTR)TEXT("MinimumPasswordAge"), offsetof(struct _SCE_PROFILE_INFO, MinimumPasswordAge), 'D'}, {(PWSTR)TEXT("MaximumPasswordAge"), offsetof(struct _SCE_PROFILE_INFO, MaximumPasswordAge), 'D'}, {(PWSTR)TEXT("MinimumPasswordLength"), offsetof(struct _SCE_PROFILE_INFO, MinimumPasswordLength), 'D'}, {(PWSTR)TEXT("PasswordComplexity"), offsetof(struct _SCE_PROFILE_INFO, PasswordComplexity), 'D'}, {(PWSTR)TEXT("PasswordHistorySize"), offsetof(struct _SCE_PROFILE_INFO, PasswordHistorySize), 'D'}, {(PWSTR)TEXT("LockoutBadCount"), offsetof(struct _SCE_PROFILE_INFO, LockoutBadCount), 'D'}, {(PWSTR)TEXT("ResetLockoutCount"), offsetof(struct _SCE_PROFILE_INFO, ResetLockoutCount), 'D'}, {(PWSTR)TEXT("LockoutDuration"), offsetof(struct _SCE_PROFILE_INFO, LockoutDuration), 'D'}, {(PWSTR)TEXT("RequireLogonToChangePassword"), offsetof(struct _SCE_PROFILE_INFO, RequireLogonToChangePassword), 'D'}, {(PWSTR)TEXT("ForceLogoffWhenHourExpire"), offsetof(struct _SCE_PROFILE_INFO, ForceLogoffWhenHourExpire), 'D'}, {(PWSTR)TEXT("NewAdministratorName"), 0, 'A'}, {(PWSTR)TEXT("NewGuestName"), 0, 'G'}, {(PWSTR)TEXT("ClearTextPassword"), offsetof(struct _SCE_PROFILE_INFO, ClearTextPassword), 'D'}, {(PWSTR)TEXT("LSAAnonymousNameLookup"), offsetof(struct _SCE_PROFILE_INFO, LSAAnonymousNameLookup), 'D'}, {(PWSTR)TEXT("EnableAdminAccount"), offsetof(struct _SCE_PROFILE_INFO, EnableAdminAccount), 'D'}, {(PWSTR)TEXT("EnableGuestAccount"), offsetof(struct _SCE_PROFILE_INFO, EnableGuestAccount), 'D'} }; DWORD cAccess = sizeof(AccessSCPLookup) / sizeof(SCE_KEY_LOOKUP); DWORD i, j; UINT Offset; PWSTR EachLine[25]; DWORD EachSize[25]; DWORD Len; if (ProfileName == NULL || pSCEinfo == NULL ) return(SCESTATUS_INVALID_PARAMETER); for ( i=0, j=0; i<cAccess; i++) { EachLine[i] = NULL; EachSize[i] = 0; // // get settings in AccessLookup table // Offset = AccessSCPLookup[i].Offset; Value = 0; Strvalue = NULL; Len = wcslen(AccessSCPLookup[i].KeyString); switch ( AccessSCPLookup[i].BufferType ) { case 'B': // // Int Field // Value = *((BOOL *)((CHAR *)pSCEinfo+Offset)) ? 1 : 0; EachSize[j] = Len+5; break; case 'D': // // Int Field // Value = *((DWORD *)((CHAR *)pSCEinfo+Offset)); if ( Value != SCE_NO_VALUE ) EachSize[j] = Len+15; break; default: // // String Field // switch( AccessSCPLookup[i].BufferType ) { case 'A': Strvalue = pSCEinfo->NewAdministratorName; break; case 'G': Strvalue = pSCEinfo->NewGuestName; break; default: Strvalue = *((PWSTR *)((CHAR *)pSCEinfo+Offset)); break; } if ( Strvalue != NULL ) { EachSize[j] = Len+5+wcslen(Strvalue); } break; } if ( EachSize[j] <= 0 ) continue; if ( bOverwrite ) { Len=(EachSize[j]+1)*sizeof(WCHAR); EachLine[j] = (PWSTR)ScepAlloc( LMEM_ZEROINIT, Len); if ( EachLine[j] == NULL ) { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } if (AccessSCPLookup[i].BufferType != 'B' && AccessSCPLookup[i].BufferType != 'D') { swprintf(EachLine[j], L"%s = \"%s\"", AccessSCPLookup[i].KeyString, Strvalue); } else { swprintf(EachLine[j], L"%s = %d", AccessSCPLookup[i].KeyString, Value); EachSize[j] = wcslen(EachLine[j]); } } else { // // in append mode, we have to write each line separately // if (AccessSCPLookup[i].BufferType == 'B' || AccessSCPLookup[i].BufferType == 'D') { ScepWriteOneIntValueToProfile( ProfileName, szSystemAccess, AccessSCPLookup[i].KeyString, Value ); } else if ( Strvalue ) { WritePrivateProfileString (szSystemAccess, AccessSCPLookup[i].KeyString, Strvalue, ProfileName); } } TotalSize += EachSize[j]+1; j++; } // // writes the profile section // if ( bOverwrite ) { if ( j > 0 ) { rc = SceInfpWriteInfSection( ProfileName, szSystemAccess, TotalSize+1, EachLine, &EachSize[0], 0, j-1, Errlog ); } else { WritePrivateProfileSection( szSystemAccess, NULL, ProfileName); } } Done: for ( i=0; i<cAccess; i++ ) { if ( EachLine[i] != NULL ) { ScepFree(EachLine[i]); } EachLine[i] = NULL; EachSize[i] = 0; } return(rc); } SCESTATUS SceInfpWritePrivileges( IN PCWSTR ProfileName, IN PSCE_PRIVILEGE_ASSIGNMENT pPrivileges, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes privilege assignments info from the SCP buffer into the INF file in section [Privilege Rights]. Arguments: ProfileName - the inf profile name pPrivileges - the privilege assignment buffer. Errlog - The error list encountered inside inf processing. Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { SCESTATUS rc; PSCE_PRIVILEGE_ASSIGNMENT pCurRight=NULL; PSCE_NAME_LIST pNameList=NULL; LONG Keysize; PWSTR Strvalue=NULL; DWORD TotalSize; // // [Privilege Rights] section // if (ProfileName == NULL ) return(SCESTATUS_INVALID_PARAMETER); if ( pPrivileges == NULL ) { // // the buffer doesn't contain any privileges // empty the section in the file // if ( bOverwrite ) { WritePrivateProfileString( szPrivilegeRights, NULL, NULL, ProfileName ); } return(SCESTATUS_SUCCESS); } // // open lsa policy handle for sid/name lookup // LSA_HANDLE LsaHandle=NULL; rc = RtlNtStatusToDosError( ScepOpenLsaPolicy( POLICY_LOOKUP_NAMES | POLICY_VIEW_LOCAL_INFORMATION, &LsaHandle, TRUE )); if ( ERROR_SUCCESS != rc ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_ADD, TEXT("LSA") ); return(ScepDosErrorToSceStatus(rc)); } for (pCurRight=pPrivileges, TotalSize=0; pCurRight != NULL; pCurRight = pCurRight->Next) { // // Each privilege assignment contains the privilege's name and a list // of user/groups to assign to. // Keysize = SceInfpConvertNameListToString( LsaHandle, pCurRight->Name, pCurRight->AssignedTo, bOverwrite, &Strvalue, Errlog ); if ( Keysize >= 0 && Strvalue ) { if ( bOverwrite ) { rc = ScepAddToNameList(&pNameList, Strvalue, Keysize); if ( rc != SCESTATUS_SUCCESS ) { //win32 error code ScepBuildErrorLogInfo( rc, Errlog, SCEERR_ADD, pCurRight->Name ); goto Done; } TotalSize += Keysize + 1; } else { // // in append mode, write one line at a time // WritePrivateProfileString( szPrivilegeRights, pCurRight->Name, Strvalue, ProfileName ); } } else if ( Keysize == -1 ) { rc = ERROR_EXTENDED_ERROR; goto Done; } ScepFree(Strvalue); Strvalue = NULL; } // // writes the profile section // if ( bOverwrite ) { rc = SceInfpWriteListSection( ProfileName, szPrivilegeRights, TotalSize+1, pNameList, 0, // do not overwrite section, do not add equal sign Errlog ); } Done: if ( Strvalue != NULL ) ScepFree(Strvalue); ScepFreeNameList(pNameList); if ( LsaHandle ) { LsaClose(LsaHandle); } return( ScepDosErrorToSceStatus(rc) ); } SCESTATUS SceInfpWriteUserSettings( IN PCWSTR ProfileName, IN PSCE_NAME_LIST pProfiles, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes user settings information from the SCP buffer into the INF file in section [Account Profiles]. Arguments: ProfileName - the inf profile name pProfiles - a list of profiles to write to the section. Errlog - The error list encountered inside inf processing. Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_OTHER_ERROR -- */ { DWORD rc; PSCE_NAME_LIST pCurProfile; DWORD TotalSize; if (ProfileName == NULL ) return(SCESTATUS_INVALID_PARAMETER); if ( pProfiles == NULL ) return(SCESTATUS_SUCCESS); for (pCurProfile=pProfiles, TotalSize=0; pCurProfile != NULL; pCurProfile = pCurProfile->Next) { TotalSize += wcslen(pCurProfile->Name) + 3; // " =" } // // write the accountProfile section // rc = SceInfpWriteListSection( ProfileName, szAccountProfiles, TotalSize+1, pProfiles, SCEINF_ADD_EQUAL_SIGN, Errlog ); if ( rc != NO_ERROR ) { ScepBuildErrorLogInfo(rc, Errlog, SCEERR_WRITE_INFO, szAccountProfiles ); return(ScepDosErrorToSceStatus(rc)); } else return(SCESTATUS_SUCCESS); } SCESTATUS SceInfpWriteGroupMembership( IN PCWSTR ProfileName, IN PSCE_GROUP_MEMBERSHIP pGroupMembership, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes group membership information to the SCP INF file in [Group Membership] section. Arguments: ProfileName - the INF profile name pGroupMembership - the group membership info Errlog - the error list for errors encountered in this routine. Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { PSCE_GROUP_MEMBERSHIP pGroupMembers=NULL; PWSTR Strvalue=NULL; LONG Keysize; SCESTATUS rc=SCESTATUS_SUCCESS; DWORD TotalSize; PSCE_NAME_LIST pNameList=NULL; PWSTR Keyname=NULL; DWORD Len; PWSTR SidString=NULL; if (ProfileName == NULL ) return(SCESTATUS_INVALID_PARAMETER); if ( pGroupMembership == NULL ) { // // the buffer doesn't contain any groups // empty the section in the file // if ( bOverwrite ) { WritePrivateProfileString( szGroupMembership, NULL, NULL, ProfileName ); } return(SCESTATUS_SUCCESS); } // // open lsa policy handle for sid/name lookup // LSA_HANDLE LsaHandle=NULL; rc = RtlNtStatusToDosError( ScepOpenLsaPolicy( POLICY_LOOKUP_NAMES | POLICY_VIEW_LOCAL_INFORMATION, &LsaHandle, TRUE )); if ( ERROR_SUCCESS != rc ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_ADD, TEXT("LSA") ); return(ScepDosErrorToSceStatus(rc)); } // // process each group in the list // for ( pGroupMembers=pGroupMembership, TotalSize=0; pGroupMembers != NULL; pGroupMembers = pGroupMembers->Next ) { if ( (pGroupMembers->Status & SCE_GROUP_STATUS_NC_MEMBERS) && (pGroupMembers->Status & SCE_GROUP_STATUS_NC_MEMBEROF) ) { continue; } if ( SidString ) { LocalFree(SidString); SidString = NULL; } Len = 0; if ( wcschr(pGroupMembers->GroupName, L'\\') ) { // // convert group name into *SID format // ScepConvertNameToSidString( LsaHandle, pGroupMembers->GroupName, FALSE, &SidString, &Len ); } else { if ( ScepLookupNameTable(pGroupMembers->GroupName, &SidString) ) { Len = wcslen(SidString); } } if ( SidString == NULL ) { Len = wcslen(pGroupMembers->GroupName); } Keyname = (PWSTR)ScepAlloc( 0, (Len+15)*sizeof(WCHAR)); if ( Keyname == NULL ) { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } if ( SidString ) { wcsncpy(Keyname, SidString, Len); } else { wcsncpy(Keyname, pGroupMembers->GroupName, Len); } if ( !(pGroupMembers->Status & SCE_GROUP_STATUS_NC_MEMBERS) ) { wcscpy(Keyname+Len, szMembers); Keyname[Len+9] = L'\0'; // // convert the member list into a string // Keysize = SceInfpConvertNameListToString( LsaHandle, Keyname, pGroupMembers->pMembers, bOverwrite, &Strvalue, Errlog ); if ( Keysize >= 0 && Strvalue ) { if ( bOverwrite ) { rc = ScepAddToNameList(&pNameList, Strvalue, Keysize); if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_ADD_MEMBERS, pGroupMembers->GroupName ); rc = ScepDosErrorToSceStatus(rc); goto Done; } } else { // // append mode, write one line at a time // WritePrivateProfileString( szGroupMembership, Keyname, Strvalue, ProfileName ); } TotalSize += Keysize + 1; } else if ( Keysize == -1 ) { rc = SCESTATUS_OTHER_ERROR; goto Done; } ScepFree(Strvalue); Strvalue = NULL; } if ( !(pGroupMembers->Status & SCE_GROUP_STATUS_NC_MEMBEROF) ) { // // convert the memberof list into a string // swprintf(Keyname+Len, L"%s", szMemberof); Keyname[Len+10] = L'\0'; Keysize = SceInfpConvertNameListToString( LsaHandle, Keyname, pGroupMembers->pMemberOf, bOverwrite, &Strvalue, Errlog ); if ( Keysize >= 0 && Strvalue ) { if ( bOverwrite ) { rc = ScepAddToNameList(&pNameList, Strvalue, Keysize); if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_ADD_MEMBEROF, pGroupMembers->GroupName ); rc = ScepDosErrorToSceStatus(rc); goto Done; } } else { // // in append mode, write one line at a time // WritePrivateProfileString( szGroupMembership, Keyname, Strvalue, ProfileName ); } TotalSize += Keysize + 1; } else if ( Keysize == -1 ) { rc = SCESTATUS_OTHER_ERROR; goto Done; } ScepFree(Strvalue); Strvalue = NULL; } } // // write to this profile's section // if ( bOverwrite ) { rc = SceInfpWriteListSection( ProfileName, szGroupMembership, TotalSize+1, pNameList, 0, Errlog ); rc = ScepDosErrorToSceStatus(rc); } Done: if ( Keyname != NULL ) ScepFree(Keyname); if ( Strvalue != NULL ) ScepFree(Strvalue); if ( SidString ) { LocalFree(SidString); } ScepFreeNameList(pNameList); if ( LsaHandle ) { LsaClose(LsaHandle); } return(rc); } SCESTATUS SceInfpWriteObjects( IN PCWSTR ProfileName, IN PCWSTR SectionName, IN PSCE_OBJECT_ARRAY pObjects, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes registry or files security information (names and security descriptors) into the INF SCP file in the section provided. Arguments: ProfileName - the SCP INF file name SectionName - a individual section name to retrieve. NULL = all sections for the area. pObjects - the buffer of objects to write. Errlog - the cummulative error list to hold errors encountered in this routine. Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { SCESTATUS rc=SCESTATUS_SUCCESS; PSCE_NAME_LIST pNameList=NULL; DWORD TotalSize=0; DWORD i, ObjectSize; if (ProfileName == NULL || SectionName == NULL ) return(SCESTATUS_INVALID_PARAMETER); if ( pObjects == NULL || pObjects->Count == 0 ) { // // the buffer doesn't contain any objects // empty the section in the file // if ( bOverwrite ) { WritePrivateProfileString( SectionName, NULL, NULL, ProfileName ); } return(SCESTATUS_SUCCESS); } for ( i=0; i<pObjects->Count; i++) { // // Get string fields. Don't care the key name or if it exist. // Must have 3 fields each line. // rc = SceInfpWriteOneObject( pObjects->pObjectArray[i], &pNameList, &ObjectSize, Errlog ); if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, pObjects->pObjectArray[i]->Name ); goto Done; } TotalSize += ObjectSize + 1; } // // write to this profile's section // rc = SceInfpWriteListSection( ProfileName, SectionName, TotalSize+1, pNameList, bOverwrite ? 0 : SCEINF_APPEND_SECTION, Errlog ); if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, SectionName ); } Done: ScepFreeNameList(pNameList); rc = ScepDosErrorToSceStatus(rc); return(rc); } SCESTATUS SceInfpWriteServices( IN PCWSTR ProfileName, IN PCWSTR SectionName, IN PSCE_SERVICES pServices, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes system services general settings (startup and security descriptors) into the INF SCP file in the section provided. Arguments: ProfileName - the SCP INF file name SectionName - a individual section name to retrieve. NULL = all sections for the area. pServices - the buffer of services to write. Errlog - the cummulative error list to hold errors encountered in this routine. Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { SCESTATUS rc=SCESTATUS_SUCCESS; PSCE_NAME_LIST pNameList=NULL; PSCE_SERVICES pNode; DWORD TotalSize=0; DWORD ObjectSize; if (ProfileName == NULL || SectionName == NULL ) return(SCESTATUS_INVALID_PARAMETER); if ( pServices == NULL ) { // // the buffer doesn't contain any services // empty the section in the file // if ( bOverwrite ) { WritePrivateProfileString( SectionName, NULL, NULL, ProfileName ); } return(SCESTATUS_SUCCESS); } for ( pNode=pServices; pNode != NULL; pNode = pNode->Next) { // // write string fields. // rc = SceInfpWriteOneService( pNode, &pNameList, &ObjectSize, Errlog ); if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, pNode->ServiceName ); goto Done; } TotalSize += ObjectSize + 1; } // // write to this profile's section // rc = SceInfpWriteListSection( ProfileName, SectionName, TotalSize+1, pNameList, bOverwrite ? 0 : SCEINF_APPEND_SECTION, Errlog ); if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, SectionName ); } Done: ScepFreeNameList(pNameList); rc = ScepDosErrorToSceStatus(rc); return(rc); } DWORD SceInfpWriteOneObject( IN PSCE_OBJECT_SECURITY pObject, OUT PSCE_NAME_LIST *pNameList, OUT PDWORD ObjectSize, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine builds security descriptor text for one object (a registry key, or a file) into the name list. Each object represents one line in the INF file. Arguments: pObject - The object's security settings pNameList - The output string list. TotalSize - the total size of the list Errlog - The cummulative error list for errors encountered in this routine Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { DWORD rc; PWSTR Strvalue=NULL; PWSTR SDspec=NULL; DWORD SDsize=0; DWORD nFields; DWORD *aFieldOffset=NULL; DWORD i; *ObjectSize = 0; if ( pObject == NULL ) return(ERROR_SUCCESS); if ( pObject->pSecurityDescriptor != NULL ) { // // convert security to text // rc = ConvertSecurityDescriptorToText( pObject->pSecurityDescriptor, pObject->SeInfo, &SDspec, &SDsize ); if ( rc != NO_ERROR ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_BUILD_SD, pObject->Name ); return(rc); } } // // The Registry/File INF layout must have more than 3 fields for each line. // The first field is the key/file name, the 2nd field is the status // flag, and the 3rd field and after is the security descriptor in text // // // security descriptor in text is broken into multiple fields if the length // is greater than MAX_STRING_LENGTH (the limit of setupapi). The break point // is at the following characters: ) ( ; " or space // rc = SceInfpBreakTextIntoMultiFields(SDspec, SDsize, &nFields, &aFieldOffset); if ( SCESTATUS_SUCCESS != rc ) { rc = ScepSceStatusToDosError(rc); goto Done; } // // each extra field will use 3 more chars : ,"<field>" // *ObjectSize = wcslen(pObject->Name)+5 + SDsize; if ( nFields ) { *ObjectSize += 3*nFields; } else { *ObjectSize += 2; } // // allocate the output buffer // Strvalue = (PWSTR)ScepAlloc(LMEM_ZEROINIT, (*ObjectSize+1) * sizeof(WCHAR) ); if ( Strvalue == NULL ) { rc = ERROR_NOT_ENOUGH_MEMORY; goto Done; } // // copy data into the buffer // if ( SDspec != NULL ) { if ( nFields == 0 || !aFieldOffset ) { swprintf(Strvalue, L"\"%s\",%1d,\"%s\"", pObject->Name, pObject->Status, SDspec); } else { // // loop through the fields // swprintf(Strvalue, L"\"%s\",%1d\0", pObject->Name, pObject->Status); for ( i=0; i<nFields; i++ ) { if ( aFieldOffset[i] < SDsize ) { wcscat(Strvalue, L",\""); if ( i == nFields-1 ) { // // the last field // wcscat(Strvalue, SDspec+aFieldOffset[i]); } else { wcsncat(Strvalue, SDspec+aFieldOffset[i], aFieldOffset[i+1]-aFieldOffset[i]); } wcscat(Strvalue, L"\""); } } } } else swprintf(Strvalue, L"\"%s\",%1d,\"\"", pObject->Name, pObject->Status); rc = ScepAddToNameList(pNameList, Strvalue, *ObjectSize); ScepFree(Strvalue); Done: if ( aFieldOffset ) { ScepFree(aFieldOffset); } if ( SDspec != NULL ) ScepFree(SDspec); return(rc); } DWORD SceInfpWriteOneService( IN PSCE_SERVICES pService, OUT PSCE_NAME_LIST *pNameList, OUT PDWORD ObjectSize, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine builds security descriptor text for one object (a registry key, or a file) into the name list. Each object represents one line in the INF file. Arguments: pService - The service's general setting pNameList - The output string list. TotalSize - the total size of the list Errlog - The cummulative error list for errors encountered in this routine Return value: Win32 error -- */ { DWORD rc; PWSTR Strvalue=NULL; PWSTR SDspec=NULL; DWORD SDsize=0; DWORD nFields; DWORD *aFieldOffset=NULL; DWORD i; *ObjectSize = 0; if ( pService == NULL ) return(ERROR_SUCCESS); if ( pService->General.pSecurityDescriptor != NULL ) { // // convert security to text // rc = ConvertSecurityDescriptorToText( pService->General.pSecurityDescriptor, pService->SeInfo, &SDspec, &SDsize ); if ( rc != NO_ERROR ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_BUILD_SD, pService->ServiceName ); return(rc); } } // // The service INF layout must have 3 or more fields for each line. // The first field is the service name, the 2nd field is the startup // flag, and the 3rd field and after is the security descriptor in text // // // security descriptor in text is broken into multiple fields if the length // is greater than MAX_STRING_LENGTH (the limit of setupapi). The break point // is at the following characters: ) ( ; " or space // rc = SceInfpBreakTextIntoMultiFields(SDspec, SDsize, &nFields, &aFieldOffset); if ( SCESTATUS_SUCCESS != rc ) { rc = ScepSceStatusToDosError(rc); goto Done; } // // each extra field will use 3 more chars : ,"<field>" // *ObjectSize = wcslen(pService->ServiceName)+3 + SDsize; if ( nFields ) { *ObjectSize += 3*nFields; } else { *ObjectSize += 2; } // // allocate the output buffer // Strvalue = (PWSTR)ScepAlloc(LMEM_ZEROINIT, (*ObjectSize+1) * sizeof(WCHAR) ); if ( Strvalue == NULL ) { rc = ERROR_NOT_ENOUGH_MEMORY; goto Done; } // // copy data into the buffer // if ( SDspec != NULL ) { if ( nFields == 0 || !aFieldOffset ) { swprintf(Strvalue, L"%s,%1d,\"%s\"", pService->ServiceName, pService->Startup, SDspec); } else { // // loop through the fields // swprintf(Strvalue, L"%s,%1d\0", pService->ServiceName, pService->Startup); for ( i=0; i<nFields; i++ ) { if ( aFieldOffset[i] < SDsize ) { wcscat(Strvalue, L",\""); if ( i == nFields-1 ) { // // the last field // wcscat(Strvalue, SDspec+aFieldOffset[i]); } else { wcsncat(Strvalue, SDspec+aFieldOffset[i], aFieldOffset[i+1]-aFieldOffset[i]); } wcscat(Strvalue, L"\""); } } } } else { swprintf(Strvalue, L"%s,%1d,\"\"", pService->ServiceName, pService->Startup); } rc = ScepAddToNameList(pNameList, Strvalue, *ObjectSize); ScepFree(Strvalue); Done: if ( aFieldOffset ) { ScepFree(aFieldOffset); } if ( SDspec != NULL ) ScepFree(SDspec); return(rc); } SCESTATUS SceInfpWriteAuditing( IN PCWSTR ProfileName, IN PSCE_PROFILE_INFO pSCEinfo, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes system auditing information into the SCP INF file in [System Log], [Security Log], [Application Log], [Event Audit], [Registry Audit], and [File Audit] sections. Arguments: ProfileName - The INF profile's name pSCEinfo - the info buffer to write. Errlog - The cummulative error list to hold errors encountered in this routine. Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { SCESTATUS rc; DWORD LogSize; DWORD Periods; DWORD RetentionDays; DWORD RestrictGuest; PCWSTR szAuditLog; DWORD i, j; PWSTR EachLine[10]; DWORD EachSize[10]; DWORD TotalSize=0; if (ProfileName == NULL || pSCEinfo == NULL ) return(SCESTATUS_INVALID_PARAMETER); // // Writes Log setting for system log, security log and application log // for ( i=0; i<3; i++) { // get the section name switch (i) { case 0: szAuditLog = szAuditSystemLog; break; case 1: szAuditLog = szAuditSecurityLog; break; default: szAuditLog = szAuditApplicationLog; break; } // set audit log setting LogSize = pSCEinfo->MaximumLogSize[i]; Periods = pSCEinfo->AuditLogRetentionPeriod[i]; RetentionDays = pSCEinfo->RetentionDays[i]; RestrictGuest = pSCEinfo->RestrictGuestAccess[i]; // // writes the setting to the section // rc = SceInfpWriteAuditLogSetting( ProfileName, szAuditLog, LogSize, Periods, RetentionDays, RestrictGuest, Errlog ); if ( rc != SCESTATUS_SUCCESS ) return(rc); } // // fill the array // for (i=0; i<10; i++) { EachLine[i] = NULL; EachSize[i] = 25; } j = 0; // // process each attribute for event auditing // // AuditSystemEvents // if ( pSCEinfo->AuditSystemEvents != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditSystemEvents = %d\0", pSCEinfo->AuditSystemEvents); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditLogonEvents if ( pSCEinfo->AuditLogonEvents != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditLogonEvents = %d\0", pSCEinfo->AuditLogonEvents); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditObjectAccess if ( pSCEinfo->AuditObjectAccess != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditObjectAccess = %d\0", pSCEinfo->AuditObjectAccess); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditPrivilegeUse if ( pSCEinfo->AuditPrivilegeUse != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditPrivilegeUse = %d\0", pSCEinfo->AuditPrivilegeUse); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditPolicyChange if ( pSCEinfo->AuditPolicyChange != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditPolicyChange = %d\0", pSCEinfo->AuditPolicyChange); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditAccountManage if ( pSCEinfo->AuditAccountManage != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditAccountManage = %d\0", pSCEinfo->AuditAccountManage); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditprocessTracking if ( pSCEinfo->AuditProcessTracking != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditProcessTracking = %d\0", pSCEinfo->AuditProcessTracking); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditDSAccess if ( pSCEinfo->AuditDSAccess != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditDSAccess = %d\0", pSCEinfo->AuditDSAccess); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // AuditAccountLogon if ( pSCEinfo->AuditAccountLogon != SCE_NO_VALUE ) { EachLine[j] = (PWSTR)ScepAlloc((UINT)0, EachSize[j]*sizeof(WCHAR)); if ( EachLine[j] != NULL ) { swprintf(EachLine[j], L"AuditAccountLogon = %d\0", pSCEinfo->AuditAccountLogon); EachSize[j] = wcslen(EachLine[j]); TotalSize += EachSize[j] + 1; j++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // // Writes the section // if ( j > 0 ) { rc = SceInfpWriteInfSection( ProfileName, szAuditEvent, TotalSize+1, EachLine, &EachSize[0], 0, j-1, Errlog ); } else { WritePrivateProfileSection( szAuditEvent, NULL, ProfileName); } Done: for ( i=0; i<10; i++ ) if ( EachLine[i] != NULL ) { ScepFree(EachLine[i]); } return(rc); } SCESTATUS SceInfpAppendAuditing( IN PCWSTR ProfileName, IN PSCE_PROFILE_INFO pSCEinfo, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) { SCESTATUS rc=SCESTATUS_SUCCESS; DWORD Value; SCE_KEY_LOOKUP AuditSCPLookup[] = { {(PWSTR)TEXT("AuditSystemEvents"), offsetof(struct _SCE_PROFILE_INFO, AuditSystemEvents), 'D'}, {(PWSTR)TEXT("AuditLogonEvents"), offsetof(struct _SCE_PROFILE_INFO, AuditLogonEvents), 'D'}, {(PWSTR)TEXT("AuditObjectAccess"), offsetof(struct _SCE_PROFILE_INFO, AuditObjectAccess), 'D'}, {(PWSTR)TEXT("AuditPrivilegeUse"), offsetof(struct _SCE_PROFILE_INFO, AuditPrivilegeUse), 'D'}, {(PWSTR)TEXT("AuditPolicyChange"), offsetof(struct _SCE_PROFILE_INFO, AuditPolicyChange), 'D'}, {(PWSTR)TEXT("AuditAccountManage"), offsetof(struct _SCE_PROFILE_INFO, AuditAccountManage), 'D'}, {(PWSTR)TEXT("AuditProcessTracking"), offsetof(struct _SCE_PROFILE_INFO, AuditProcessTracking), 'D'}, {(PWSTR)TEXT("AuditDSAccess"), offsetof(struct _SCE_PROFILE_INFO, AuditDSAccess), 'D'}, {(PWSTR)TEXT("AuditAccountLogon"), offsetof(struct _SCE_PROFILE_INFO, AuditAccountLogon), 'D'} }; DWORD cAudit = sizeof(AuditSCPLookup) / sizeof(SCE_KEY_LOOKUP); PCWSTR szAuditLog; DWORD i; UINT Offset; if (ProfileName == NULL || pSCEinfo == NULL ) return(SCESTATUS_INVALID_PARAMETER); for ( i=0; i<3; i++) { // get the section name switch (i) { case 0: szAuditLog = szAuditSystemLog; break; case 1: szAuditLog = szAuditSecurityLog; break; default: szAuditLog = szAuditApplicationLog; break; } ScepWriteOneIntValueToProfile( ProfileName, szAuditLog, L"MaximumLogSize", pSCEinfo->MaximumLogSize[i] ); ScepWriteOneIntValueToProfile( ProfileName, szAuditLog, L"AuditLogRetentionPeriod", pSCEinfo->AuditLogRetentionPeriod[i] ); ScepWriteOneIntValueToProfile( ProfileName, szAuditLog, L"RetentionDays", pSCEinfo->RetentionDays[i] ); ScepWriteOneIntValueToProfile( ProfileName, szAuditLog, L"RestrictGuestAccess", pSCEinfo->RestrictGuestAccess[i] ); } for ( i=0; i<cAudit; i++) { // // get settings in AuditLookup table // Offset = AuditSCPLookup[i].Offset; switch ( AuditSCPLookup[i].BufferType ) { case 'D': // // Int Field // Value = *((DWORD *)((CHAR *)pSCEinfo+Offset)); ScepWriteOneIntValueToProfile( ProfileName, szAuditEvent, AuditSCPLookup[i].KeyString, Value ); break; default: break; } } return(rc); } SCESTATUS ScepWriteOneIntValueToProfile( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN PWSTR KeyName, IN DWORD Value ) { WCHAR TmpBuf[15]; if ( Value == SCE_NO_VALUE ) { return(SCESTATUS_SUCCESS); } swprintf(TmpBuf, L"%d\0", Value); WritePrivateProfileString( InfSectionName, KeyName, TmpBuf, InfFileName ); return(SCESTATUS_SUCCESS); } SCESTATUS SceInfpWriteAuditLogSetting( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN DWORD LogSize, IN DWORD Periods, IN DWORD RetentionDays, IN DWORD RestrictGuest, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine retrieves audit log setting from the INF file (SCP and SAP) based on the SectionName passed in. The audit log settings include MaximumSize, RetentionPeriod and RetentionDays. There are 3 different logs (system, security, and application) which all have the same setting. The information returned in in LogSize, Periods, RetentionDays. These 3 output arguments will be reset at the begining of the routine. So if error occurs after the reset, the original values won't be set back. Arguments: InfFileName - The INF file name to write to InfSectionName - Log section name (SAdtSystemLog, SAdtSecurityLog, SAdtApplicationLog) LogSize - The maximum size of the log Periods - The retention period of the log RetentionDays - The number of days for log retention Errlog - The error list Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { SCESTATUS rc=SCESTATUS_SUCCESS; PWSTR EachLine[4]; DWORD EachSize[4]; DWORD TotalSize=0; DWORD i; if (InfFileName == NULL || InfSectionName == NULL ) return(SCESTATUS_INVALID_PARAMETER); // // initialize and fill the array // for ( i=0; i<4; i++ ) { EachLine[i] = NULL; EachSize[i] = 37; } i = 0; if ( LogSize != (DWORD)SCE_NO_VALUE ) { EachLine[i] = (PWSTR)ScepAlloc((UINT)0, EachSize[i]*sizeof(WCHAR)); if ( EachLine[i] != NULL ) { swprintf(EachLine[i], L"MaximumLogSize = %d", LogSize); EachSize[i] = wcslen(EachLine[i]); TotalSize += EachSize[i] + 1; i++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } if ( Periods != (DWORD)SCE_NO_VALUE ) { EachLine[i] = (PWSTR)ScepAlloc((UINT)0, EachSize[i]*sizeof(WCHAR)); if ( EachLine[i] != NULL ) { swprintf(EachLine[i], L"AuditLogRetentionPeriod = %d", Periods); EachSize[i] = wcslen(EachLine[i]); TotalSize += EachSize[i] + 1; i++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } if ( RetentionDays != (DWORD)SCE_NO_VALUE ) { EachLine[i] = (PWSTR)ScepAlloc((UINT)0, EachSize[i]*sizeof(WCHAR)); if ( EachLine[i] != NULL ) { swprintf(EachLine[i], L"RetentionDays = %d", RetentionDays); EachSize[i] = wcslen(EachLine[i]); TotalSize += EachSize[i] + 1; i++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } if ( RestrictGuest != (DWORD)SCE_NO_VALUE ) { EachLine[i] = (PWSTR)ScepAlloc((UINT)0, EachSize[i]*sizeof(WCHAR)); if ( EachLine[i] != NULL ) { swprintf(EachLine[i], L"RestrictGuestAccess = %d", RestrictGuest); EachSize[i] = wcslen(EachLine[i]); TotalSize += EachSize[i] + 1; i++; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } } // // write this section // if ( i == 0 ) { // // all settings are not configured // delete the section // WritePrivateProfileString( InfSectionName, NULL, NULL, InfFileName ); } else { rc = SceInfpWriteInfSection( InfFileName, InfSectionName, TotalSize+1, EachLine, &EachSize[0], 0, i-1, Errlog ); } Done: if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_WRITE_INFO, InfSectionName ); } // // free memory // for ( i=0; i<4; i++ ) { if ( EachLine[i] != NULL ) ScepFree(EachLine[i]); } return(rc); } SCESTATUS SceInfpWriteInfSection( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN DWORD TotalSize, IN PWSTR *EachLineStr, IN DWORD *EachLineSize, IN DWORD StartIndex, IN DWORD EndIndex, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes information in a array (each element in the array represents a line in the section) to the section specified by InfSectionName in the file specified by InfFileName. TotalSize is used to allocate a block of memory for writing. Arguments: InfFileName - the INF file name InfSectionName - the section into which to write information TotalSize - The size of the buffer required to write EachLineStr - a array of strings (each element represents a line ) EachLineSize - a array of numbers (each number is the size of the corresponding element in EachLineStr). StartIndex - The first index of the array EndIndex - The last index of the array Errlog - The list of errors Return value: Win32 error code -- */ { PWSTR SectionString=NULL; PWSTR pTemp; DWORD i; BOOL status; DWORD rc = NO_ERROR; if (InfFileName == NULL || InfSectionName == NULL || EachLineStr == NULL || EachLineSize == NULL ) return(SCESTATUS_INVALID_PARAMETER); if ( TotalSize > 1 ) { SectionString = (PWSTR)ScepAlloc( (UINT)0, (TotalSize+1)*sizeof(WCHAR)); if ( SectionString == NULL ) { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; return(rc); } pTemp = SectionString; for ( i=StartIndex; i<=EndIndex; i++) { if ( EachLineStr[i] != NULL && EachLineSize[i] > 0 ) { wcsncpy(pTemp, EachLineStr[i], EachLineSize[i]); pTemp += EachLineSize[i]; *pTemp = L'\0'; pTemp++; } } *pTemp = L'\0'; // // writes the profile section, the following call should empty the section then // add all keys in SectionString to the section. // status = WritePrivateProfileSection( InfSectionName, SectionString, InfFileName ); if ( status == FALSE ) { rc = GetLastError(); ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, InfSectionName ); } ScepFree(SectionString); SectionString = NULL; } return(ScepDosErrorToSceStatus(rc)); } DWORD SceInfpWriteListSection( IN PCWSTR InfFileName, IN PCWSTR InfSectionName, IN DWORD TotalSize, IN PSCE_NAME_LIST ListLines, IN DWORD Option, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine writes information in a PSCE_NAME_LIST type list (each node in the list represents a line in the section) to the section specified by InfSectionName in the file specified by InfFileName. TotalSize is used to allocate a block of memory for writing. Arguments: InfFileName - the INF file name InfSectionName - the section into which to write information TotalSize - The size of the buffer required to write ListLines - The list of each line's text Errlog - The list of errors Return value: Win32 error code -- */ { PWSTR SectionString=NULL; PWSTR pTemp; PSCE_NAME_LIST pName; BOOL status; DWORD rc=NO_ERROR; DWORD Len; if ( TotalSize > 1 ) { SectionString = (PWSTR)ScepAlloc( (UINT)0, TotalSize*sizeof(WCHAR)); if ( SectionString == NULL ) { rc = ERROR_NOT_ENOUGH_MEMORY; return(rc); } pTemp = SectionString; for ( pName=ListLines; pName != NULL; pName = pName->Next ) { Len = wcslen(pName->Name); wcsncpy(pTemp, pName->Name, Len); pTemp += Len; if ( Option & SCEINF_ADD_EQUAL_SIGN ) { *pTemp++ = L' '; *pTemp++ = L'='; } *pTemp++ = L'\0'; } *pTemp = L'\0'; /* if ( !( Option & SCEINF_APPEND_SECTION ) ) { // // empty the section first // WritePrivateProfileString( InfSectionName, NULL, NULL, InfFileName ); } // // write the section // status = WritePrivateProfileSection( InfSectionName, SectionString, InfFileName ); */ // // write the section // rc = ScepWritePrivateProfileSection( InfSectionName, SectionString, InfFileName, ( Option & SCEINF_APPEND_SECTION ) ? FALSE : TRUE ); ScepFree(SectionString); SectionString = NULL; // if ( status == FALSE ) { // rc = GetLastError(); if ( ERROR_SUCCESS != rc ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, InfSectionName ); } } return(rc); } LONG SceInfpConvertNameListToString( IN LSA_HANDLE LsaPolicy, IN PCWSTR KeyText, IN PSCE_NAME_LIST Fields, IN BOOL bOverwrite, OUT PWSTR *Strvalue, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine converts names in a name list to comma delimited string. The format of the returned string is KeyText = f1,f2,f3,f4... where f1..fn are names in the name list. Arguments: KeyText - a string represents the key (left side of the = sign) Fields - The name list Strvalue - The output string Errlog - The error list Return value: Length of the output string if successful. -1 if error. -- */ { DWORD TotalSize; DWORD Strsize; PWSTR pTemp = NULL; PSCE_NAME_LIST pName; SCE_TEMP_NODE *tmpArray=NULL, *pa=NULL; DWORD i=0,j; DWORD cntAllocated=0; DWORD rc=ERROR_SUCCESS; // // count the total size of all fields // for ( pName=Fields, TotalSize=0; pName != NULL; pName = pName->Next ) { if (pName->Name[0] == L'\0') { continue; } if ( i >= cntAllocated ) { // // array is not enough, reallocate // tmpArray = (SCE_TEMP_NODE *)ScepAlloc(LPTR, (cntAllocated+16)*sizeof(SCE_TEMP_NODE)); if ( tmpArray ) { // // move pointers from the old array to the new array // if ( pa ) { for ( j=0; j<cntAllocated; j++ ) { tmpArray[j].Name = pa[j].Name; tmpArray[j].Len = pa[j].Len; tmpArray[j].bFree = pa[j].bFree; } ScepFree(pa); } pa = tmpArray; tmpArray = NULL; cntAllocated += 16; } else { rc = ERROR_NOT_ENOUGH_MEMORY; break; } } pTemp = NULL; if ( wcschr(pName->Name, L'\\') && LsaPolicy ) { // // check if the name has a '\' in it, it should be translated to // *SID // ScepConvertNameToSidString(LsaPolicy, pName->Name, FALSE, &pTemp, &Strsize); if ( pTemp ) { pa[i].Name = pTemp; pa[i].bFree = TRUE; } else { pa[i].Name = pName->Name; pa[i].bFree = FALSE; Strsize = wcslen(pName->Name); } } else { if ( ScepLookupNameTable(pName->Name, &pTemp) ) { pa[i].Name = pTemp; pa[i].bFree = TRUE; Strsize = wcslen(pTemp); } else { pa[i].Name = pName->Name; pa[i].bFree = FALSE; Strsize = wcslen(pName->Name); } } pa[i].Len = Strsize; TotalSize += Strsize + 1; i++; } if ( ERROR_SUCCESS == rc ) { // // The format of the string is // KeyText = f1,f2,f3,.... // if ( bOverwrite ) { Strsize = 3 + wcslen(KeyText); if ( TotalSize > 0 ) TotalSize += Strsize; else TotalSize = Strsize; } else { Strsize = 0; } *Strvalue = (PWSTR)ScepAlloc((UINT)0, (TotalSize+1)*sizeof(WCHAR)); if ( *Strvalue == NULL ) { rc = ERROR_NOT_ENOUGH_MEMORY; } else { if ( bOverwrite ) { swprintf(*Strvalue, L"%s = ", KeyText); } pTemp = *Strvalue + Strsize; for (j=0; j<i; j++) { if ( pa[j].Name ) { wcscpy(pTemp, pa[j].Name); pTemp += pa[j].Len; *pTemp = L','; pTemp++; } } if ( pTemp != (*Strvalue+Strsize) ) { *(pTemp-1) = L'\0'; } *pTemp = L'\0'; } } if ( pa ) { for ( j=0; j<i; j++ ) { if ( pa[j].Name && pa[j].bFree ) { ScepFree(pa[j].Name); } } ScepFree(pa); } if ( rc != ERROR_SUCCESS ) { return(-1); } else if ( TotalSize == 0 ) { return(TotalSize); } else { return(TotalSize-1); } } #if 0 SCESTATUS WINAPI SceWriteUserSection( IN PCWSTR InfProfileName, IN PWSTR Name, IN PSCE_USER_PROFILE pProfile, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: Arguments: Return Value: -- */ { PWSTR InfSectionName=NULL; SCESTATUS rc; PWSTR EachLine[12]; DWORD EachSize[12]; DWORD TotalSize; TCHAR Keyname[SCE_KEY_MAX_LENGTH]; DWORD Value; LONG Keysize, i; PSCE_LOGON_HOUR pLogonHour=NULL; PWSTR Strvalue=NULL; if ( InfProfileName == NULL || Name == NULL || pProfile == NULL ) { return(SCESTATUS_INVALID_PARAMETER); } // // process each detail profile section // for ( i=0; i<12; i++ ) { EachLine[i] = NULL; EachSize[i] = 0; } TotalSize=0; memset(Keyname, '\0', SCE_KEY_MAX_LENGTH*sizeof(WCHAR)); i = 0; InfSectionName = (PWSTR)ScepAlloc(LMEM_ZEROINIT, (wcslen(Name)+12)*sizeof(WCHAR)); if ( InfSectionName == NULL ) return(SCESTATUS_NOT_ENOUGH_RESOURCE); swprintf(InfSectionName, L"UserProfile %s", Name); // // initialize the error log buffer // if ( Errlog ) { *Errlog = NULL; } if ( pProfile->DisallowPasswordChange != SCE_NO_VALUE ) { // DisallowPasswordChange Value = pProfile->DisallowPasswordChange == 0 ? 0 : 1; swprintf(Keyname, L"DisallowPasswordChange = %d", Value); rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], 30, Keyname ); if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"DisallowPasswordChange", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->NeverExpirePassword != SCE_NO_VALUE || pProfile->ForcePasswordChange != SCE_NO_VALUE ) { // PasswordChangeStyle if ( pProfile->NeverExpirePassword != SCE_NO_VALUE && pProfile->NeverExpirePassword != 0 ) Value = 1; else { if ( pProfile->ForcePasswordChange != SCE_NO_VALUE && pProfile->ForcePasswordChange != 0 ) Value = 2; else Value = 0; } swprintf(Keyname, L"PasswordChangeStyle = %d", Value); rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], 30, Keyname ); if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"PasswordChangeStyle", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->AccountDisabled != SCE_NO_VALUE ) { // AccountDisabled Value = pProfile->AccountDisabled == 0 ? 0 : 1; swprintf(Keyname, L"AccountDisabled = %d", Value); rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], 30, Keyname ); if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"AccountDisabled", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->UserProfile != NULL ) { // UserProfile swprintf(Keyname, L"UserProfile = %s", pProfile->UserProfile); rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], wcslen(Keyname)+10, Keyname ); if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"UserProfile", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->LogonScript != NULL ) { // LogonScript swprintf(Keyname, L"LogonScript = %s", pProfile->LogonScript); rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], wcslen(Keyname)+10, Keyname ); if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"LogonScript", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->HomeDir != NULL ) { // HomeDir swprintf(Keyname, L"HomeDir = %s", pProfile->HomeDir); rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], wcslen(Keyname)+10, Keyname ); if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"HomeDir", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->pLogonHours != NULL ) { // LogonHours swprintf(Keyname, L"LogonHours = "); Keysize = wcslen(Keyname); for ( pLogonHour=pProfile->pLogonHours; pLogonHour != NULL; pLogonHour = pLogonHour->Next) { swprintf(&Keyname[Keysize], L"%d,%d,",pLogonHour->Start, pLogonHour->End); Keysize += ((pLogonHour->Start < 9) ? 2 : 3) + ((pLogonHour->End < 9 ) ? 2 : 3); } // turn off the last comma Keyname[Keysize-1] = L'\0'; rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], Keysize+5, Keyname ); if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"LogonHours", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->pWorkstations.Buffer != NULL ) { // Workstations Keysize = SceInfpConvertMultiSZToString( L"Workstations", pProfile->pWorkstations, &Strvalue, Errlog ); if ( Keysize > 0 ) { EachLine[i] = Strvalue; EachSize[i] = Keysize; Strvalue = NULL; } else { rc = SCESTATUS_OTHER_ERROR; ScepFree(Strvalue); Strvalue = NULL; goto Done; } if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"WorkstationRestricitons", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->pGroupsBelongsTo != NULL ) { // GroupsBelongsTo Keysize = SceInfpConvertNameListToString( NULL, L"GroupsBelongsTo", pProfile->pGroupsBelongsTo, TRUE, &Strvalue, Errlog ); if ( Keysize > 0 ) { EachLine[i] = Strvalue; EachSize[i] = Keysize; Strvalue = NULL; } else { rc = SCESTATUS_OTHER_ERROR; ScepFree(Strvalue); Strvalue = NULL; goto Done; } if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"GroupsBelongsTo", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; } if ( pProfile->pAssignToUsers != NULL ) { // AssignToUsers Keysize = SceInfpConvertNameListToString( NULL, L"AssignToUsers", pProfile->pAssignToUsers, TRUE, &Strvalue, Errlog ); if ( Keysize > 0 ) { EachLine[i] = Strvalue; EachSize[i] = Keysize; Strvalue = NULL; } else { rc = SCESTATUS_OTHER_ERROR; ScepFree(Strvalue); Strvalue = NULL; goto Done; } } else { swprintf(Keyname, L"AssignToUsers = "); rc = ScepAllocateAndCopy(&EachLine[i], &EachSize[i], 30, Keyname ); } if ( rc != SCESTATUS_SUCCESS) { ScepBuildErrorLogInfo( ScepSceStatusToDosError(rc), Errlog, SCEERR_ADDTO, L"AssignToUsers", InfSectionName ); goto Done; } TotalSize += EachSize[i]+1; i++; if ( pProfile->pHomeDirSecurity != NULL ) { // HomeDirSecurity rc = ConvertSecurityDescriptorToText( pProfile->pHomeDirSecurity, pProfile->HomeSeInfo, &Strvalue, (PULONG)&Keysize ); if ( rc == NO_ERROR ) { EachSize[i] = Keysize + 21; EachLine[i] = (PWSTR)ScepAlloc( 0, EachSize[i]*sizeof(WCHAR)); if ( EachLine[i] != NULL ) { swprintf(EachLine[i], L"HomeDirSecurity = \"%s\"", Strvalue); EachLine[i][EachSize[i]-1] = L'\0'; } else rc = SCESTATUS_NOT_ENOUGH_RESOURCE; ScepFree(Strvalue); Strvalue = NULL; } else { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_ADD, L"HomeDirSecurity", InfSectionName ); rc = ScepDosErrorToSceStatus(rc); } if ( rc != SCESTATUS_SUCCESS ) goto Done; TotalSize += EachSize[i]+1; i++; } if ( pProfile->pTempDirSecurity != NULL ) { // TempDirSecurity rc = ConvertSecurityDescriptorToText( pProfile->pTempDirSecurity, pProfile->TempSeInfo, &Strvalue, (PULONG)&Keysize ); if ( rc == NO_ERROR ) { EachSize[i] = Keysize + 21; EachLine[i] = (PWSTR)ScepAlloc( 0, EachSize[i]*sizeof(WCHAR)); if ( EachLine[i] != NULL ) { swprintf(EachLine[i], L"TempDirSecurity = \"%s\"", Strvalue); EachLine[i][EachSize[i]-1] = L'\0'; } else rc = SCESTATUS_NOT_ENOUGH_RESOURCE; ScepFree(Strvalue); Strvalue = NULL; } else { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_ADDTO, L"TempDirSecurity", InfSectionName ); rc = ScepDosErrorToSceStatus(rc); } if ( rc != SCESTATUS_SUCCESS ) goto Done; TotalSize += EachSize[i]+1; i++; } // // write to this profile's section // rc = SceInfpWriteInfSection( InfProfileName, InfSectionName, TotalSize+1, EachLine, &EachSize[0], 0, i-1, Errlog ); if ( rc != SCESTATUS_SUCCESS ) goto Done; Done: if ( InfSectionName != NULL ) ScepFree(InfSectionName); if ( Strvalue != NULL ) ScepFree(Strvalue); for ( i=0; i<12; i++ ) if ( EachLine[i] != NULL ) ScepFree(EachLine[i]); return(rc); } #endif LONG SceInfpConvertMultiSZToString( IN PCWSTR KeyText, IN UNICODE_STRING Fields, OUT PWSTR *Strvalue, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /* ++ Routine Description: This routine converts names in a unicode string in Multi-SZ format (separated by NULLs) to comma delimited string. The format of the returned string is KeyText = f1,f2,f3,f4... where f1..fn are names in the unicode string. Arguments: KeyText - a string represents the key (left side of the = sign) Fields - The Multi-SZ string Strvalue - The output string Errlog - The error list Return value: Length of the output string if successful. -1 if error. -- */ { DWORD TotalSize; DWORD Strsize; PWSTR pTemp = NULL; PWSTR pField=NULL; // // The format of the string is // KeyText = f1,f2,f3,.... // Strsize = 3 + wcslen(KeyText); TotalSize = Fields.Length/2 + Strsize; *Strvalue = (PWSTR)ScepAlloc((UINT)0, (TotalSize+1)*sizeof(WCHAR)); if ( *Strvalue == NULL ) { return(-1); } swprintf(*Strvalue, L"%s = ", KeyText); pTemp = *Strvalue + Strsize; pField = Fields.Buffer; while ( pField != NULL && pField[0] ) { wcscpy(pTemp, pField); Strsize = wcslen(pField); pField += Strsize+1; pTemp += Strsize; *pTemp = L','; pTemp++; } *(pTemp-1) = L'\0'; *pTemp = L'\0'; return(TotalSize-1); } SCESTATUS ScepAllocateAndCopy( OUT PWSTR *Buffer, OUT PDWORD BufSize, IN DWORD MaxSize, IN PWSTR SrcBuf ) /* ++ Routine Description: Arguments: Return value: -- */ { *BufSize = 0; *Buffer = (PWSTR)ScepAlloc( (UINT)0, MaxSize*sizeof(WCHAR)); if ( *Buffer == NULL ) { return(SCESTATUS_NOT_ENOUGH_RESOURCE); } swprintf(*Buffer, L"%s", SrcBuf); *BufSize = wcslen(*Buffer); return(SCESTATUS_SUCCESS); } SCESTATUS SceInfpBreakTextIntoMultiFields( IN PWSTR szText, IN DWORD dLen, OUT LPDWORD pnFields, OUT LPDWORD *arrOffset ) /* If the text length is greater than MAX_STRING_LENGTH-1, this routine will find out how many "blocks" the text can be break into (each block is less than MAX_STRING_LENGTH-1), and the starting offsets of each block. Setupapi has string length limit of MAX_STRING_LENGTH per field in a inf file. SCE use setupapi to parse security templates which contain security descriptors in text format which can have unlimited aces. So when SCE saves text format of security descriptors into a inf file, it will break the text into multiple fields if the length is over limit. Setupapi does not have limit on number of fields per line. The break point occurs when the following characters are encountered in the text: ) ( ; " or space */ { SCESTATUS rc=SCESTATUS_SUCCESS; DWORD nFields; DWORD nProc; DWORD * newBuffer=NULL; DWORD i; if ( !pnFields || !arrOffset ) { return(SCESTATUS_INVALID_PARAMETER); } *pnFields = 0; *arrOffset = NULL; if ( !szText || dLen == 0 ) { return(SCESTATUS_SUCCESS); } // // initialize one field always // nFields = 1; *arrOffset = (DWORD *)ScepAlloc(0, nFields*sizeof(DWORD)); if ( *arrOffset ) { (*arrOffset)[0] = 0; if ( dLen > MAX_STRING_LENGTH-1 ) { // // loop through the text // nProc = (*arrOffset)[nFields-1] + MAX_STRING_LENGTH-2; while ( SCESTATUS_SUCCESS == rc && nProc < dLen ) { while ( nProc > (*arrOffset)[nFields-1] ) { // // looking for the break point // if ( L')' == *(szText+nProc) || L'(' == *(szText+nProc) || L';' == *(szText+nProc) || L' ' == *(szText+nProc) || L'\"' == *(szText+nProc) ) { break; } else { nProc--; } } if ( nProc <= (*arrOffset)[nFields-1] ) { // // no break point found, then just use MAX_STRING_LENGTH-2 // nProc = (*arrOffset)[nFields-1]+MAX_STRING_LENGTH-2; } else { // // else find a break poin at offset nProc, the next block // starts at nProc+1 // nProc++; } nFields++; newBuffer = (DWORD *)ScepAlloc( 0, nFields*sizeof(DWORD)); if ( newBuffer ) { for ( i=0; i<nFields-1; i++ ) { newBuffer[i] = (*arrOffset)[i]; } ScepFree(*arrOffset); // // set the offset to the last element // newBuffer[nFields-1] = nProc; *arrOffset = newBuffer; nProc = (*arrOffset)[nFields-1] + MAX_STRING_LENGTH-2; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; } } } *pnFields = nFields; } else { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; } if ( SCESTATUS_SUCCESS != rc ) { // // if error occurs, free memory and clear the output buffer // *pnFields = 0; if ( *arrOffset ) { ScepFree(*arrOffset); } *arrOffset = NULL; } return(rc); } SCESTATUS SceInfpWriteKerberosPolicy( IN PCWSTR ProfileName, IN PSCE_KERBEROS_TICKET_INFO pKerberosInfo, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /*++ Routine Description: This routine writes kerberos policy settings information to the INF file in section [Kerberos Policy]. Arguments: ProfileName - The profile to write to pKerberosInfo - the Kerberos policy info (SCP) to write. Errlog - A buffer to hold all error codes/text encountered when parsing the INF file. If Errlog is NULL, no further error information is returned except the return DWORD Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_CORRUPT_PROFILE SCESTATUS_INVALID_DATA --*/ { SCESTATUS rc=SCESTATUS_SUCCESS; SCE_KEY_LOOKUP AccessSCPLookup[] = { {(PWSTR)TEXT("MaxTicketAge"), offsetof(struct _SCE_KERBEROS_TICKET_INFO_, MaxTicketAge), 'D'}, {(PWSTR)TEXT("MaxRenewAge"), offsetof(struct _SCE_KERBEROS_TICKET_INFO_, MaxRenewAge), 'D'}, {(PWSTR)TEXT("MaxServiceAge"), offsetof(struct _SCE_KERBEROS_TICKET_INFO_, MaxServiceAge), 'D'}, {(PWSTR)TEXT("MaxClockSkew"),offsetof(struct _SCE_KERBEROS_TICKET_INFO_, MaxClockSkew), 'D'}, {(PWSTR)TEXT("TicketValidateClient"), offsetof(struct _SCE_KERBEROS_TICKET_INFO_, TicketValidateClient), 'D'} }; DWORD cAccess = sizeof(AccessSCPLookup) / sizeof(SCE_KEY_LOOKUP); DWORD i, j; PWSTR EachLine[10]; DWORD EachSize[10]; UINT Offset; DWORD Len; DWORD Value; DWORD TotalSize=0; if (!ProfileName ) { return(SCESTATUS_INVALID_PARAMETER); } if ( !pKerberosInfo ) { // // if no kerberos information to write, just return success // empty the section in the file // if ( bOverwrite ) { WritePrivateProfileString( szKerberosPolicy, NULL, NULL, ProfileName ); } return(SCESTATUS_SUCCESS); } for ( i=0, j=0; i<cAccess; i++) { EachLine[i] = NULL; EachSize[i] = 0; // // get settings in AccessLookup table // Offset = AccessSCPLookup[i].Offset; Value = 0; Len = wcslen(AccessSCPLookup[i].KeyString); switch ( AccessSCPLookup[i].BufferType ) { case 'D': // // Int Field // Value = *((DWORD *)((CHAR *)pKerberosInfo+Offset)); if ( Value != SCE_NO_VALUE ) { EachSize[j] = Len+15; } break; default: // // should not occur // break; } if ( EachSize[j] <= 0 ) continue; if ( bOverwrite ) { Len=(EachSize[j]+1)*sizeof(WCHAR); EachLine[j] = (PWSTR)ScepAlloc( LMEM_ZEROINIT, Len); if ( EachLine[j] == NULL ) { rc = SCESTATUS_NOT_ENOUGH_RESOURCE; goto Done; } if ( AccessSCPLookup[i].BufferType == 'D' ) { swprintf(EachLine[j], L"%s = %d", AccessSCPLookup[i].KeyString, Value); EachSize[j] = wcslen(EachLine[j]); } } else { // // in append mode, write one string at a time // ScepWriteOneIntValueToProfile( ProfileName, szKerberosPolicy, AccessSCPLookup[i].KeyString, Value ); } TotalSize += EachSize[j]+1; j++; } // // writes the profile section // if ( bOverwrite ) { if ( j > 0 ) { rc = SceInfpWriteInfSection( ProfileName, szKerberosPolicy, TotalSize+1, EachLine, &EachSize[0], 0, j-1, Errlog ); } else { WritePrivateProfileSection( szKerberosPolicy, NULL, ProfileName); } } Done: for ( i=0; i<cAccess; i++ ) { if ( EachLine[i] != NULL ) { ScepFree(EachLine[i]); } EachLine[i] = NULL; EachSize[i] = 0; } return(rc); } SCESTATUS SceInfpWriteRegistryValues( IN PCWSTR ProfileName, IN PSCE_REGISTRY_VALUE_INFO pRegValues, IN DWORD ValueCount, IN BOOL bOverwrite, OUT PSCE_ERROR_LOG_INFO *Errlog OPTIONAL ) /*++ Routine Description: This routine writes registry values to the INF file in section [Registry Values]. Arguments: ProfileName - The profile to write to pRegValues - the registry values to write (in the format of ValueName=Value) ValueCount - the number of values to write Errlog - A buffer to hold all error codes/text encountered when parsing the INF file. If Errlog is NULL, no further error information is returned except the return DWORD Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_CORRUPT_PROFILE SCESTATUS_INVALID_DATA --*/ { SCESTATUS rc=SCESTATUS_SUCCESS; PSCE_NAME_LIST pNameList=NULL; DWORD TotalSize=0; DWORD i, ObjectSize; if (!ProfileName ) { return(SCESTATUS_INVALID_PARAMETER); } if ( !pRegValues || 0 == ValueCount ) { // // if no value to write, just return success // empty the section in the file // if ( bOverwrite ) { WritePrivateProfileString( szRegistryValues, NULL, NULL, ProfileName ); } return(SCESTATUS_SUCCESS); } for ( i=0; i<ValueCount; i++) { // // Get string fields. Don't care the key name or if it exist. // Must have 3 fields each line. // rc = SceInfpWriteOneValue( ProfileName, pRegValues[i], bOverwrite, &pNameList, &ObjectSize ); if ( rc != SCESTATUS_SUCCESS ) { ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, pRegValues[i].FullValueName ); goto Done; } TotalSize += ObjectSize + 1; } // // write to this profile's section // if ( bOverwrite ) { rc = SceInfpWriteListSection( ProfileName, szRegistryValues, TotalSize+1, pNameList, 0, Errlog ); if ( rc != SCESTATUS_SUCCESS ) ScepBuildErrorLogInfo( rc, Errlog, SCEERR_WRITE_INFO, szRegistryValues ); } Done: ScepFreeNameList(pNameList); rc = ScepDosErrorToSceStatus(rc); return(rc); } DWORD SceInfpWriteOneValue( IN PCWSTR ProfileName, IN SCE_REGISTRY_VALUE_INFO RegValue, IN BOOL bOverwrite, OUT PSCE_NAME_LIST *pNameList, OUT PDWORD ObjectSize ) /* ++ Routine Description: This routine builds registry valueName=value for one registry value into the name list. Each value represents one line in the INF file. Arguments: RegValue - The registry value name and the value pNameList - The output string list. ObjectSize - size of this line Return value: SCESTATUS - SCESTATUS_SUCCESS SCESTATUS_NOT_ENOUGH_RESOURCE SCESTATUS_INVALID_PARAMETER SCESTATUS_BAD_FORMAT SCESTATUS_INVALID_DATA -- */ { DWORD rc=ERROR_SUCCESS; PWSTR OneLine; if ( !pNameList || !ObjectSize ) { return(ERROR_INVALID_PARAMETER); } *ObjectSize = 0; if ( RegValue.FullValueName && RegValue.Value ) { if ( bOverwrite ) { *ObjectSize = wcslen(RegValue.FullValueName); } if ( RegValue.ValueType == REG_SZ || RegValue.ValueType == REG_EXPAND_SZ ) { // need to add "" around the string *ObjectSize += (5+wcslen(RegValue.Value)); } else { // // to be safe, add more spaces to the buffer // because ValueType can be "-1" now // *ObjectSize += (6+wcslen(RegValue.Value)); } OneLine = (PWSTR)ScepAlloc(0, (*ObjectSize+1)*sizeof(WCHAR)); if ( OneLine ) { if ( bOverwrite ) { if ( RegValue.ValueType == REG_SZ || RegValue.ValueType == REG_EXPAND_SZ ) { swprintf(OneLine, L"%s=%1d,\"%s\"\0", RegValue.FullValueName, RegValue.ValueType, RegValue.Value); } else { swprintf(OneLine, L"%s=%1d,%s\0", RegValue.FullValueName, RegValue.ValueType, RegValue.Value); } } else { if ( RegValue.ValueType == REG_SZ || RegValue.ValueType == REG_EXPAND_SZ ) { swprintf(OneLine, L"%1d,\"%s\"\0", RegValue.ValueType, RegValue.Value); } else { swprintf(OneLine, L"%1d,%s\0", RegValue.ValueType, RegValue.Value); } } OneLine[*ObjectSize] = L'\0'; if ( bOverwrite ) { rc = ScepAddToNameList(pNameList, OneLine, *ObjectSize); } else { // // append mode, write one value at a time // WritePrivateProfileString( szRegistryValues, RegValue.FullValueName, OneLine, ProfileName ); } ScepFree(OneLine); } else { rc = ERROR_NOT_ENOUGH_MEMORY; } } return(rc); } SCESTATUS WINAPI SceSvcSetInformationTemplate( IN PCWSTR TemplateName, IN PCWSTR ServiceName, IN BOOL bExact, IN PSCESVC_CONFIGURATION_INFO ServiceInfo ) /* Routine Description: Writes information to the template in section <ServiceName>. The information is stored in ServiceInfo in the format of Key and Value. If bExact is set, only exact matched keys are overwritten, else all section is overwritten by the info in ServiceInfo. When ServiceInfo is NULL and bExact is set, delete the entire section Arguments: TemplateName - the inf template name to write to ServiceName - the section name to write to bExact - TRUE = all existing information in the section is erased ServiceInfo - the information to write Return Value: SCE status of this operation */ { if ( TemplateName == NULL || ServiceName == NULL || (ServiceInfo == NULL && !bExact ) ) { return(SCESTATUS_INVALID_PARAMETER); } DWORD i; if ( ServiceInfo != NULL ) { for ( i=0; i<ServiceInfo->Count; i++ ) { if ( ServiceInfo->Lines[i].Key == NULL ) { return(SCESTATUS_INVALID_DATA); } } } // // always write [Version] section. // WCHAR tmp[64]; memset(tmp, 0, 64*2); wcscpy(tmp, L"signature=\"$CHICAGO$\""); swprintf(tmp+wcslen(tmp)+1,L"Revision=%d\0\0", SCE_TEMPLATE_MAX_SUPPORTED_VERSION); WritePrivateProfileSection( L"Version", tmp, TemplateName); SCESTATUS rc=SCESTATUS_SUCCESS; if ( (bExact && ServiceInfo == NULL) || !bExact ) { // // delete the entire section // if ( !WritePrivateProfileString(ServiceName, NULL, NULL, TemplateName) ) { rc = ScepDosErrorToSceStatus(GetLastError()); } } if ( ServiceInfo == NULL ) { return(rc); } if ( rc == SCESTATUS_SUCCESS ) { // // process each key/value in ServiceInfo // for ( i=0; i<ServiceInfo->Count; i++ ) { if ( !WritePrivateProfileString(ServiceName, ServiceInfo->Lines[i].Key, ServiceInfo->Lines[i].Value, TemplateName ) ) { rc = ScepDosErrorToSceStatus(GetLastError()); break; } } } // // need to recover the crash - WMI // return(rc); } DWORD ScepWritePrivateProfileSection( IN LPCWSTR SectionName, IN LPTSTR pData, IN LPCWSTR FileName, IN BOOL bOverwrite) /* Description: This function is to provide the same function as WritePrivateProfileSection and exceed the 32K limit of that function. If the file doesn't exist, the file is always created in UNICODE. If the file does exist and it's in UNICODE format (the first two bytes are 0xFF, 0xFE), the data will be saved to the file in UNICODE. If the file does exist and it's in ANSI format, the data will be saved to the file in ANSI format. Note, this function assumes that the file is exclusively accessed. It's not an atomic operation as WritePrivateProfileSection. But since this is a private function implemented for SCE only and SCE always uses temporary files (exclusive for each client), there is no problem doing this way. Note 2, new data section is always added to the end of the file. Existing data in the section will be moved to the end of the file as well. Arguments: SectionName - the section name to write data to FileName - the full path file name to write data to pData - data in MULTI-SZ format (with no size limit) bOverwrite - TRUE=data will overwrite entire section in the file */ { if ( SectionName == NULL || FileName == NULL ) { return ERROR_INVALID_PARAMETER; } DWORD rc=ERROR_SUCCESS; // // check to see if the file exist // if ( 0xFFFFFFFF != GetFileAttributes(FileName) ) { // // file eixsts. // if ( !bOverwrite && pData != NULL ) { // // Need to check if the same section exists and if so // append the data // rc = ScepAppendProfileSection(SectionName, FileName, pData); } else { // // the existint data, if any, is not interesting. delete it // if the section does not exist at all, the next call won't fail // if ( !WritePrivateProfileSection( SectionName, NULL, FileName ) ) { rc = GetLastError(); } else if ( pData ) { // // now write the new data in // rc = ScepOverwriteProfileSection(SectionName, FileName, pData, SCEP_PROFILE_WRITE_SECTIONNAME, NULL); } } } else if ( pData ) { // // the file does not exist, no need to empty existing data // rc = ScepOverwriteProfileSection(SectionName, FileName, pData, SCEP_PROFILE_WRITE_SECTIONNAME, NULL); } return rc; } DWORD ScepAppendProfileSection( IN LPCWSTR SectionName, IN LPCWSTR FileName, IN LPTSTR pData ) /* Description: Append the data to the section if the section exists, otherwise, create the section and add data to it. Arguments: SectionName - the section name FileName - the file name pData - the data to append */ { DWORD rc=ERROR_SUCCESS; DWORD dwSize; PWSTR lpExisting = NULL; WCHAR szBuffer[256]; DWORD nSize=256; BOOL bSection=TRUE; lpExisting = szBuffer; szBuffer[0] = L'\0'; szBuffer[1] = L'\0'; PSCEP_SPLAY_TREE pKeys=NULL; do { // // check if the section already exist // dwSize = GetPrivateProfileSection(SectionName, lpExisting, nSize, FileName ); if ( dwSize == 0 ) { // // either failed or the section does not exist // rc = GetLastError(); if ( ERROR_FILE_NOT_FOUND == rc ) { // // the file or section does not exist // rc = ERROR_SUCCESS; break; } } else if ( dwSize < nSize - 2 ) { // // data get copied ok because the whole buffer is filled // break; } else { // // buffer is not big enough, reallocate heap // if ( lpExisting && lpExisting != szBuffer ) { LocalFree(lpExisting); } nSize += 256; lpExisting = (PWSTR)LocalAlloc(LPTR, nSize*sizeof(TCHAR)); if ( lpExisting == NULL ) { rc = ERROR_NOT_ENOUGH_MEMORY; } } } while ( rc == ERROR_SUCCESS ); if ( ERROR_SUCCESS == rc && lpExisting[0] != L'\0') { // // now delete the existing section (to make sure the section will // always be at the end) // if ( !WritePrivateProfileSection( SectionName, NULL, FileName ) ) { // // fail to delete the section // rc = GetLastError(); } else { // // save the new data first // pKeys = ScepSplayInitialize(SplayNodeStringType); rc = ScepOverwriteProfileSection(SectionName, FileName, pData, SCEP_PROFILE_WRITE_SECTIONNAME | SCEP_PROFILE_GENERATE_KEYS, pKeys ); if ( ERROR_SUCCESS == rc ) { // // now append the old data and check for duplicate // rc = ScepOverwriteProfileSection(SectionName, FileName, lpExisting, SCEP_PROFILE_CHECK_DUP, pKeys ); } if ( pKeys ) { ScepSplayFreeTree( &pKeys, TRUE ); } } } else if ( ERROR_SUCCESS == rc ) { // // now write the new data // rc = ScepOverwriteProfileSection(SectionName, FileName, pData, SCEP_PROFILE_WRITE_SECTIONNAME, NULL ); } // // free existing data buffer // if ( lpExisting && (lpExisting != szBuffer) ) { LocalFree(lpExisting); } return rc; } DWORD ScepOverwriteProfileSection( IN LPCWSTR SectionName, IN LPCWSTR FileName, IN LPTSTR pData, IN DWORD dwFlags, IN OUT PSCEP_SPLAY_TREE pKeys OPTIONAL ) /* Description: Writes data to the section. Old data in the section will be overwritten. Arguments: SectionName - section name to write to FileName - file name pData - data to write dwFlags - flags (write section name, generate keys, check duplicate) pKeys - the keys to generate or check duplicate */ { DWORD rc=ERROR_SUCCESS; HANDLE hFile=INVALID_HANDLE_VALUE; BOOL bUnicode; DWORD dwBytesWritten; // // try create the new file // hFile = CreateFile(FileName, GENERIC_READ | GENERIC_WRITE, 0, NULL, CREATE_NEW, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile != INVALID_HANDLE_VALUE) { // // this is a new file, created successfully. // now make it UNICODE // BYTE tmpBuf[3]; tmpBuf[0] = 0xFF; tmpBuf[1] = 0xFE; tmpBuf[2] = 0; if ( !WriteFile (hFile, (LPCVOID)&tmpBuf, 2, &dwBytesWritten, NULL) ) return GetLastError(); bUnicode = TRUE; } else { // // open the file exclusively // hFile = CreateFile(FileName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile != INVALID_HANDLE_VALUE) { SetFilePointer (hFile, 0, NULL, FILE_BEGIN); // // check the first byte of the file to see if it's UNICODE // BYTE tmpBytes[3]; tmpBytes[0] = 0; tmpBytes[1] = 0; if ( ReadFile(hFile, (LPVOID)tmpBytes, 2, &dwBytesWritten, NULL ) && dwBytesWritten == 2 ) { if ( tmpBytes[0] == 0xFF && tmpBytes[1] == 0xFE ) { bUnicode = TRUE; } else { bUnicode = FALSE; } } else { // // if fails to verify the file, assume it's UNICODE // bUnicode = TRUE; } } } PWSTR pKeyStr=NULL; if (hFile != INVALID_HANDLE_VALUE) { SetFilePointer (hFile, 0, NULL, FILE_END); if ( dwFlags & SCEP_PROFILE_WRITE_SECTIONNAME ) { // // save the section name first // rc = ScepWriteStrings(hFile, bUnicode, L"[", 1, (PWSTR)SectionName, 0, L"]", 1, TRUE); } if ( ERROR_SUCCESS == rc ) { LPTSTR pTemp=pData; LPTSTR pTemp1=pData; BOOL bExists, bKeyCopied; DWORD rc1; DWORD Len; // // write each string in the MULTI-SZ string separately, with a \r\n // while ( *pTemp1 ) { // // count to the \0 // bKeyCopied = FALSE; if ( pKeyStr ) { LocalFree(pKeyStr); pKeyStr = NULL; } while (*pTemp) { if ( pKeys && ( (dwFlags & SCEP_PROFILE_GENERATE_KEYS) || (dwFlags & SCEP_PROFILE_CHECK_DUP) ) && !bKeyCopied && (*pTemp == L'=' || *pTemp == L',') ) { // // there is a key to remember // Len = (DWORD)(pTemp-pTemp1); pKeyStr = (PWSTR)ScepAlloc(LPTR, (Len+1)*sizeof(WCHAR)); if ( pKeyStr ) { wcsncpy(pKeyStr, pTemp1, pTemp-pTemp1); bKeyCopied = TRUE; } else { rc = ERROR_NOT_ENOUGH_MEMORY; break; } } pTemp++; } if ( ERROR_SUCCESS != rc ) break; if ( bKeyCopied ) { if ( dwFlags & SCEP_PROFILE_GENERATE_KEYS ) { // // add it to the splay list // rc1 = ScepSplayInsert( (PVOID)pKeyStr, pKeys, &bExists ); } else if ( dwFlags & SCEP_PROFILE_CHECK_DUP ) { // // check if the key already exists in the splay list // if ( ScepSplayValueExist( (PVOID)pKeyStr, pKeys) ) { // // this is a duplicate entry, continue // pTemp++; pTemp1 = pTemp; continue; } } } Len = (DWORD)(pTemp-pTemp1); rc = ScepWriteStrings(hFile, bUnicode, // write it in UNICODE or ANSI NULL, // no prefix 0, pTemp1, // the string Len, NULL, // no suffix 0, TRUE // add \r\n ); if ( ERROR_SUCCESS != rc ) break; pTemp++; pTemp1 = pTemp; } } CloseHandle (hFile); } else { rc = GetLastError(); } if ( pKeyStr ) { LocalFree(pKeyStr); } return rc; } DWORD ScepWriteStrings( IN HANDLE hFile, IN BOOL bUnicode, IN PWSTR szPrefix OPTIONAL, IN DWORD dwPrefixLen, IN PWSTR szString, IN DWORD dwStrLen, IN PWSTR szSuffix OPTIONAL, IN DWORD dwSuffixLen, IN BOOL bCRLF ) /* Description: Write data to the file. Data can have prefix and/or suffix, and followed by a \r\n optionally. Data will be write in UNICODE or ANSI format based on the input paramter bUnicode. If ANSI format is desired, the wide chars are converted to multi-byte buffers then write to the file. Arguments: hFile - file handle bUnicode - the file format (UNICODE=TRUE or ANSI=FALSE) szPrefix - the optional prefix string dwPrefixLen - the optional prefix string length (in wchars) szString - the string to write dwStrLen - the string length szSuffix - the optional suffix string dwSuffixLen - the optional suffix string length (in wchars) bCRLF - if \r\n should be added */ { DWORD rc=ERROR_SUCCESS; PWSTR pwBuffer=NULL; DWORD dwTotal=0; PVOID pBuf=NULL; PCHAR pStr=NULL; DWORD dwBytes=0; // // validate parameters // if ( hFile == NULL || szString == NULL ) { return ERROR_INVALID_PARAMETER; } if ( szPrefix && dwPrefixLen == 0 ) { dwPrefixLen = wcslen(szPrefix); } if ( szSuffix && dwSuffixLen == 0 ) { dwSuffixLen = wcslen(szSuffix); } if ( dwStrLen == 0 ) { dwStrLen = wcslen(szString); } // // get total length // dwTotal = dwPrefixLen + dwStrLen + dwSuffixLen; if ( dwTotal == 0 && !bCRLF ) { // // nothing to write // return ERROR_SUCCESS; } if ( bCRLF ) { // // add \r\n // dwTotal += 2; } // // allocate buffer // pwBuffer = (PWSTR)LocalAlloc(LPTR, (dwTotal+1)*sizeof(TCHAR)); if ( pwBuffer == NULL ) { return ERROR_NOT_ENOUGH_MEMORY; } // // copy all data to the buffer // if ( szPrefix ) { wcsncpy(pwBuffer, szPrefix, dwPrefixLen); } wcsncat(pwBuffer, szString, dwStrLen); if ( szSuffix ) { wcsncat(pwBuffer, szSuffix, dwSuffixLen); } if ( bCRLF ) { wcscat(pwBuffer, c_szCRLF); } if ( !bUnicode ) { // // convert WCHAR into ANSI // dwBytes = WideCharToMultiByte(CP_THREAD_ACP, 0, pwBuffer, dwTotal, NULL, 0, NULL, NULL ); if ( dwBytes > 0 ) { // // allocate buffer // pStr = (PCHAR)LocalAlloc(LPTR, dwBytes+1); if ( pStr == NULL ) { rc = ERROR_NOT_ENOUGH_MEMORY; } else { dwBytes = WideCharToMultiByte(CP_THREAD_ACP, 0, pwBuffer, dwTotal, pStr, dwBytes, NULL, NULL ); if ( dwBytes > 0 ) { pBuf = (PVOID)pStr; } else { rc = GetLastError(); } } } else { rc = GetLastError(); } } else { // // write in UNICODE, use the existing buffer // pBuf = (PVOID)pwBuffer; dwBytes = dwTotal*sizeof(WCHAR); } // // write to the file // DWORD dwBytesWritten=0; if ( pBuf ) { if ( WriteFile (hFile, (LPCVOID)pBuf, dwBytes, &dwBytesWritten, NULL) ) { if ( dwBytesWritten != dwBytes ) { // // not all data is written // rc = ERROR_INVALID_DATA; } } else { rc = GetLastError(); } } if ( pStr ) { LocalFree(pStr); } // // free buffer // LocalFree(pwBuffer); return(rc); }
d9254cc90578dbfdd8c7240fad4f0c475637ef66
b62e7086980cb97554b01dbfad64a040f9f80165
/NtupleMacros/SSDilep/CORE/selections.h
8ab05f22caf328958c54b1bc98567baadc112c43
[]
no_license
tastest/CMS2
f819962e172c712abd82a8b213c4cb2286bcdcfe
e31e02d6037fbef206e216413b4def558ccefb39
refs/heads/master
2021-01-10T20:22:52.181267
2013-07-12T15:16:31
2013-07-12T15:16:31
10,772,930
1
0
null
null
null
null
UTF-8
C++
false
false
9,406
h
#ifndef SELECTION_H #define SELECTION_H #include "TLorentzVector.h" #include "Math/LorentzVector.h" #include <vector> #include <iostream> #include <utility> typedef ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<float> > LorentzVector; enum TrackAlgorithm { undefAlgorithm=0, ctf=1, rs=2, cosmics=3, iter0=4, iter1=5, iter2=6, iter3=7, iter4=8, iter5=9, iter6=10, iter7=11, iter8=12, iter9=13,iter10=14, outInEcalSeededConv=15, inOutEcalSeededConv=16, nuclInter=17, standAloneMuon=18,globalMuon=19,cosmicStandAloneMuon=20,cosmicGlobalMuon=21, iter1LargeD0=22,iter2LargeD0=23,iter3LargeD0=24,iter4LargeD0=25,iter5LargeD0=26, bTagGhostTracks=27, beamhalo=28, gsf=29, algoSize=30 }; enum TrackQuality { undefQuality=-1, loose=0, tight=1, highPurity=2, confirmed=3, goodIterative=4, qualitySize=5}; enum SubDetector { EBp = 0, EBm = 1, EEp = 2, EEm = 3, HBHEa = 5, HBHEb = 6, HBHEc = 7, HF = 8, HO = 9, RPC = 12, DT0 = 13, DTp = 14, DTm = 15, CSCp = 16, CSCm = 17, CASTOR = 20, TIBTID = 24, TOB = 25, TECp = 26, TECm = 27, BPIX = 28, FPIX = 29, ESp = 30, ESm = 31, nPartitions = 24 }; bool isSubDetectorGood( int cuts ); bool isTrackQuality( int index, int cuts); bool inZmassWindow (float mass); bool supertightElectron (int index); bool deltaPhiInElectron (int index); bool goodElectronWithoutIsolation(int index); bool goodElectronWithoutIsolationWithoutd0(int index); bool goodMuonWithoutIsolation(int index); bool passElectronIsolation(int index, bool use_calo_iso); bool passElectronIsolationLoose(int index, bool use_calo_iso); bool passElectronIsolationLoose2(int index, bool use_calo_iso); bool passElectronIsolation_1_6(int index, bool use_calo_iso); bool passElectronIsolationLoose_1_6(int index, bool use_calo_iso); bool passElectronIsolationLoose2_1_6(int index, bool use_calo_iso); bool passMuonIsolation(int index); bool passMuonIsolationLoose(int index); bool goodMuonIsolated(int index); bool goodElectronIsolated(int index, bool use_calo_iso = false); bool goodLooseElectronWithoutIsolation(int index); bool pass2Met(int index, const class TVector3& corr); double nearestDeltaPhi(double Phi, int index); double MetSpecial(double MET, double MetPhi, int index); bool pass4Met(int index, const class TVector3& corr); bool met10(int index, const class TVector3& corr); bool met1(int index, const class TVector3& corr); bool sumEt10(double sumEt); bool sumEt1(double sumEt); bool isChargeFlip1(int elIndex); //old cuts on conversions bool conversionElectron(int electron); //new conversion stuff...cut on shared fraction of hits implemented //when looking for electron's ctf track bool isconversionElectron09(int elIdx); std::pair<float, float> getConversionInfo(LorentzVector trk1_p4, int trk1_q, float trk1_d0, LorentzVector trk2_p4, int trk2_q, float trk2_d0, float bField); int numberOfExtraMuons(int i_hyp, bool nonisolated); bool passMuonBVeto_1_6 (int i_dilep, bool soft_nonisolated); bool passTriLepVeto (int i_dilep); int tagMuonIdx (int i_dilep); double tagMuonPt (int i_dilep); double tagMuonRelIso (int i_dilep); int additionalZcounter(); bool additionalZveto(); bool isDYee(); bool isDYmm(); bool isDYtt(); bool isWe(); bool isWm(); bool isWt(); int nTrkJets(int i_hyp); bool passTrkJetVeto(int i_hyp); std::vector<LorentzVector> JPTs(int i_hyp, double etThreshold); unsigned int nJPTs(int i_hyp, double etThreshod); unsigned int nJPTs(int i_hyp); // with default threshold = 20 // bool passCaloTrkjetCombo (); double mu_rel_iso (int index); double el_rel_iso (int index, bool use_calo_iso); double reliso_lt (int i_hyp, bool use_calo_iso = false); double reliso_ll (int i_hyp, bool use_calo_iso = false); int conversionPartner (int i_el); double conversionDeltaPhi (int i_conv, int i_el); bool passTrackIsolation(int index); int passTrackZVeto(int hyp_index); int getDrellYanType(); int getZZType (); void dumpDocLines(); int NjetVeto(std::vector<TLorentzVector>& Jet, double min_et); bool trueElectron(int index); bool trueMuon(int index); bool trueMuonFromW(int index); bool trueMuonFromW_WJets(int index); bool trueElectronFromW(int index); bool trueElectronFromW_WJets(int index); //bool isFakeDenominatorElectron(int index); //bool isFakeNumeratorElectron(int index, int type); // muon cleaning by ratio of track and global Pt bool muonReconstructionCleaning(int i_hyp, float threshold); // new MET factorization bool metSimple (float threshold, const TVector3& corr); bool metBalance (int i_hyp, const TVector3& corr); bool metProjected (int i_hyp, const TVector3& corr); bool pass5Met (int i_hyp, const TVector3& corr); // bool passLeptonIsolation(int id, int index, bool use_ele_calo_iso); void leptonGenpCount(int& nele, int& nmuon, int& ntau) ; double muonTrkIsolationPAT(int index); double muonCalIsolationPAT(int index); bool electron20Eta2p4(int index); bool looseElectronSelectionNoIsoTTDil08(int index) ; double electronTrkIsolationPAT(int index); double electronCalIsolationPAT(int index); float electronTrkIsolationTTDil08(int index); float electronCalIsolationTTDil08(int index); bool looseElectronSelectionTTDil08(int index) ; bool passElectronIsolationTTDil08(int index); bool muon20Eta2p4(int index); bool looseMuonSelectionNoIsoTTDil08(int index) ; bool lepton20Eta2p4(int id, int index); float muonTrkIsolationTTDil08(int index); float muonCalIsolationTTDil08(int index); float leptonTrkIsolationTTDil08(int id, int index); float leptonCalIsolationTTDil08(int id, int index); bool looseMuonSelectionTTDil08(int index) ; bool passMuonIsolationTTDil08(int index) ; bool passLeptonIsolationTTDil08(int id, int index); bool looseLeptonSelectionNoIsoTTDil08(int id, int index); bool looseLeptonSelectionTTDil08(int id, int index); bool additionalZvetoTTDil08() ; bool haveExtraMuon(int hypIdx); bool haveExtraMuon5(int hypIdx); bool passTriggersMu9orLisoE15(int dilType) ; bool passTriggersTTDil08JanTrial(int dilType) ; int genpCountPDGId(int id0, int id1=-1, int id2=-1); int genpCountPDGId_Pt20h24(int id0, int id1=-1, int id2=-1); int genpDileptonType(); int eventDilIndexByWeightTTDil08(const std::vector<unsigned int>& goodHyps, int& strasbourgDilType, bool printDebug = false, bool usePtOnlyForWeighting = false); // SUSY Dilepton group cuts (VJets09) double inv_mu_rel_iso(int index); double inv_el_rel_iso(int index, bool use_calo_iso); bool passMuonIsolationVJets09(int index); bool passElectronIsolationVJets09(int index, bool use_calo_iso); bool passLeptonIsolationVJets09(int id, int index); bool looseElectronSelectionVJets09(int index); bool looseMuonSelectionVJets09(int index); bool passLeptonIDVJets09(int id, int index); bool passMetVJets09(float value, bool useTcMet); int numberOfExtraMuonsVJets09(int i_hyp); int numberOfExtraElectronsVJets09(int i_hyp); //SUSY dilepton selection TAS group bool comparePt(const LorentzVector &lv1, const LorentzVector &lv2); bool GoodSusyElectronWithoutIsolation(int index); bool GoodSusyElectronWithoutIsolationNoD0(int index); bool GoodSusyElectronWithIsolationLoose(int index, bool use_calo_iso); bool PassSusyElectronIsolationLoose(int index, bool use_calo_iso); bool GoodSusyMuonWithIsolation(int index); bool GoodSusyMuonWithoutIsolation(int index); double inv_mu_relsusy_iso(int index); double inv_el_relsusy_iso(int index, bool use_calo_iso); bool GoodSusyElectronWithIsolation(int index, bool use_calo_iso); bool GoodSusyLeptonWithIsolation(int id, int index); bool GoodSusy2010Leptons(int id, int index); bool additionalZvetoSUSY2010(int i_hyp); bool GoodSusyLeptonID(int id, int index); bool PassSusyMuonIsolation(int index); bool PassSusyElectronIsolation(int index, bool use_calo_iso); bool PassSusyLeptonIsolation(int id, int index); bool GoodSusyLeptonID(int id, int index); bool GoodSusyTrigger(int dilType); int numberOfExtraElectronsSUSY(int i_hyp); int numberOfExtraMuonsSUSY(int i_hyp); std::vector<LorentzVector> getCaloJets(int i_hyp); std::vector<LorentzVector> getJPTJets(int i_hyp); int ttbarconstituents(int i_hyp); bool additionalZvetoSUSY09(int i_hyp); bool idIsBeauty(int id); bool idIsCharm(int id); int leptonIsFromW(int idx, int id, LorentzVector v); bool isFakeableElSUSY09(int iEl); bool isFakeableMuSUSY09(int iMu); bool isNumElSUSY09(int iEl); bool isNumMuSUSY09(int iMu); //TTDil08 fake rate functions bool isNumElTTDil08(int iEl); bool isFakeableElTTDil08(int iEl); bool isNumMuTTDil08(int iMu); bool isFakeableMuTTDil08(int iMu); bool trueGammaFromMuon(int electron); int findPrimTrilepZ(int i_hyp, double &mass); bool vetoAddZ(int i_hyp, int unusedLepton, double &mass); std::vector<LorentzVector> JPTsTrilep(int i_hyp, double etThreshold); unsigned int nJPTsTrilep(int i_hyp, double etThreshold); double nearestDeltaPhiTrilep(double Phi, int i_hyp); double nearestDeltaPhiJet(double Phi, int i_hyp); double MetSpecialTrilep(double MET, double MetPhi, int index); #endif
[ "spadhi" ]
spadhi
8e34c263d76bf125bd65d97cde8cabf590b76008
d46ead741eedc19a080fbfd3e03af5436abfa1c8
/mownit2/Lab2/Zad1/IInterpolation.h
25c13aadeae9c360a9e075b9b75d204e62231c5b
[]
permissive
YuseqYaseq/University-Projects
70acc28586a2adc07c6d075ec4330f80d2062b32
a12e06d378e6e3cec2363c0f52a28f64900f7429
refs/heads/master
2021-09-09T13:08:01.890487
2019-12-28T14:49:11
2019-12-28T14:49:11
142,026,301
0
2
MIT
2021-09-01T18:39:26
2018-07-23T14:32:38
Java
UTF-8
C++
false
false
521
h
// // Created by joseph on 17.10.18. // #ifndef LAB2_IINTERPOLATION_H #define LAB2_IINTERPOLATION_H /// <summary> /// Defines structure for interpolation classes /// </summary> class IInterpolation { // public construction and destruction methods public: virtual ~IInterpolation() = default; // public interface methods public: virtual void Interpolate1D(unsigned int pointsToInterpolate) = 0; virtual void Interpolate2D(unsigned int pointsToInterpolate) = 0; }; #endif //LAB2_IINTERPOLATION_H
2b71ad3c52661e82197efafd689f8bffa8a29b65
bdb86d72be26f0d2d4d72d692f0875887fd11402
/BCC102/include/windows/sdk/msxml.h
4c5668b423bd9e2aedf66f8a094d16be5a7d1497
[]
no_license
KaarthicPulogarajah/Battleship
28168359e4209a36b12e855668105ab31f7121f3
a216169e28c7b54c730df23d61ab07d25d487c05
refs/heads/master
2021-01-12T04:23:33.630829
2019-08-21T01:37:39
2019-08-21T01:37:39
77,579,201
0
0
null
null
null
null
UTF-8
C++
false
false
386,425
h
#pragma option push -b -a8 -pc -A- -w-pun /*P_O_Push*/ /* this ALWAYS GENERATED file contains the definitions for the interfaces */ /* File created by MIDL compiler version 8.00.0611 */ /* @@MIDL_FILE_HEADING( ) */ /* verify that the <rpcndr.h> version is high enough to compile this file*/ #ifndef __REQUIRED_RPCNDR_H_VERSION__ #define __REQUIRED_RPCNDR_H_VERSION__ 500 #endif /* verify that the <rpcsal.h> version is high enough to compile this file*/ #ifndef __REQUIRED_RPCSAL_H_VERSION__ #define __REQUIRED_RPCSAL_H_VERSION__ 100 #endif #include "rpc.h" #include "rpcndr.h" #ifndef __RPCNDR_H_VERSION__ #error this stub requires an updated version of <rpcndr.h> #endif /* __RPCNDR_H_VERSION__ */ #ifndef __msxml_h__ #define __msxml_h__ #if defined(_MSC_VER) && (_MSC_VER >= 1020) #pragma once #endif /* Forward Declarations */ #ifndef __IXMLDOMImplementation_FWD_DEFINED__ #define __IXMLDOMImplementation_FWD_DEFINED__ typedef interface IXMLDOMImplementation IXMLDOMImplementation; #endif /* __IXMLDOMImplementation_FWD_DEFINED__ */ #ifndef __IXMLDOMNode_FWD_DEFINED__ #define __IXMLDOMNode_FWD_DEFINED__ typedef interface IXMLDOMNode IXMLDOMNode; #endif /* __IXMLDOMNode_FWD_DEFINED__ */ #ifndef __IXMLDOMDocumentFragment_FWD_DEFINED__ #define __IXMLDOMDocumentFragment_FWD_DEFINED__ typedef interface IXMLDOMDocumentFragment IXMLDOMDocumentFragment; #endif /* __IXMLDOMDocumentFragment_FWD_DEFINED__ */ #ifndef __IXMLDOMDocument_FWD_DEFINED__ #define __IXMLDOMDocument_FWD_DEFINED__ typedef interface IXMLDOMDocument IXMLDOMDocument; #endif /* __IXMLDOMDocument_FWD_DEFINED__ */ #ifndef __IXMLDOMNodeList_FWD_DEFINED__ #define __IXMLDOMNodeList_FWD_DEFINED__ typedef interface IXMLDOMNodeList IXMLDOMNodeList; #endif /* __IXMLDOMNodeList_FWD_DEFINED__ */ #ifndef __IXMLDOMNamedNodeMap_FWD_DEFINED__ #define __IXMLDOMNamedNodeMap_FWD_DEFINED__ typedef interface IXMLDOMNamedNodeMap IXMLDOMNamedNodeMap; #endif /* __IXMLDOMNamedNodeMap_FWD_DEFINED__ */ #ifndef __IXMLDOMCharacterData_FWD_DEFINED__ #define __IXMLDOMCharacterData_FWD_DEFINED__ typedef interface IXMLDOMCharacterData IXMLDOMCharacterData; #endif /* __IXMLDOMCharacterData_FWD_DEFINED__ */ #ifndef __IXMLDOMAttribute_FWD_DEFINED__ #define __IXMLDOMAttribute_FWD_DEFINED__ typedef interface IXMLDOMAttribute IXMLDOMAttribute; #endif /* __IXMLDOMAttribute_FWD_DEFINED__ */ #ifndef __IXMLDOMElement_FWD_DEFINED__ #define __IXMLDOMElement_FWD_DEFINED__ typedef interface IXMLDOMElement IXMLDOMElement; #endif /* __IXMLDOMElement_FWD_DEFINED__ */ #ifndef __IXMLDOMText_FWD_DEFINED__ #define __IXMLDOMText_FWD_DEFINED__ typedef interface IXMLDOMText IXMLDOMText; #endif /* __IXMLDOMText_FWD_DEFINED__ */ #ifndef __IXMLDOMComment_FWD_DEFINED__ #define __IXMLDOMComment_FWD_DEFINED__ typedef interface IXMLDOMComment IXMLDOMComment; #endif /* __IXMLDOMComment_FWD_DEFINED__ */ #ifndef __IXMLDOMProcessingInstruction_FWD_DEFINED__ #define __IXMLDOMProcessingInstruction_FWD_DEFINED__ typedef interface IXMLDOMProcessingInstruction IXMLDOMProcessingInstruction; #endif /* __IXMLDOMProcessingInstruction_FWD_DEFINED__ */ #ifndef __IXMLDOMCDATASection_FWD_DEFINED__ #define __IXMLDOMCDATASection_FWD_DEFINED__ typedef interface IXMLDOMCDATASection IXMLDOMCDATASection; #endif /* __IXMLDOMCDATASection_FWD_DEFINED__ */ #ifndef __IXMLDOMDocumentType_FWD_DEFINED__ #define __IXMLDOMDocumentType_FWD_DEFINED__ typedef interface IXMLDOMDocumentType IXMLDOMDocumentType; #endif /* __IXMLDOMDocumentType_FWD_DEFINED__ */ #ifndef __IXMLDOMNotation_FWD_DEFINED__ #define __IXMLDOMNotation_FWD_DEFINED__ typedef interface IXMLDOMNotation IXMLDOMNotation; #endif /* __IXMLDOMNotation_FWD_DEFINED__ */ #ifndef __IXMLDOMEntity_FWD_DEFINED__ #define __IXMLDOMEntity_FWD_DEFINED__ typedef interface IXMLDOMEntity IXMLDOMEntity; #endif /* __IXMLDOMEntity_FWD_DEFINED__ */ #ifndef __IXMLDOMEntityReference_FWD_DEFINED__ #define __IXMLDOMEntityReference_FWD_DEFINED__ typedef interface IXMLDOMEntityReference IXMLDOMEntityReference; #endif /* __IXMLDOMEntityReference_FWD_DEFINED__ */ #ifndef __IXMLDOMParseError_FWD_DEFINED__ #define __IXMLDOMParseError_FWD_DEFINED__ typedef interface IXMLDOMParseError IXMLDOMParseError; #endif /* __IXMLDOMParseError_FWD_DEFINED__ */ #ifndef __IXTLRuntime_FWD_DEFINED__ #define __IXTLRuntime_FWD_DEFINED__ typedef interface IXTLRuntime IXTLRuntime; #endif /* __IXTLRuntime_FWD_DEFINED__ */ #ifndef __XMLDOMDocumentEvents_FWD_DEFINED__ #define __XMLDOMDocumentEvents_FWD_DEFINED__ typedef interface XMLDOMDocumentEvents XMLDOMDocumentEvents; #endif /* __XMLDOMDocumentEvents_FWD_DEFINED__ */ #ifndef __DOMDocument_FWD_DEFINED__ #define __DOMDocument_FWD_DEFINED__ #ifdef __cplusplus typedef class DOMDocument DOMDocument; #else typedef struct DOMDocument DOMDocument; #endif /* __cplusplus */ #endif /* __DOMDocument_FWD_DEFINED__ */ #ifndef __DOMFreeThreadedDocument_FWD_DEFINED__ #define __DOMFreeThreadedDocument_FWD_DEFINED__ #ifdef __cplusplus typedef class DOMFreeThreadedDocument DOMFreeThreadedDocument; #else typedef struct DOMFreeThreadedDocument DOMFreeThreadedDocument; #endif /* __cplusplus */ #endif /* __DOMFreeThreadedDocument_FWD_DEFINED__ */ #ifndef __IXMLHttpRequest_FWD_DEFINED__ #define __IXMLHttpRequest_FWD_DEFINED__ typedef interface IXMLHttpRequest IXMLHttpRequest; #endif /* __IXMLHttpRequest_FWD_DEFINED__ */ #ifndef __XMLHTTPRequest_FWD_DEFINED__ #define __XMLHTTPRequest_FWD_DEFINED__ #ifdef __cplusplus typedef class XMLHTTPRequest XMLHTTPRequest; #else typedef struct XMLHTTPRequest XMLHTTPRequest; #endif /* __cplusplus */ #endif /* __XMLHTTPRequest_FWD_DEFINED__ */ #ifndef __IXMLDSOControl_FWD_DEFINED__ #define __IXMLDSOControl_FWD_DEFINED__ typedef interface IXMLDSOControl IXMLDSOControl; #endif /* __IXMLDSOControl_FWD_DEFINED__ */ #ifndef __XMLDSOControl_FWD_DEFINED__ #define __XMLDSOControl_FWD_DEFINED__ #ifdef __cplusplus typedef class XMLDSOControl XMLDSOControl; #else typedef struct XMLDSOControl XMLDSOControl; #endif /* __cplusplus */ #endif /* __XMLDSOControl_FWD_DEFINED__ */ #ifndef __IXMLElementCollection_FWD_DEFINED__ #define __IXMLElementCollection_FWD_DEFINED__ typedef interface IXMLElementCollection IXMLElementCollection; #endif /* __IXMLElementCollection_FWD_DEFINED__ */ #ifndef __IXMLDocument_FWD_DEFINED__ #define __IXMLDocument_FWD_DEFINED__ typedef interface IXMLDocument IXMLDocument; #endif /* __IXMLDocument_FWD_DEFINED__ */ #ifndef __IXMLDocument2_FWD_DEFINED__ #define __IXMLDocument2_FWD_DEFINED__ typedef interface IXMLDocument2 IXMLDocument2; #endif /* __IXMLDocument2_FWD_DEFINED__ */ #ifndef __IXMLElement_FWD_DEFINED__ #define __IXMLElement_FWD_DEFINED__ typedef interface IXMLElement IXMLElement; #endif /* __IXMLElement_FWD_DEFINED__ */ #ifndef __IXMLElement2_FWD_DEFINED__ #define __IXMLElement2_FWD_DEFINED__ typedef interface IXMLElement2 IXMLElement2; #endif /* __IXMLElement2_FWD_DEFINED__ */ #ifndef __IXMLAttribute_FWD_DEFINED__ #define __IXMLAttribute_FWD_DEFINED__ typedef interface IXMLAttribute IXMLAttribute; #endif /* __IXMLAttribute_FWD_DEFINED__ */ #ifndef __IXMLError_FWD_DEFINED__ #define __IXMLError_FWD_DEFINED__ typedef interface IXMLError IXMLError; #endif /* __IXMLError_FWD_DEFINED__ */ #ifndef __XMLDocument_FWD_DEFINED__ #define __XMLDocument_FWD_DEFINED__ #ifdef __cplusplus typedef class XMLDocument XMLDocument; #else typedef struct XMLDocument XMLDocument; #endif /* __cplusplus */ #endif /* __XMLDocument_FWD_DEFINED__ */ /* header files for imported files */ #include "unknwn.h" #include "objidl.h" #include "oaidl.h" #ifdef __cplusplus extern "C"{ #endif /* interface __MIDL_itf_msxml_0000_0000 */ /* [local] */ //+------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1997-1998. // //-------------------------------------------------------------------------- #pragma warning(push) #pragma warning(disable:4001) #pragma once #pragma warning(push) #pragma warning(disable:4001) #pragma once #pragma warning(pop) #pragma warning(pop) #pragma region Desktop Family #pragma endregion #include <winapifamily.h> #if _MSC_VER >= 1200 #pragma warning(push) #pragma warning(disable:4820) /* padding added after data member */ #endif #pragma region Desktop Family #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) typedef struct _xml_error { unsigned int _nLine; BSTR _pchBuf; unsigned int _cchBuf; unsigned int _ich; BSTR _pszFound; BSTR _pszExpected; DWORD _reserved1; DWORD _reserved2; } XML_ERROR; extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0000_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0000_v0_0_s_ifspec; #ifndef __MSXML_LIBRARY_DEFINED__ #define __MSXML_LIBRARY_DEFINED__ /* library MSXML */ /* [version][lcid][helpstring][uuid] */ // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1998. // //-------------------------------------------------------------------------- #pragma region Desktop Family #pragma endregion typedef /* [helpstring] */ enum tagDOMNodeType { NODE_INVALID = 0, NODE_ELEMENT = ( NODE_INVALID + 1 ) , NODE_ATTRIBUTE = ( NODE_ELEMENT + 1 ) , NODE_TEXT = ( NODE_ATTRIBUTE + 1 ) , NODE_CDATA_SECTION = ( NODE_TEXT + 1 ) , NODE_ENTITY_REFERENCE = ( NODE_CDATA_SECTION + 1 ) , NODE_ENTITY = ( NODE_ENTITY_REFERENCE + 1 ) , NODE_PROCESSING_INSTRUCTION = ( NODE_ENTITY + 1 ) , NODE_COMMENT = ( NODE_PROCESSING_INSTRUCTION + 1 ) , NODE_DOCUMENT = ( NODE_COMMENT + 1 ) , NODE_DOCUMENT_TYPE = ( NODE_DOCUMENT + 1 ) , NODE_DOCUMENT_FRAGMENT = ( NODE_DOCUMENT_TYPE + 1 ) , NODE_NOTATION = ( NODE_DOCUMENT_FRAGMENT + 1 ) } DOMNodeType; //+------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1998. // //-------------------------------------------------------------------------- #pragma region Desktop Family #pragma endregion typedef /* [helpstring] */ enum tagXMLEMEM_TYPE { XMLELEMTYPE_ELEMENT = 0, XMLELEMTYPE_TEXT = ( XMLELEMTYPE_ELEMENT + 1 ) , XMLELEMTYPE_COMMENT = ( XMLELEMTYPE_TEXT + 1 ) , XMLELEMTYPE_DOCUMENT = ( XMLELEMTYPE_COMMENT + 1 ) , XMLELEMTYPE_DTD = ( XMLELEMTYPE_DOCUMENT + 1 ) , XMLELEMTYPE_PI = ( XMLELEMTYPE_DTD + 1 ) , XMLELEMTYPE_OTHER = ( XMLELEMTYPE_PI + 1 ) } XMLELEM_TYPE; EXTERN_C const IID LIBID_MSXML; #ifndef __IXMLDOMImplementation_INTERFACE_DEFINED__ #define __IXMLDOMImplementation_INTERFACE_DEFINED__ /* interface IXMLDOMImplementation */ /* [uuid][dual][oleautomation][unique][nonextensible][object][local] */ EXTERN_C const IID IID_IXMLDOMImplementation; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF8F-7B36-11d2-B20E-00C04F983E60") IXMLDOMImplementation : public IDispatch { public: virtual /* [id] */ HRESULT STDMETHODCALLTYPE hasFeature( /* [in] */ BSTR feature, /* [in] */ BSTR version, /* [retval][out] */ VARIANT_BOOL *hasFeature) = 0; }; #else /* C style interface */ typedef struct IXMLDOMImplementationVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMImplementation * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMImplementation * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMImplementation * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMImplementation * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMImplementation * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMImplementation * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMImplementation * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [id] */ HRESULT ( STDMETHODCALLTYPE *hasFeature )( IXMLDOMImplementation * This, /* [in] */ BSTR feature, /* [in] */ BSTR version, /* [retval][out] */ VARIANT_BOOL *hasFeature); END_INTERFACE } IXMLDOMImplementationVtbl; interface IXMLDOMImplementation { CONST_VTBL struct IXMLDOMImplementationVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMImplementation_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMImplementation_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMImplementation_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMImplementation_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMImplementation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMImplementation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMImplementation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMImplementation_hasFeature(This,feature,version,hasFeature) \ ( (This)->lpVtbl -> hasFeature(This,feature,version,hasFeature) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMImplementation_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMNode_INTERFACE_DEFINED__ #define __IXMLDOMNode_INTERFACE_DEFINED__ /* interface IXMLDOMNode */ /* [unique][helpstring][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMNode; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF80-7B36-11d2-B20E-00C04F983E60") IXMLDOMNode : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_nodeName( /* [retval][out] */ BSTR *name) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_nodeValue( /* [retval][out] */ VARIANT *value) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_nodeValue( /* [in] */ VARIANT value) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_nodeType( /* [retval][out] */ DOMNodeType *type) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_parentNode( /* [retval][out] */ IXMLDOMNode **parent) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_childNodes( /* [retval][out] */ IXMLDOMNodeList **childList) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_firstChild( /* [retval][out] */ IXMLDOMNode **firstChild) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_lastChild( /* [retval][out] */ IXMLDOMNode **lastChild) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_previousSibling( /* [retval][out] */ IXMLDOMNode **previousSibling) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_nextSibling( /* [retval][out] */ IXMLDOMNode **nextSibling) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_attributes( /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE insertBefore( /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE replaceChild( /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeChild( /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE appendChild( /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE hasChildNodes( /* [retval][out] */ VARIANT_BOOL *hasChild) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_ownerDocument( /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE cloneNode( /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_nodeTypeString( /* [out][retval] */ BSTR *nodeType) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_text( /* [out][retval] */ BSTR *text) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_text( /* [in] */ BSTR text) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_specified( /* [retval][out] */ VARIANT_BOOL *isSpecified) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_definition( /* [out][retval] */ IXMLDOMNode **definitionNode) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_nodeTypedValue( /* [out][retval] */ VARIANT *typedValue) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_nodeTypedValue( /* [in] */ VARIANT typedValue) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_dataType( /* [out][retval] */ VARIANT *dataTypeName) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_dataType( /* [in] */ BSTR dataTypeName) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_xml( /* [out][retval] */ BSTR *xmlString) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE transformNode( /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE selectNodes( /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE selectSingleNode( /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_parsed( /* [out][retval] */ VARIANT_BOOL *isParsed) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_namespaceURI( /* [out][retval] */ BSTR *namespaceURI) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_prefix( /* [out][retval] */ BSTR *prefixString) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_baseName( /* [out][retval] */ BSTR *nameString) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE transformNodeToObject( /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject) = 0; }; #else /* C style interface */ typedef struct IXMLDOMNodeVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMNode * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMNode * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMNode * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMNode * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMNode * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMNode * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMNode * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMNode * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMNode * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMNode * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMNode * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMNode * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMNode * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMNode * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMNode * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMNode * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMNode * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMNode * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMNode * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMNode * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMNode * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMNode * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMNode * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMNode * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMNode * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMNode * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMNode * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMNode * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMNode * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMNode * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMNode * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMNode * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMNode * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMNode * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMNode * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMNode * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); END_INTERFACE } IXMLDOMNodeVtbl; interface IXMLDOMNode { CONST_VTBL struct IXMLDOMNodeVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMNode_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMNode_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMNode_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMNode_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMNode_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMNode_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMNode_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMNode_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMNode_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMNode_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMNode_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMNode_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMNode_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMNode_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMNode_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMNode_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMNode_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMNode_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMNode_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMNode_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMNode_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMNode_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMNode_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMNode_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMNode_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMNode_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMNode_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMNode_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMNode_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMNode_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMNode_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMNode_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMNode_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMNode_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMNode_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMNode_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMNode_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMNode_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMNode_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMNode_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMNode_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMNode_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMNode_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMNode_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMDocumentFragment_INTERFACE_DEFINED__ #define __IXMLDOMDocumentFragment_INTERFACE_DEFINED__ /* interface IXMLDOMDocumentFragment */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMDocumentFragment; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("3efaa413-272f-11d2-836f-0000f87a7782") IXMLDOMDocumentFragment : public IXMLDOMNode { public: }; #else /* C style interface */ typedef struct IXMLDOMDocumentFragmentVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMDocumentFragment * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMDocumentFragment * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMDocumentFragment * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMDocumentFragment * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMDocumentFragment * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMDocumentFragment * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMDocumentFragment * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMDocumentFragment * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMDocumentFragment * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMDocumentFragment * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMDocumentFragment * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMDocumentFragment * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMDocumentFragment * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMDocumentFragment * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMDocumentFragment * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMDocumentFragment * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMDocumentFragment * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMDocumentFragment * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMDocumentFragment * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMDocumentFragment * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMDocumentFragment * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMDocumentFragment * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMDocumentFragment * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMDocumentFragment * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMDocumentFragment * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMDocumentFragment * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMDocumentFragment * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMDocumentFragment * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMDocumentFragment * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMDocumentFragment * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMDocumentFragment * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMDocumentFragment * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMDocumentFragment * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMDocumentFragment * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMDocumentFragment * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMDocumentFragment * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); END_INTERFACE } IXMLDOMDocumentFragmentVtbl; interface IXMLDOMDocumentFragment { CONST_VTBL struct IXMLDOMDocumentFragmentVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMDocumentFragment_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMDocumentFragment_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMDocumentFragment_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMDocumentFragment_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMDocumentFragment_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMDocumentFragment_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMDocumentFragment_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMDocumentFragment_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMDocumentFragment_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMDocumentFragment_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMDocumentFragment_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMDocumentFragment_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMDocumentFragment_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMDocumentFragment_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMDocumentFragment_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMDocumentFragment_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMDocumentFragment_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMDocumentFragment_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMDocumentFragment_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMDocumentFragment_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMDocumentFragment_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMDocumentFragment_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMDocumentFragment_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMDocumentFragment_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMDocumentFragment_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMDocumentFragment_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMDocumentFragment_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMDocumentFragment_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMDocumentFragment_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMDocumentFragment_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMDocumentFragment_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMDocumentFragment_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMDocumentFragment_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMDocumentFragment_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMDocumentFragment_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMDocumentFragment_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMDocumentFragment_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMDocumentFragment_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMDocumentFragment_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMDocumentFragment_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMDocumentFragment_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMDocumentFragment_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMDocumentFragment_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMDocumentFragment_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMDocument_INTERFACE_DEFINED__ #define __IXMLDOMDocument_INTERFACE_DEFINED__ /* interface IXMLDOMDocument */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMDocument; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF81-7B36-11d2-B20E-00C04F983E60") IXMLDOMDocument : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_doctype( /* [retval][out] */ IXMLDOMDocumentType **documentType) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_implementation( /* [retval][out] */ IXMLDOMImplementation **impl) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_documentElement( /* [retval][out] */ IXMLDOMElement **DOMElement) = 0; virtual /* [helpstring][id][propputref] */ HRESULT STDMETHODCALLTYPE putref_documentElement( /* [in] */ IXMLDOMElement *DOMElement) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createElement( /* [in] */ BSTR tagName, /* [retval][out] */ IXMLDOMElement **element) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createDocumentFragment( /* [retval][out] */ IXMLDOMDocumentFragment **docFrag) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createTextNode( /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMText **text) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createComment( /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMComment **comment) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createCDATASection( /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMCDATASection **cdata) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createProcessingInstruction( /* [in] */ BSTR target, /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMProcessingInstruction **pi) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createAttribute( /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMAttribute **attribute) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createEntityReference( /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMEntityReference **entityRef) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getElementsByTagName( /* [in] */ BSTR tagName, /* [retval][out] */ IXMLDOMNodeList **resultList) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createNode( /* [in] */ VARIANT Type, /* [in] */ BSTR name, /* [in] */ BSTR namespaceURI, /* [out][retval] */ IXMLDOMNode **node) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE nodeFromID( /* [in] */ BSTR idString, /* [out][retval] */ IXMLDOMNode **node) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE load( /* [in] */ VARIANT xmlSource, /* [retval][out] */ VARIANT_BOOL *isSuccessful) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_readyState( /* [out][retval] */ long *value) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_parseError( /* [out][retval] */ IXMLDOMParseError **errorObj) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_url( /* [out][retval] */ BSTR *urlString) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_async( /* [out][retval] */ VARIANT_BOOL *isAsync) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_async( /* [in] */ VARIANT_BOOL isAsync) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE abort( void) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE loadXML( /* [in] */ BSTR bstrXML, /* [retval][out] */ VARIANT_BOOL *isSuccessful) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE save( /* [in] */ VARIANT destination) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_validateOnParse( /* [out][retval] */ VARIANT_BOOL *isValidating) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_validateOnParse( /* [in] */ VARIANT_BOOL isValidating) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_resolveExternals( /* [out][retval] */ VARIANT_BOOL *isResolving) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_resolveExternals( /* [in] */ VARIANT_BOOL isResolving) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_preserveWhiteSpace( /* [out][retval] */ VARIANT_BOOL *isPreserving) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_preserveWhiteSpace( /* [in] */ VARIANT_BOOL isPreserving) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_onreadystatechange( /* [in] */ VARIANT readystatechangeSink) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ondataavailable( /* [in] */ VARIANT ondataavailableSink) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_ontransformnode( /* [in] */ VARIANT ontransformnodeSink) = 0; }; #else /* C style interface */ typedef struct IXMLDOMDocumentVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMDocument * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMDocument * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMDocument * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMDocument * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMDocument * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMDocument * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMDocument * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMDocument * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMDocument * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMDocument * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMDocument * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMDocument * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMDocument * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMDocument * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMDocument * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMDocument * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMDocument * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMDocument * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMDocument * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMDocument * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMDocument * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMDocument * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMDocument * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMDocument * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMDocument * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMDocument * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMDocument * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMDocument * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMDocument * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMDocument * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMDocument * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMDocument * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMDocument * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMDocument * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMDocument * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_doctype )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMDocumentType **documentType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_implementation )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMImplementation **impl); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_documentElement )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMElement **DOMElement); /* [helpstring][id][propputref] */ HRESULT ( STDMETHODCALLTYPE *putref_documentElement )( IXMLDOMDocument * This, /* [in] */ IXMLDOMElement *DOMElement); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createElement )( IXMLDOMDocument * This, /* [in] */ BSTR tagName, /* [retval][out] */ IXMLDOMElement **element); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createDocumentFragment )( IXMLDOMDocument * This, /* [retval][out] */ IXMLDOMDocumentFragment **docFrag); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createTextNode )( IXMLDOMDocument * This, /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMText **text); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createComment )( IXMLDOMDocument * This, /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMComment **comment); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createCDATASection )( IXMLDOMDocument * This, /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMCDATASection **cdata); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createProcessingInstruction )( IXMLDOMDocument * This, /* [in] */ BSTR target, /* [in] */ BSTR data, /* [retval][out] */ IXMLDOMProcessingInstruction **pi); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createAttribute )( IXMLDOMDocument * This, /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMAttribute **attribute); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createEntityReference )( IXMLDOMDocument * This, /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMEntityReference **entityRef); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getElementsByTagName )( IXMLDOMDocument * This, /* [in] */ BSTR tagName, /* [retval][out] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createNode )( IXMLDOMDocument * This, /* [in] */ VARIANT Type, /* [in] */ BSTR name, /* [in] */ BSTR namespaceURI, /* [out][retval] */ IXMLDOMNode **node); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *nodeFromID )( IXMLDOMDocument * This, /* [in] */ BSTR idString, /* [out][retval] */ IXMLDOMNode **node); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *load )( IXMLDOMDocument * This, /* [in] */ VARIANT xmlSource, /* [retval][out] */ VARIANT_BOOL *isSuccessful); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_readyState )( IXMLDOMDocument * This, /* [out][retval] */ long *value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parseError )( IXMLDOMDocument * This, /* [out][retval] */ IXMLDOMParseError **errorObj); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_url )( IXMLDOMDocument * This, /* [out][retval] */ BSTR *urlString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_async )( IXMLDOMDocument * This, /* [out][retval] */ VARIANT_BOOL *isAsync); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_async )( IXMLDOMDocument * This, /* [in] */ VARIANT_BOOL isAsync); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *abort )( IXMLDOMDocument * This); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *loadXML )( IXMLDOMDocument * This, /* [in] */ BSTR bstrXML, /* [retval][out] */ VARIANT_BOOL *isSuccessful); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *save )( IXMLDOMDocument * This, /* [in] */ VARIANT destination); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_validateOnParse )( IXMLDOMDocument * This, /* [out][retval] */ VARIANT_BOOL *isValidating); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_validateOnParse )( IXMLDOMDocument * This, /* [in] */ VARIANT_BOOL isValidating); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_resolveExternals )( IXMLDOMDocument * This, /* [out][retval] */ VARIANT_BOOL *isResolving); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_resolveExternals )( IXMLDOMDocument * This, /* [in] */ VARIANT_BOOL isResolving); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_preserveWhiteSpace )( IXMLDOMDocument * This, /* [out][retval] */ VARIANT_BOOL *isPreserving); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_preserveWhiteSpace )( IXMLDOMDocument * This, /* [in] */ VARIANT_BOOL isPreserving); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_onreadystatechange )( IXMLDOMDocument * This, /* [in] */ VARIANT readystatechangeSink); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ondataavailable )( IXMLDOMDocument * This, /* [in] */ VARIANT ondataavailableSink); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_ontransformnode )( IXMLDOMDocument * This, /* [in] */ VARIANT ontransformnodeSink); END_INTERFACE } IXMLDOMDocumentVtbl; interface IXMLDOMDocument { CONST_VTBL struct IXMLDOMDocumentVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMDocument_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMDocument_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMDocument_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMDocument_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMDocument_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMDocument_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMDocument_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMDocument_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMDocument_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMDocument_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMDocument_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMDocument_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMDocument_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMDocument_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMDocument_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMDocument_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMDocument_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMDocument_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMDocument_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMDocument_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMDocument_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMDocument_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMDocument_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMDocument_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMDocument_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMDocument_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMDocument_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMDocument_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMDocument_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMDocument_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMDocument_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMDocument_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMDocument_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMDocument_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMDocument_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMDocument_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMDocument_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMDocument_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMDocument_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMDocument_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMDocument_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMDocument_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMDocument_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMDocument_get_doctype(This,documentType) \ ( (This)->lpVtbl -> get_doctype(This,documentType) ) #define IXMLDOMDocument_get_implementation(This,impl) \ ( (This)->lpVtbl -> get_implementation(This,impl) ) #define IXMLDOMDocument_get_documentElement(This,DOMElement) \ ( (This)->lpVtbl -> get_documentElement(This,DOMElement) ) #define IXMLDOMDocument_putref_documentElement(This,DOMElement) \ ( (This)->lpVtbl -> putref_documentElement(This,DOMElement) ) #define IXMLDOMDocument_createElement(This,tagName,element) \ ( (This)->lpVtbl -> createElement(This,tagName,element) ) #define IXMLDOMDocument_createDocumentFragment(This,docFrag) \ ( (This)->lpVtbl -> createDocumentFragment(This,docFrag) ) #define IXMLDOMDocument_createTextNode(This,data,text) \ ( (This)->lpVtbl -> createTextNode(This,data,text) ) #define IXMLDOMDocument_createComment(This,data,comment) \ ( (This)->lpVtbl -> createComment(This,data,comment) ) #define IXMLDOMDocument_createCDATASection(This,data,cdata) \ ( (This)->lpVtbl -> createCDATASection(This,data,cdata) ) #define IXMLDOMDocument_createProcessingInstruction(This,target,data,pi) \ ( (This)->lpVtbl -> createProcessingInstruction(This,target,data,pi) ) #define IXMLDOMDocument_createAttribute(This,name,attribute) \ ( (This)->lpVtbl -> createAttribute(This,name,attribute) ) #define IXMLDOMDocument_createEntityReference(This,name,entityRef) \ ( (This)->lpVtbl -> createEntityReference(This,name,entityRef) ) #define IXMLDOMDocument_getElementsByTagName(This,tagName,resultList) \ ( (This)->lpVtbl -> getElementsByTagName(This,tagName,resultList) ) #define IXMLDOMDocument_createNode(This,Type,name,namespaceURI,node) \ ( (This)->lpVtbl -> createNode(This,Type,name,namespaceURI,node) ) #define IXMLDOMDocument_nodeFromID(This,idString,node) \ ( (This)->lpVtbl -> nodeFromID(This,idString,node) ) #define IXMLDOMDocument_load(This,xmlSource,isSuccessful) \ ( (This)->lpVtbl -> load(This,xmlSource,isSuccessful) ) #define IXMLDOMDocument_get_readyState(This,value) \ ( (This)->lpVtbl -> get_readyState(This,value) ) #define IXMLDOMDocument_get_parseError(This,errorObj) \ ( (This)->lpVtbl -> get_parseError(This,errorObj) ) #define IXMLDOMDocument_get_url(This,urlString) \ ( (This)->lpVtbl -> get_url(This,urlString) ) #define IXMLDOMDocument_get_async(This,isAsync) \ ( (This)->lpVtbl -> get_async(This,isAsync) ) #define IXMLDOMDocument_put_async(This,isAsync) \ ( (This)->lpVtbl -> put_async(This,isAsync) ) #define IXMLDOMDocument_abort(This) \ ( (This)->lpVtbl -> abort(This) ) #define IXMLDOMDocument_loadXML(This,bstrXML,isSuccessful) \ ( (This)->lpVtbl -> loadXML(This,bstrXML,isSuccessful) ) #define IXMLDOMDocument_save(This,destination) \ ( (This)->lpVtbl -> save(This,destination) ) #define IXMLDOMDocument_get_validateOnParse(This,isValidating) \ ( (This)->lpVtbl -> get_validateOnParse(This,isValidating) ) #define IXMLDOMDocument_put_validateOnParse(This,isValidating) \ ( (This)->lpVtbl -> put_validateOnParse(This,isValidating) ) #define IXMLDOMDocument_get_resolveExternals(This,isResolving) \ ( (This)->lpVtbl -> get_resolveExternals(This,isResolving) ) #define IXMLDOMDocument_put_resolveExternals(This,isResolving) \ ( (This)->lpVtbl -> put_resolveExternals(This,isResolving) ) #define IXMLDOMDocument_get_preserveWhiteSpace(This,isPreserving) \ ( (This)->lpVtbl -> get_preserveWhiteSpace(This,isPreserving) ) #define IXMLDOMDocument_put_preserveWhiteSpace(This,isPreserving) \ ( (This)->lpVtbl -> put_preserveWhiteSpace(This,isPreserving) ) #define IXMLDOMDocument_put_onreadystatechange(This,readystatechangeSink) \ ( (This)->lpVtbl -> put_onreadystatechange(This,readystatechangeSink) ) #define IXMLDOMDocument_put_ondataavailable(This,ondataavailableSink) \ ( (This)->lpVtbl -> put_ondataavailable(This,ondataavailableSink) ) #define IXMLDOMDocument_put_ontransformnode(This,ontransformnodeSink) \ ( (This)->lpVtbl -> put_ontransformnode(This,ontransformnodeSink) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMDocument_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMNodeList_INTERFACE_DEFINED__ #define __IXMLDOMNodeList_INTERFACE_DEFINED__ /* interface IXMLDOMNodeList */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMNodeList; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF82-7B36-11d2-B20E-00C04F983E60") IXMLDOMNodeList : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_item( /* [in] */ long index, /* [retval][out] */ IXMLDOMNode **listItem) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_length( /* [retval][out] */ long *listLength) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE nextNode( /* [retval][out] */ IXMLDOMNode **nextItem) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE reset( void) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__newEnum( /* [out][retval] */ IUnknown **ppUnk) = 0; }; #else /* C style interface */ typedef struct IXMLDOMNodeListVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMNodeList * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMNodeList * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMNodeList * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMNodeList * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMNodeList * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMNodeList * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMNodeList * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_item )( IXMLDOMNodeList * This, /* [in] */ long index, /* [retval][out] */ IXMLDOMNode **listItem); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_length )( IXMLDOMNodeList * This, /* [retval][out] */ long *listLength); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *nextNode )( IXMLDOMNodeList * This, /* [retval][out] */ IXMLDOMNode **nextItem); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *reset )( IXMLDOMNodeList * This); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__newEnum )( IXMLDOMNodeList * This, /* [out][retval] */ IUnknown **ppUnk); END_INTERFACE } IXMLDOMNodeListVtbl; interface IXMLDOMNodeList { CONST_VTBL struct IXMLDOMNodeListVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMNodeList_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMNodeList_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMNodeList_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMNodeList_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMNodeList_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMNodeList_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMNodeList_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMNodeList_get_item(This,index,listItem) \ ( (This)->lpVtbl -> get_item(This,index,listItem) ) #define IXMLDOMNodeList_get_length(This,listLength) \ ( (This)->lpVtbl -> get_length(This,listLength) ) #define IXMLDOMNodeList_nextNode(This,nextItem) \ ( (This)->lpVtbl -> nextNode(This,nextItem) ) #define IXMLDOMNodeList_reset(This) \ ( (This)->lpVtbl -> reset(This) ) #define IXMLDOMNodeList_get__newEnum(This,ppUnk) \ ( (This)->lpVtbl -> get__newEnum(This,ppUnk) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMNodeList_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMNamedNodeMap_INTERFACE_DEFINED__ #define __IXMLDOMNamedNodeMap_INTERFACE_DEFINED__ /* interface IXMLDOMNamedNodeMap */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMNamedNodeMap; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF83-7B36-11d2-B20E-00C04F983E60") IXMLDOMNamedNodeMap : public IDispatch { public: virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getNamedItem( /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMNode **namedItem) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setNamedItem( /* [in] */ IXMLDOMNode *newItem, /* [retval][out] */ IXMLDOMNode **nameItem) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeNamedItem( /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMNode **namedItem) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_item( /* [in] */ long index, /* [retval][out] */ IXMLDOMNode **listItem) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_length( /* [retval][out] */ long *listLength) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getQualifiedItem( /* [in] */ BSTR baseName, /* [in] */ BSTR namespaceURI, /* [retval][out] */ IXMLDOMNode **qualifiedItem) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeQualifiedItem( /* [in] */ BSTR baseName, /* [in] */ BSTR namespaceURI, /* [retval][out] */ IXMLDOMNode **qualifiedItem) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE nextNode( /* [retval][out] */ IXMLDOMNode **nextItem) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE reset( void) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__newEnum( /* [out][retval] */ IUnknown **ppUnk) = 0; }; #else /* C style interface */ typedef struct IXMLDOMNamedNodeMapVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMNamedNodeMap * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMNamedNodeMap * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMNamedNodeMap * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMNamedNodeMap * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMNamedNodeMap * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMNamedNodeMap * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMNamedNodeMap * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getNamedItem )( IXMLDOMNamedNodeMap * This, /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMNode **namedItem); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *setNamedItem )( IXMLDOMNamedNodeMap * This, /* [in] */ IXMLDOMNode *newItem, /* [retval][out] */ IXMLDOMNode **nameItem); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeNamedItem )( IXMLDOMNamedNodeMap * This, /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMNode **namedItem); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_item )( IXMLDOMNamedNodeMap * This, /* [in] */ long index, /* [retval][out] */ IXMLDOMNode **listItem); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_length )( IXMLDOMNamedNodeMap * This, /* [retval][out] */ long *listLength); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getQualifiedItem )( IXMLDOMNamedNodeMap * This, /* [in] */ BSTR baseName, /* [in] */ BSTR namespaceURI, /* [retval][out] */ IXMLDOMNode **qualifiedItem); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeQualifiedItem )( IXMLDOMNamedNodeMap * This, /* [in] */ BSTR baseName, /* [in] */ BSTR namespaceURI, /* [retval][out] */ IXMLDOMNode **qualifiedItem); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *nextNode )( IXMLDOMNamedNodeMap * This, /* [retval][out] */ IXMLDOMNode **nextItem); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *reset )( IXMLDOMNamedNodeMap * This); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__newEnum )( IXMLDOMNamedNodeMap * This, /* [out][retval] */ IUnknown **ppUnk); END_INTERFACE } IXMLDOMNamedNodeMapVtbl; interface IXMLDOMNamedNodeMap { CONST_VTBL struct IXMLDOMNamedNodeMapVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMNamedNodeMap_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMNamedNodeMap_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMNamedNodeMap_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMNamedNodeMap_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMNamedNodeMap_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMNamedNodeMap_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMNamedNodeMap_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMNamedNodeMap_getNamedItem(This,name,namedItem) \ ( (This)->lpVtbl -> getNamedItem(This,name,namedItem) ) #define IXMLDOMNamedNodeMap_setNamedItem(This,newItem,nameItem) \ ( (This)->lpVtbl -> setNamedItem(This,newItem,nameItem) ) #define IXMLDOMNamedNodeMap_removeNamedItem(This,name,namedItem) \ ( (This)->lpVtbl -> removeNamedItem(This,name,namedItem) ) #define IXMLDOMNamedNodeMap_get_item(This,index,listItem) \ ( (This)->lpVtbl -> get_item(This,index,listItem) ) #define IXMLDOMNamedNodeMap_get_length(This,listLength) \ ( (This)->lpVtbl -> get_length(This,listLength) ) #define IXMLDOMNamedNodeMap_getQualifiedItem(This,baseName,namespaceURI,qualifiedItem) \ ( (This)->lpVtbl -> getQualifiedItem(This,baseName,namespaceURI,qualifiedItem) ) #define IXMLDOMNamedNodeMap_removeQualifiedItem(This,baseName,namespaceURI,qualifiedItem) \ ( (This)->lpVtbl -> removeQualifiedItem(This,baseName,namespaceURI,qualifiedItem) ) #define IXMLDOMNamedNodeMap_nextNode(This,nextItem) \ ( (This)->lpVtbl -> nextNode(This,nextItem) ) #define IXMLDOMNamedNodeMap_reset(This) \ ( (This)->lpVtbl -> reset(This) ) #define IXMLDOMNamedNodeMap_get__newEnum(This,ppUnk) \ ( (This)->lpVtbl -> get__newEnum(This,ppUnk) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMNamedNodeMap_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMCharacterData_INTERFACE_DEFINED__ #define __IXMLDOMCharacterData_INTERFACE_DEFINED__ /* interface IXMLDOMCharacterData */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMCharacterData; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF84-7B36-11d2-B20E-00C04F983E60") IXMLDOMCharacterData : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_data( /* [retval][out] */ BSTR *data) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_data( /* [in] */ BSTR data) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_length( /* [retval][out] */ long *dataLength) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE substringData( /* [in] */ long offset, /* [in] */ long count, /* [retval][out] */ BSTR *data) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE appendData( /* [in] */ BSTR data) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE insertData( /* [in] */ long offset, /* [in] */ BSTR data) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE deleteData( /* [in] */ long offset, /* [in] */ long count) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE replaceData( /* [in] */ long offset, /* [in] */ long count, /* [in] */ BSTR data) = 0; }; #else /* C style interface */ typedef struct IXMLDOMCharacterDataVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMCharacterData * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMCharacterData * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMCharacterData * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMCharacterData * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMCharacterData * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMCharacterData * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMCharacterData * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMCharacterData * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMCharacterData * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMCharacterData * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMCharacterData * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMCharacterData * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMCharacterData * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMCharacterData * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMCharacterData * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMCharacterData * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMCharacterData * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMCharacterData * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMCharacterData * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMCharacterData * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMCharacterData * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMCharacterData * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMCharacterData * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMCharacterData * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMCharacterData * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMCharacterData * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMCharacterData * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMCharacterData * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMCharacterData * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMCharacterData * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMCharacterData * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMCharacterData * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMCharacterData * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMCharacterData * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMCharacterData * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMCharacterData * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_data )( IXMLDOMCharacterData * This, /* [retval][out] */ BSTR *data); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_data )( IXMLDOMCharacterData * This, /* [in] */ BSTR data); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_length )( IXMLDOMCharacterData * This, /* [retval][out] */ long *dataLength); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *substringData )( IXMLDOMCharacterData * This, /* [in] */ long offset, /* [in] */ long count, /* [retval][out] */ BSTR *data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendData )( IXMLDOMCharacterData * This, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertData )( IXMLDOMCharacterData * This, /* [in] */ long offset, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *deleteData )( IXMLDOMCharacterData * This, /* [in] */ long offset, /* [in] */ long count); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceData )( IXMLDOMCharacterData * This, /* [in] */ long offset, /* [in] */ long count, /* [in] */ BSTR data); END_INTERFACE } IXMLDOMCharacterDataVtbl; interface IXMLDOMCharacterData { CONST_VTBL struct IXMLDOMCharacterDataVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMCharacterData_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMCharacterData_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMCharacterData_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMCharacterData_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMCharacterData_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMCharacterData_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMCharacterData_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMCharacterData_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMCharacterData_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMCharacterData_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMCharacterData_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMCharacterData_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMCharacterData_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMCharacterData_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMCharacterData_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMCharacterData_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMCharacterData_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMCharacterData_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMCharacterData_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMCharacterData_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMCharacterData_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMCharacterData_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMCharacterData_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMCharacterData_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMCharacterData_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMCharacterData_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMCharacterData_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMCharacterData_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMCharacterData_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMCharacterData_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMCharacterData_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMCharacterData_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMCharacterData_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMCharacterData_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMCharacterData_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMCharacterData_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMCharacterData_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMCharacterData_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMCharacterData_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMCharacterData_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMCharacterData_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMCharacterData_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMCharacterData_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMCharacterData_get_data(This,data) \ ( (This)->lpVtbl -> get_data(This,data) ) #define IXMLDOMCharacterData_put_data(This,data) \ ( (This)->lpVtbl -> put_data(This,data) ) #define IXMLDOMCharacterData_get_length(This,dataLength) \ ( (This)->lpVtbl -> get_length(This,dataLength) ) #define IXMLDOMCharacterData_substringData(This,offset,count,data) \ ( (This)->lpVtbl -> substringData(This,offset,count,data) ) #define IXMLDOMCharacterData_appendData(This,data) \ ( (This)->lpVtbl -> appendData(This,data) ) #define IXMLDOMCharacterData_insertData(This,offset,data) \ ( (This)->lpVtbl -> insertData(This,offset,data) ) #define IXMLDOMCharacterData_deleteData(This,offset,count) \ ( (This)->lpVtbl -> deleteData(This,offset,count) ) #define IXMLDOMCharacterData_replaceData(This,offset,count,data) \ ( (This)->lpVtbl -> replaceData(This,offset,count,data) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMCharacterData_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMAttribute_INTERFACE_DEFINED__ #define __IXMLDOMAttribute_INTERFACE_DEFINED__ /* interface IXMLDOMAttribute */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMAttribute; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF85-7B36-11d2-B20E-00C04F983E60") IXMLDOMAttribute : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_name( /* [retval][out] */ BSTR *attributeName) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_value( /* [retval][out] */ VARIANT *attributeValue) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_value( /* [in] */ VARIANT attributeValue) = 0; }; #else /* C style interface */ typedef struct IXMLDOMAttributeVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMAttribute * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMAttribute * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMAttribute * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMAttribute * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMAttribute * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMAttribute * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMAttribute * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMAttribute * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMAttribute * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMAttribute * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMAttribute * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMAttribute * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMAttribute * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMAttribute * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMAttribute * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMAttribute * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMAttribute * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMAttribute * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMAttribute * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMAttribute * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMAttribute * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMAttribute * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMAttribute * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMAttribute * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMAttribute * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMAttribute * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMAttribute * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMAttribute * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMAttribute * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMAttribute * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMAttribute * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMAttribute * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMAttribute * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMAttribute * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMAttribute * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMAttribute * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_name )( IXMLDOMAttribute * This, /* [retval][out] */ BSTR *attributeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_value )( IXMLDOMAttribute * This, /* [retval][out] */ VARIANT *attributeValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_value )( IXMLDOMAttribute * This, /* [in] */ VARIANT attributeValue); END_INTERFACE } IXMLDOMAttributeVtbl; interface IXMLDOMAttribute { CONST_VTBL struct IXMLDOMAttributeVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMAttribute_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMAttribute_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMAttribute_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMAttribute_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMAttribute_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMAttribute_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMAttribute_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMAttribute_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMAttribute_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMAttribute_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMAttribute_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMAttribute_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMAttribute_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMAttribute_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMAttribute_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMAttribute_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMAttribute_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMAttribute_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMAttribute_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMAttribute_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMAttribute_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMAttribute_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMAttribute_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMAttribute_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMAttribute_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMAttribute_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMAttribute_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMAttribute_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMAttribute_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMAttribute_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMAttribute_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMAttribute_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMAttribute_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMAttribute_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMAttribute_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMAttribute_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMAttribute_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMAttribute_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMAttribute_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMAttribute_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMAttribute_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMAttribute_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMAttribute_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMAttribute_get_name(This,attributeName) \ ( (This)->lpVtbl -> get_name(This,attributeName) ) #define IXMLDOMAttribute_get_value(This,attributeValue) \ ( (This)->lpVtbl -> get_value(This,attributeValue) ) #define IXMLDOMAttribute_put_value(This,attributeValue) \ ( (This)->lpVtbl -> put_value(This,attributeValue) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMAttribute_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMElement_INTERFACE_DEFINED__ #define __IXMLDOMElement_INTERFACE_DEFINED__ /* interface IXMLDOMElement */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMElement; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF86-7B36-11d2-B20E-00C04F983E60") IXMLDOMElement : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_tagName( /* [retval][out] */ BSTR *tagName) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getAttribute( /* [in] */ BSTR name, /* [retval][out] */ VARIANT *value) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setAttribute( /* [in] */ BSTR name, /* [in] */ VARIANT value) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeAttribute( /* [in] */ BSTR name) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getAttributeNode( /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMAttribute **attributeNode) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setAttributeNode( /* [in] */ IXMLDOMAttribute *DOMAttribute, /* [retval][out] */ IXMLDOMAttribute **attributeNode) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeAttributeNode( /* [in] */ IXMLDOMAttribute *DOMAttribute, /* [retval][out] */ IXMLDOMAttribute **attributeNode) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getElementsByTagName( /* [in] */ BSTR tagName, /* [retval][out] */ IXMLDOMNodeList **resultList) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE normalize( void) = 0; }; #else /* C style interface */ typedef struct IXMLDOMElementVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMElement * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMElement * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMElement * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMElement * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMElement * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMElement * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMElement * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMElement * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMElement * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMElement * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMElement * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMElement * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMElement * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMElement * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMElement * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMElement * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMElement * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMElement * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMElement * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMElement * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMElement * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMElement * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMElement * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMElement * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMElement * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMElement * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMElement * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMElement * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMElement * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMElement * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMElement * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMElement * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMElement * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMElement * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMElement * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMElement * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_tagName )( IXMLDOMElement * This, /* [retval][out] */ BSTR *tagName); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getAttribute )( IXMLDOMElement * This, /* [in] */ BSTR name, /* [retval][out] */ VARIANT *value); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *setAttribute )( IXMLDOMElement * This, /* [in] */ BSTR name, /* [in] */ VARIANT value); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeAttribute )( IXMLDOMElement * This, /* [in] */ BSTR name); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getAttributeNode )( IXMLDOMElement * This, /* [in] */ BSTR name, /* [retval][out] */ IXMLDOMAttribute **attributeNode); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *setAttributeNode )( IXMLDOMElement * This, /* [in] */ IXMLDOMAttribute *DOMAttribute, /* [retval][out] */ IXMLDOMAttribute **attributeNode); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeAttributeNode )( IXMLDOMElement * This, /* [in] */ IXMLDOMAttribute *DOMAttribute, /* [retval][out] */ IXMLDOMAttribute **attributeNode); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getElementsByTagName )( IXMLDOMElement * This, /* [in] */ BSTR tagName, /* [retval][out] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *normalize )( IXMLDOMElement * This); END_INTERFACE } IXMLDOMElementVtbl; interface IXMLDOMElement { CONST_VTBL struct IXMLDOMElementVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMElement_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMElement_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMElement_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMElement_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMElement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMElement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMElement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMElement_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMElement_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMElement_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMElement_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMElement_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMElement_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMElement_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMElement_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMElement_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMElement_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMElement_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMElement_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMElement_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMElement_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMElement_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMElement_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMElement_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMElement_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMElement_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMElement_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMElement_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMElement_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMElement_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMElement_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMElement_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMElement_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMElement_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMElement_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMElement_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMElement_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMElement_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMElement_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMElement_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMElement_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMElement_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMElement_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMElement_get_tagName(This,tagName) \ ( (This)->lpVtbl -> get_tagName(This,tagName) ) #define IXMLDOMElement_getAttribute(This,name,value) \ ( (This)->lpVtbl -> getAttribute(This,name,value) ) #define IXMLDOMElement_setAttribute(This,name,value) \ ( (This)->lpVtbl -> setAttribute(This,name,value) ) #define IXMLDOMElement_removeAttribute(This,name) \ ( (This)->lpVtbl -> removeAttribute(This,name) ) #define IXMLDOMElement_getAttributeNode(This,name,attributeNode) \ ( (This)->lpVtbl -> getAttributeNode(This,name,attributeNode) ) #define IXMLDOMElement_setAttributeNode(This,DOMAttribute,attributeNode) \ ( (This)->lpVtbl -> setAttributeNode(This,DOMAttribute,attributeNode) ) #define IXMLDOMElement_removeAttributeNode(This,DOMAttribute,attributeNode) \ ( (This)->lpVtbl -> removeAttributeNode(This,DOMAttribute,attributeNode) ) #define IXMLDOMElement_getElementsByTagName(This,tagName,resultList) \ ( (This)->lpVtbl -> getElementsByTagName(This,tagName,resultList) ) #define IXMLDOMElement_normalize(This) \ ( (This)->lpVtbl -> normalize(This) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMElement_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMText_INTERFACE_DEFINED__ #define __IXMLDOMText_INTERFACE_DEFINED__ /* interface IXMLDOMText */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMText; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF87-7B36-11d2-B20E-00C04F983E60") IXMLDOMText : public IXMLDOMCharacterData { public: virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE splitText( /* [in] */ long offset, /* [retval][out] */ IXMLDOMText **rightHandTextNode) = 0; }; #else /* C style interface */ typedef struct IXMLDOMTextVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMText * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMText * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMText * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMText * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMText * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMText * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMText * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMText * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMText * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMText * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMText * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMText * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMText * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMText * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMText * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMText * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMText * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMText * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMText * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMText * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMText * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMText * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMText * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMText * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMText * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMText * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMText * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMText * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMText * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMText * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMText * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMText * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMText * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMText * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMText * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMText * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_data )( IXMLDOMText * This, /* [retval][out] */ BSTR *data); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_data )( IXMLDOMText * This, /* [in] */ BSTR data); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_length )( IXMLDOMText * This, /* [retval][out] */ long *dataLength); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *substringData )( IXMLDOMText * This, /* [in] */ long offset, /* [in] */ long count, /* [retval][out] */ BSTR *data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendData )( IXMLDOMText * This, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertData )( IXMLDOMText * This, /* [in] */ long offset, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *deleteData )( IXMLDOMText * This, /* [in] */ long offset, /* [in] */ long count); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceData )( IXMLDOMText * This, /* [in] */ long offset, /* [in] */ long count, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *splitText )( IXMLDOMText * This, /* [in] */ long offset, /* [retval][out] */ IXMLDOMText **rightHandTextNode); END_INTERFACE } IXMLDOMTextVtbl; interface IXMLDOMText { CONST_VTBL struct IXMLDOMTextVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMText_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMText_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMText_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMText_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMText_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMText_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMText_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMText_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMText_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMText_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMText_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMText_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMText_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMText_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMText_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMText_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMText_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMText_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMText_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMText_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMText_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMText_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMText_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMText_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMText_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMText_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMText_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMText_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMText_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMText_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMText_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMText_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMText_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMText_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMText_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMText_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMText_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMText_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMText_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMText_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMText_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMText_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMText_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMText_get_data(This,data) \ ( (This)->lpVtbl -> get_data(This,data) ) #define IXMLDOMText_put_data(This,data) \ ( (This)->lpVtbl -> put_data(This,data) ) #define IXMLDOMText_get_length(This,dataLength) \ ( (This)->lpVtbl -> get_length(This,dataLength) ) #define IXMLDOMText_substringData(This,offset,count,data) \ ( (This)->lpVtbl -> substringData(This,offset,count,data) ) #define IXMLDOMText_appendData(This,data) \ ( (This)->lpVtbl -> appendData(This,data) ) #define IXMLDOMText_insertData(This,offset,data) \ ( (This)->lpVtbl -> insertData(This,offset,data) ) #define IXMLDOMText_deleteData(This,offset,count) \ ( (This)->lpVtbl -> deleteData(This,offset,count) ) #define IXMLDOMText_replaceData(This,offset,count,data) \ ( (This)->lpVtbl -> replaceData(This,offset,count,data) ) #define IXMLDOMText_splitText(This,offset,rightHandTextNode) \ ( (This)->lpVtbl -> splitText(This,offset,rightHandTextNode) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMText_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMComment_INTERFACE_DEFINED__ #define __IXMLDOMComment_INTERFACE_DEFINED__ /* interface IXMLDOMComment */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMComment; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF88-7B36-11d2-B20E-00C04F983E60") IXMLDOMComment : public IXMLDOMCharacterData { public: }; #else /* C style interface */ typedef struct IXMLDOMCommentVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMComment * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMComment * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMComment * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMComment * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMComment * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMComment * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMComment * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMComment * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMComment * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMComment * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMComment * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMComment * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMComment * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMComment * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMComment * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMComment * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMComment * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMComment * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMComment * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMComment * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMComment * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMComment * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMComment * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMComment * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMComment * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMComment * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMComment * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMComment * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMComment * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMComment * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMComment * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMComment * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMComment * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMComment * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMComment * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMComment * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_data )( IXMLDOMComment * This, /* [retval][out] */ BSTR *data); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_data )( IXMLDOMComment * This, /* [in] */ BSTR data); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_length )( IXMLDOMComment * This, /* [retval][out] */ long *dataLength); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *substringData )( IXMLDOMComment * This, /* [in] */ long offset, /* [in] */ long count, /* [retval][out] */ BSTR *data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendData )( IXMLDOMComment * This, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertData )( IXMLDOMComment * This, /* [in] */ long offset, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *deleteData )( IXMLDOMComment * This, /* [in] */ long offset, /* [in] */ long count); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceData )( IXMLDOMComment * This, /* [in] */ long offset, /* [in] */ long count, /* [in] */ BSTR data); END_INTERFACE } IXMLDOMCommentVtbl; interface IXMLDOMComment { CONST_VTBL struct IXMLDOMCommentVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMComment_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMComment_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMComment_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMComment_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMComment_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMComment_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMComment_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMComment_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMComment_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMComment_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMComment_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMComment_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMComment_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMComment_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMComment_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMComment_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMComment_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMComment_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMComment_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMComment_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMComment_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMComment_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMComment_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMComment_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMComment_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMComment_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMComment_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMComment_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMComment_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMComment_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMComment_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMComment_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMComment_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMComment_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMComment_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMComment_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMComment_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMComment_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMComment_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMComment_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMComment_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMComment_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMComment_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMComment_get_data(This,data) \ ( (This)->lpVtbl -> get_data(This,data) ) #define IXMLDOMComment_put_data(This,data) \ ( (This)->lpVtbl -> put_data(This,data) ) #define IXMLDOMComment_get_length(This,dataLength) \ ( (This)->lpVtbl -> get_length(This,dataLength) ) #define IXMLDOMComment_substringData(This,offset,count,data) \ ( (This)->lpVtbl -> substringData(This,offset,count,data) ) #define IXMLDOMComment_appendData(This,data) \ ( (This)->lpVtbl -> appendData(This,data) ) #define IXMLDOMComment_insertData(This,offset,data) \ ( (This)->lpVtbl -> insertData(This,offset,data) ) #define IXMLDOMComment_deleteData(This,offset,count) \ ( (This)->lpVtbl -> deleteData(This,offset,count) ) #define IXMLDOMComment_replaceData(This,offset,count,data) \ ( (This)->lpVtbl -> replaceData(This,offset,count,data) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMComment_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMProcessingInstruction_INTERFACE_DEFINED__ #define __IXMLDOMProcessingInstruction_INTERFACE_DEFINED__ /* interface IXMLDOMProcessingInstruction */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMProcessingInstruction; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF89-7B36-11d2-B20E-00C04F983E60") IXMLDOMProcessingInstruction : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_target( /* [retval][out] */ BSTR *name) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_data( /* [retval][out] */ BSTR *value) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_data( /* [in] */ BSTR value) = 0; }; #else /* C style interface */ typedef struct IXMLDOMProcessingInstructionVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMProcessingInstruction * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMProcessingInstruction * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMProcessingInstruction * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMProcessingInstruction * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMProcessingInstruction * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMProcessingInstruction * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMProcessingInstruction * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMProcessingInstruction * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMProcessingInstruction * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMProcessingInstruction * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMProcessingInstruction * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMProcessingInstruction * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMProcessingInstruction * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMProcessingInstruction * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMProcessingInstruction * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMProcessingInstruction * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMProcessingInstruction * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMProcessingInstruction * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMProcessingInstruction * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMProcessingInstruction * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMProcessingInstruction * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_target )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_data )( IXMLDOMProcessingInstruction * This, /* [retval][out] */ BSTR *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_data )( IXMLDOMProcessingInstruction * This, /* [in] */ BSTR value); END_INTERFACE } IXMLDOMProcessingInstructionVtbl; interface IXMLDOMProcessingInstruction { CONST_VTBL struct IXMLDOMProcessingInstructionVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMProcessingInstruction_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMProcessingInstruction_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMProcessingInstruction_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMProcessingInstruction_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMProcessingInstruction_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMProcessingInstruction_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMProcessingInstruction_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMProcessingInstruction_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMProcessingInstruction_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMProcessingInstruction_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMProcessingInstruction_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMProcessingInstruction_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMProcessingInstruction_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMProcessingInstruction_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMProcessingInstruction_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMProcessingInstruction_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMProcessingInstruction_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMProcessingInstruction_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMProcessingInstruction_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMProcessingInstruction_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMProcessingInstruction_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMProcessingInstruction_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMProcessingInstruction_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMProcessingInstruction_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMProcessingInstruction_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMProcessingInstruction_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMProcessingInstruction_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMProcessingInstruction_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMProcessingInstruction_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMProcessingInstruction_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMProcessingInstruction_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMProcessingInstruction_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMProcessingInstruction_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMProcessingInstruction_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMProcessingInstruction_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMProcessingInstruction_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMProcessingInstruction_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMProcessingInstruction_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMProcessingInstruction_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMProcessingInstruction_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMProcessingInstruction_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMProcessingInstruction_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMProcessingInstruction_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMProcessingInstruction_get_target(This,name) \ ( (This)->lpVtbl -> get_target(This,name) ) #define IXMLDOMProcessingInstruction_get_data(This,value) \ ( (This)->lpVtbl -> get_data(This,value) ) #define IXMLDOMProcessingInstruction_put_data(This,value) \ ( (This)->lpVtbl -> put_data(This,value) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMProcessingInstruction_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMCDATASection_INTERFACE_DEFINED__ #define __IXMLDOMCDATASection_INTERFACE_DEFINED__ /* interface IXMLDOMCDATASection */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMCDATASection; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF8A-7B36-11d2-B20E-00C04F983E60") IXMLDOMCDATASection : public IXMLDOMText { public: }; #else /* C style interface */ typedef struct IXMLDOMCDATASectionVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMCDATASection * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMCDATASection * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMCDATASection * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMCDATASection * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMCDATASection * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMCDATASection * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMCDATASection * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMCDATASection * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMCDATASection * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMCDATASection * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMCDATASection * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMCDATASection * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMCDATASection * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMCDATASection * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMCDATASection * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMCDATASection * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMCDATASection * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMCDATASection * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMCDATASection * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMCDATASection * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMCDATASection * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMCDATASection * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMCDATASection * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMCDATASection * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMCDATASection * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMCDATASection * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMCDATASection * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMCDATASection * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMCDATASection * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMCDATASection * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMCDATASection * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMCDATASection * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMCDATASection * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMCDATASection * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMCDATASection * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMCDATASection * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_data )( IXMLDOMCDATASection * This, /* [retval][out] */ BSTR *data); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_data )( IXMLDOMCDATASection * This, /* [in] */ BSTR data); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_length )( IXMLDOMCDATASection * This, /* [retval][out] */ long *dataLength); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *substringData )( IXMLDOMCDATASection * This, /* [in] */ long offset, /* [in] */ long count, /* [retval][out] */ BSTR *data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendData )( IXMLDOMCDATASection * This, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertData )( IXMLDOMCDATASection * This, /* [in] */ long offset, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *deleteData )( IXMLDOMCDATASection * This, /* [in] */ long offset, /* [in] */ long count); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceData )( IXMLDOMCDATASection * This, /* [in] */ long offset, /* [in] */ long count, /* [in] */ BSTR data); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *splitText )( IXMLDOMCDATASection * This, /* [in] */ long offset, /* [retval][out] */ IXMLDOMText **rightHandTextNode); END_INTERFACE } IXMLDOMCDATASectionVtbl; interface IXMLDOMCDATASection { CONST_VTBL struct IXMLDOMCDATASectionVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMCDATASection_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMCDATASection_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMCDATASection_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMCDATASection_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMCDATASection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMCDATASection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMCDATASection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMCDATASection_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMCDATASection_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMCDATASection_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMCDATASection_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMCDATASection_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMCDATASection_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMCDATASection_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMCDATASection_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMCDATASection_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMCDATASection_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMCDATASection_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMCDATASection_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMCDATASection_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMCDATASection_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMCDATASection_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMCDATASection_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMCDATASection_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMCDATASection_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMCDATASection_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMCDATASection_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMCDATASection_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMCDATASection_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMCDATASection_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMCDATASection_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMCDATASection_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMCDATASection_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMCDATASection_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMCDATASection_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMCDATASection_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMCDATASection_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMCDATASection_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMCDATASection_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMCDATASection_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMCDATASection_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMCDATASection_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMCDATASection_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMCDATASection_get_data(This,data) \ ( (This)->lpVtbl -> get_data(This,data) ) #define IXMLDOMCDATASection_put_data(This,data) \ ( (This)->lpVtbl -> put_data(This,data) ) #define IXMLDOMCDATASection_get_length(This,dataLength) \ ( (This)->lpVtbl -> get_length(This,dataLength) ) #define IXMLDOMCDATASection_substringData(This,offset,count,data) \ ( (This)->lpVtbl -> substringData(This,offset,count,data) ) #define IXMLDOMCDATASection_appendData(This,data) \ ( (This)->lpVtbl -> appendData(This,data) ) #define IXMLDOMCDATASection_insertData(This,offset,data) \ ( (This)->lpVtbl -> insertData(This,offset,data) ) #define IXMLDOMCDATASection_deleteData(This,offset,count) \ ( (This)->lpVtbl -> deleteData(This,offset,count) ) #define IXMLDOMCDATASection_replaceData(This,offset,count,data) \ ( (This)->lpVtbl -> replaceData(This,offset,count,data) ) #define IXMLDOMCDATASection_splitText(This,offset,rightHandTextNode) \ ( (This)->lpVtbl -> splitText(This,offset,rightHandTextNode) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMCDATASection_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMDocumentType_INTERFACE_DEFINED__ #define __IXMLDOMDocumentType_INTERFACE_DEFINED__ /* interface IXMLDOMDocumentType */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMDocumentType; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF8B-7B36-11d2-B20E-00C04F983E60") IXMLDOMDocumentType : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_name( /* [retval][out] */ BSTR *rootName) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_entities( /* [retval][out] */ IXMLDOMNamedNodeMap **entityMap) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_notations( /* [retval][out] */ IXMLDOMNamedNodeMap **notationMap) = 0; }; #else /* C style interface */ typedef struct IXMLDOMDocumentTypeVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMDocumentType * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMDocumentType * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMDocumentType * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMDocumentType * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMDocumentType * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMDocumentType * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMDocumentType * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMDocumentType * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMDocumentType * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMDocumentType * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMDocumentType * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMDocumentType * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMDocumentType * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMDocumentType * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMDocumentType * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMDocumentType * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMDocumentType * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMDocumentType * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMDocumentType * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMDocumentType * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMDocumentType * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMDocumentType * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMDocumentType * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMDocumentType * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMDocumentType * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMDocumentType * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMDocumentType * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMDocumentType * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMDocumentType * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMDocumentType * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMDocumentType * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMDocumentType * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMDocumentType * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMDocumentType * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMDocumentType * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_name )( IXMLDOMDocumentType * This, /* [retval][out] */ BSTR *rootName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_entities )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNamedNodeMap **entityMap); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_notations )( IXMLDOMDocumentType * This, /* [retval][out] */ IXMLDOMNamedNodeMap **notationMap); END_INTERFACE } IXMLDOMDocumentTypeVtbl; interface IXMLDOMDocumentType { CONST_VTBL struct IXMLDOMDocumentTypeVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMDocumentType_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMDocumentType_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMDocumentType_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMDocumentType_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMDocumentType_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMDocumentType_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMDocumentType_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMDocumentType_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMDocumentType_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMDocumentType_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMDocumentType_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMDocumentType_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMDocumentType_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMDocumentType_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMDocumentType_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMDocumentType_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMDocumentType_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMDocumentType_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMDocumentType_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMDocumentType_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMDocumentType_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMDocumentType_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMDocumentType_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMDocumentType_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMDocumentType_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMDocumentType_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMDocumentType_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMDocumentType_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMDocumentType_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMDocumentType_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMDocumentType_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMDocumentType_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMDocumentType_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMDocumentType_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMDocumentType_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMDocumentType_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMDocumentType_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMDocumentType_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMDocumentType_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMDocumentType_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMDocumentType_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMDocumentType_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMDocumentType_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMDocumentType_get_name(This,rootName) \ ( (This)->lpVtbl -> get_name(This,rootName) ) #define IXMLDOMDocumentType_get_entities(This,entityMap) \ ( (This)->lpVtbl -> get_entities(This,entityMap) ) #define IXMLDOMDocumentType_get_notations(This,notationMap) \ ( (This)->lpVtbl -> get_notations(This,notationMap) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMDocumentType_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMNotation_INTERFACE_DEFINED__ #define __IXMLDOMNotation_INTERFACE_DEFINED__ /* interface IXMLDOMNotation */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMNotation; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF8C-7B36-11d2-B20E-00C04F983E60") IXMLDOMNotation : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_publicId( /* [retval][out] */ VARIANT *publicID) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_systemId( /* [retval][out] */ VARIANT *systemID) = 0; }; #else /* C style interface */ typedef struct IXMLDOMNotationVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMNotation * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMNotation * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMNotation * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMNotation * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMNotation * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMNotation * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMNotation * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMNotation * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMNotation * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMNotation * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMNotation * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMNotation * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMNotation * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMNotation * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMNotation * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMNotation * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMNotation * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMNotation * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMNotation * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMNotation * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMNotation * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMNotation * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMNotation * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMNotation * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMNotation * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMNotation * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMNotation * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMNotation * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMNotation * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMNotation * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMNotation * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMNotation * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMNotation * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMNotation * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMNotation * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMNotation * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_publicId )( IXMLDOMNotation * This, /* [retval][out] */ VARIANT *publicID); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_systemId )( IXMLDOMNotation * This, /* [retval][out] */ VARIANT *systemID); END_INTERFACE } IXMLDOMNotationVtbl; interface IXMLDOMNotation { CONST_VTBL struct IXMLDOMNotationVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMNotation_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMNotation_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMNotation_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMNotation_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMNotation_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMNotation_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMNotation_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMNotation_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMNotation_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMNotation_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMNotation_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMNotation_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMNotation_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMNotation_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMNotation_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMNotation_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMNotation_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMNotation_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMNotation_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMNotation_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMNotation_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMNotation_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMNotation_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMNotation_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMNotation_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMNotation_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMNotation_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMNotation_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMNotation_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMNotation_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMNotation_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMNotation_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMNotation_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMNotation_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMNotation_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMNotation_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMNotation_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMNotation_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMNotation_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMNotation_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMNotation_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMNotation_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMNotation_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMNotation_get_publicId(This,publicID) \ ( (This)->lpVtbl -> get_publicId(This,publicID) ) #define IXMLDOMNotation_get_systemId(This,systemID) \ ( (This)->lpVtbl -> get_systemId(This,systemID) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMNotation_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMEntity_INTERFACE_DEFINED__ #define __IXMLDOMEntity_INTERFACE_DEFINED__ /* interface IXMLDOMEntity */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMEntity; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF8D-7B36-11d2-B20E-00C04F983E60") IXMLDOMEntity : public IXMLDOMNode { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_publicId( /* [retval][out] */ VARIANT *publicID) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_systemId( /* [retval][out] */ VARIANT *systemID) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_notationName( /* [retval][out] */ BSTR *name) = 0; }; #else /* C style interface */ typedef struct IXMLDOMEntityVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMEntity * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMEntity * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMEntity * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMEntity * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMEntity * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMEntity * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMEntity * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMEntity * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMEntity * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMEntity * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMEntity * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMEntity * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMEntity * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMEntity * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMEntity * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMEntity * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMEntity * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMEntity * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMEntity * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMEntity * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMEntity * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMEntity * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMEntity * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMEntity * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMEntity * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMEntity * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMEntity * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMEntity * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMEntity * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMEntity * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMEntity * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMEntity * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMEntity * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMEntity * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMEntity * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMEntity * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_publicId )( IXMLDOMEntity * This, /* [retval][out] */ VARIANT *publicID); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_systemId )( IXMLDOMEntity * This, /* [retval][out] */ VARIANT *systemID); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_notationName )( IXMLDOMEntity * This, /* [retval][out] */ BSTR *name); END_INTERFACE } IXMLDOMEntityVtbl; interface IXMLDOMEntity { CONST_VTBL struct IXMLDOMEntityVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMEntity_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMEntity_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMEntity_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMEntity_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMEntity_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMEntity_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMEntity_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMEntity_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMEntity_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMEntity_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMEntity_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMEntity_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMEntity_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMEntity_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMEntity_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMEntity_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMEntity_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMEntity_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMEntity_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMEntity_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMEntity_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMEntity_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMEntity_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMEntity_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMEntity_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMEntity_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMEntity_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMEntity_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMEntity_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMEntity_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMEntity_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMEntity_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMEntity_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMEntity_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMEntity_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMEntity_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMEntity_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMEntity_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMEntity_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMEntity_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMEntity_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMEntity_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMEntity_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXMLDOMEntity_get_publicId(This,publicID) \ ( (This)->lpVtbl -> get_publicId(This,publicID) ) #define IXMLDOMEntity_get_systemId(This,systemID) \ ( (This)->lpVtbl -> get_systemId(This,systemID) ) #define IXMLDOMEntity_get_notationName(This,name) \ ( (This)->lpVtbl -> get_notationName(This,name) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMEntity_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMEntityReference_INTERFACE_DEFINED__ #define __IXMLDOMEntityReference_INTERFACE_DEFINED__ /* interface IXMLDOMEntityReference */ /* [unique][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMEntityReference; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2933BF8E-7B36-11d2-B20E-00C04F983E60") IXMLDOMEntityReference : public IXMLDOMNode { public: }; #else /* C style interface */ typedef struct IXMLDOMEntityReferenceVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMEntityReference * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMEntityReference * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMEntityReference * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMEntityReference * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMEntityReference * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMEntityReference * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMEntityReference * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXMLDOMEntityReference * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXMLDOMEntityReference * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXMLDOMEntityReference * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXMLDOMEntityReference * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXMLDOMEntityReference * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXMLDOMEntityReference * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLDOMEntityReference * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXMLDOMEntityReference * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXMLDOMEntityReference * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXMLDOMEntityReference * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXMLDOMEntityReference * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXMLDOMEntityReference * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLDOMEntityReference * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLDOMEntityReference * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXMLDOMEntityReference * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXMLDOMEntityReference * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXMLDOMEntityReference * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXMLDOMEntityReference * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXMLDOMEntityReference * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXMLDOMEntityReference * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXMLDOMEntityReference * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXMLDOMEntityReference * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXMLDOMEntityReference * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXMLDOMEntityReference * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXMLDOMEntityReference * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXMLDOMEntityReference * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXMLDOMEntityReference * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXMLDOMEntityReference * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXMLDOMEntityReference * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); END_INTERFACE } IXMLDOMEntityReferenceVtbl; interface IXMLDOMEntityReference { CONST_VTBL struct IXMLDOMEntityReferenceVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMEntityReference_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMEntityReference_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMEntityReference_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMEntityReference_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMEntityReference_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMEntityReference_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMEntityReference_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMEntityReference_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXMLDOMEntityReference_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXMLDOMEntityReference_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXMLDOMEntityReference_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXMLDOMEntityReference_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXMLDOMEntityReference_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXMLDOMEntityReference_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXMLDOMEntityReference_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXMLDOMEntityReference_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXMLDOMEntityReference_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXMLDOMEntityReference_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXMLDOMEntityReference_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXMLDOMEntityReference_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXMLDOMEntityReference_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXMLDOMEntityReference_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXMLDOMEntityReference_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXMLDOMEntityReference_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXMLDOMEntityReference_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXMLDOMEntityReference_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXMLDOMEntityReference_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXMLDOMEntityReference_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXMLDOMEntityReference_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXMLDOMEntityReference_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXMLDOMEntityReference_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXMLDOMEntityReference_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXMLDOMEntityReference_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXMLDOMEntityReference_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXMLDOMEntityReference_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXMLDOMEntityReference_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXMLDOMEntityReference_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXMLDOMEntityReference_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXMLDOMEntityReference_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXMLDOMEntityReference_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXMLDOMEntityReference_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXMLDOMEntityReference_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXMLDOMEntityReference_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMEntityReference_INTERFACE_DEFINED__ */ #ifndef __IXMLDOMParseError_INTERFACE_DEFINED__ #define __IXMLDOMParseError_INTERFACE_DEFINED__ /* interface IXMLDOMParseError */ /* [unique][helpstring][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDOMParseError; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("3efaa426-272f-11d2-836f-0000f87a7782") IXMLDOMParseError : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_errorCode( /* [out][retval] */ long *errorCode) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_url( /* [out][retval] */ BSTR *urlString) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_reason( /* [out][retval] */ BSTR *reasonString) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_srcText( /* [out][retval] */ BSTR *sourceString) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_line( /* [out][retval] */ long *lineNumber) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_linepos( /* [out][retval] */ long *linePosition) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_filepos( /* [out][retval] */ long *filePosition) = 0; }; #else /* C style interface */ typedef struct IXMLDOMParseErrorVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDOMParseError * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDOMParseError * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDOMParseError * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDOMParseError * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDOMParseError * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDOMParseError * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDOMParseError * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_errorCode )( IXMLDOMParseError * This, /* [out][retval] */ long *errorCode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_url )( IXMLDOMParseError * This, /* [out][retval] */ BSTR *urlString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_reason )( IXMLDOMParseError * This, /* [out][retval] */ BSTR *reasonString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_srcText )( IXMLDOMParseError * This, /* [out][retval] */ BSTR *sourceString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_line )( IXMLDOMParseError * This, /* [out][retval] */ long *lineNumber); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_linepos )( IXMLDOMParseError * This, /* [out][retval] */ long *linePosition); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_filepos )( IXMLDOMParseError * This, /* [out][retval] */ long *filePosition); END_INTERFACE } IXMLDOMParseErrorVtbl; interface IXMLDOMParseError { CONST_VTBL struct IXMLDOMParseErrorVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDOMParseError_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDOMParseError_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDOMParseError_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDOMParseError_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDOMParseError_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDOMParseError_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDOMParseError_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDOMParseError_get_errorCode(This,errorCode) \ ( (This)->lpVtbl -> get_errorCode(This,errorCode) ) #define IXMLDOMParseError_get_url(This,urlString) \ ( (This)->lpVtbl -> get_url(This,urlString) ) #define IXMLDOMParseError_get_reason(This,reasonString) \ ( (This)->lpVtbl -> get_reason(This,reasonString) ) #define IXMLDOMParseError_get_srcText(This,sourceString) \ ( (This)->lpVtbl -> get_srcText(This,sourceString) ) #define IXMLDOMParseError_get_line(This,lineNumber) \ ( (This)->lpVtbl -> get_line(This,lineNumber) ) #define IXMLDOMParseError_get_linepos(This,linePosition) \ ( (This)->lpVtbl -> get_linepos(This,linePosition) ) #define IXMLDOMParseError_get_filepos(This,filePosition) \ ( (This)->lpVtbl -> get_filepos(This,filePosition) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDOMParseError_INTERFACE_DEFINED__ */ #ifndef __IXTLRuntime_INTERFACE_DEFINED__ #define __IXTLRuntime_INTERFACE_DEFINED__ /* interface IXTLRuntime */ /* [unique][helpstring][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXTLRuntime; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("3efaa425-272f-11d2-836f-0000f87a7782") IXTLRuntime : public IXMLDOMNode { public: virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE uniqueID( /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pID) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE depth( /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pDepth) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE childNumber( /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pNumber) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE ancestorChildNumber( /* [in] */ BSTR bstrNodeName, /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pNumber) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE absoluteChildNumber( /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pNumber) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE formatIndex( /* [in] */ long lIndex, /* [in] */ BSTR bstrFormat, /* [retval][out] */ BSTR *pbstrFormattedString) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE formatNumber( /* [in] */ double dblNumber, /* [in] */ BSTR bstrFormat, /* [retval][out] */ BSTR *pbstrFormattedString) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE formatDate( /* [in] */ VARIANT varDate, /* [in] */ BSTR bstrFormat, /* [optional][in] */ VARIANT varDestLocale, /* [retval][out] */ BSTR *pbstrFormattedString) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE formatTime( /* [in] */ VARIANT varTime, /* [in] */ BSTR bstrFormat, /* [optional][in] */ VARIANT varDestLocale, /* [retval][out] */ BSTR *pbstrFormattedString) = 0; }; #else /* C style interface */ typedef struct IXTLRuntimeVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXTLRuntime * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXTLRuntime * This); ULONG ( STDMETHODCALLTYPE *Release )( IXTLRuntime * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXTLRuntime * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXTLRuntime * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXTLRuntime * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXTLRuntime * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeName )( IXTLRuntime * This, /* [retval][out] */ BSTR *name); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeValue )( IXTLRuntime * This, /* [retval][out] */ VARIANT *value); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeValue )( IXTLRuntime * This, /* [in] */ VARIANT value); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeType )( IXTLRuntime * This, /* [retval][out] */ DOMNodeType *type); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parentNode )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMNode **parent); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_childNodes )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMNodeList **childList); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_firstChild )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMNode **firstChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_lastChild )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMNode **lastChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_previousSibling )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMNode **previousSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nextSibling )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMNode **nextSibling); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMNamedNodeMap **attributeMap); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *insertBefore )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ VARIANT refChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *replaceChild )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *newChild, /* [in] */ IXMLDOMNode *oldChild, /* [retval][out] */ IXMLDOMNode **outOldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *childNode, /* [retval][out] */ IXMLDOMNode **oldChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *appendChild )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *newChild, /* [retval][out] */ IXMLDOMNode **outNewChild); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *hasChildNodes )( IXTLRuntime * This, /* [retval][out] */ VARIANT_BOOL *hasChild); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_ownerDocument )( IXTLRuntime * This, /* [retval][out] */ IXMLDOMDocument **XMLDOMDocument); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *cloneNode )( IXTLRuntime * This, /* [in] */ VARIANT_BOOL deep, /* [retval][out] */ IXMLDOMNode **cloneRoot); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypeString )( IXTLRuntime * This, /* [out][retval] */ BSTR *nodeType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXTLRuntime * This, /* [out][retval] */ BSTR *text); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXTLRuntime * This, /* [in] */ BSTR text); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_specified )( IXTLRuntime * This, /* [retval][out] */ VARIANT_BOOL *isSpecified); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_definition )( IXTLRuntime * This, /* [out][retval] */ IXMLDOMNode **definitionNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_nodeTypedValue )( IXTLRuntime * This, /* [out][retval] */ VARIANT *typedValue); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_nodeTypedValue )( IXTLRuntime * This, /* [in] */ VARIANT typedValue); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dataType )( IXTLRuntime * This, /* [out][retval] */ VARIANT *dataTypeName); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_dataType )( IXTLRuntime * This, /* [in] */ BSTR dataTypeName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_xml )( IXTLRuntime * This, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNode )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *stylesheet, /* [out][retval] */ BSTR *xmlString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectNodes )( IXTLRuntime * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNodeList **resultList); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *selectSingleNode )( IXTLRuntime * This, /* [in] */ BSTR queryString, /* [out][retval] */ IXMLDOMNode **resultNode); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parsed )( IXTLRuntime * This, /* [out][retval] */ VARIANT_BOOL *isParsed); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_namespaceURI )( IXTLRuntime * This, /* [out][retval] */ BSTR *namespaceURI); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_prefix )( IXTLRuntime * This, /* [out][retval] */ BSTR *prefixString); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_baseName )( IXTLRuntime * This, /* [out][retval] */ BSTR *nameString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *transformNodeToObject )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *stylesheet, /* [in] */ VARIANT outputObject); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *uniqueID )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pID); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *depth )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pDepth); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *childNumber )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pNumber); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *ancestorChildNumber )( IXTLRuntime * This, /* [in] */ BSTR bstrNodeName, /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pNumber); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *absoluteChildNumber )( IXTLRuntime * This, /* [in] */ IXMLDOMNode *pNode, /* [retval][out] */ long *pNumber); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *formatIndex )( IXTLRuntime * This, /* [in] */ long lIndex, /* [in] */ BSTR bstrFormat, /* [retval][out] */ BSTR *pbstrFormattedString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *formatNumber )( IXTLRuntime * This, /* [in] */ double dblNumber, /* [in] */ BSTR bstrFormat, /* [retval][out] */ BSTR *pbstrFormattedString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *formatDate )( IXTLRuntime * This, /* [in] */ VARIANT varDate, /* [in] */ BSTR bstrFormat, /* [optional][in] */ VARIANT varDestLocale, /* [retval][out] */ BSTR *pbstrFormattedString); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *formatTime )( IXTLRuntime * This, /* [in] */ VARIANT varTime, /* [in] */ BSTR bstrFormat, /* [optional][in] */ VARIANT varDestLocale, /* [retval][out] */ BSTR *pbstrFormattedString); END_INTERFACE } IXTLRuntimeVtbl; interface IXTLRuntime { CONST_VTBL struct IXTLRuntimeVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXTLRuntime_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXTLRuntime_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXTLRuntime_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXTLRuntime_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXTLRuntime_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXTLRuntime_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXTLRuntime_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXTLRuntime_get_nodeName(This,name) \ ( (This)->lpVtbl -> get_nodeName(This,name) ) #define IXTLRuntime_get_nodeValue(This,value) \ ( (This)->lpVtbl -> get_nodeValue(This,value) ) #define IXTLRuntime_put_nodeValue(This,value) \ ( (This)->lpVtbl -> put_nodeValue(This,value) ) #define IXTLRuntime_get_nodeType(This,type) \ ( (This)->lpVtbl -> get_nodeType(This,type) ) #define IXTLRuntime_get_parentNode(This,parent) \ ( (This)->lpVtbl -> get_parentNode(This,parent) ) #define IXTLRuntime_get_childNodes(This,childList) \ ( (This)->lpVtbl -> get_childNodes(This,childList) ) #define IXTLRuntime_get_firstChild(This,firstChild) \ ( (This)->lpVtbl -> get_firstChild(This,firstChild) ) #define IXTLRuntime_get_lastChild(This,lastChild) \ ( (This)->lpVtbl -> get_lastChild(This,lastChild) ) #define IXTLRuntime_get_previousSibling(This,previousSibling) \ ( (This)->lpVtbl -> get_previousSibling(This,previousSibling) ) #define IXTLRuntime_get_nextSibling(This,nextSibling) \ ( (This)->lpVtbl -> get_nextSibling(This,nextSibling) ) #define IXTLRuntime_get_attributes(This,attributeMap) \ ( (This)->lpVtbl -> get_attributes(This,attributeMap) ) #define IXTLRuntime_insertBefore(This,newChild,refChild,outNewChild) \ ( (This)->lpVtbl -> insertBefore(This,newChild,refChild,outNewChild) ) #define IXTLRuntime_replaceChild(This,newChild,oldChild,outOldChild) \ ( (This)->lpVtbl -> replaceChild(This,newChild,oldChild,outOldChild) ) #define IXTLRuntime_removeChild(This,childNode,oldChild) \ ( (This)->lpVtbl -> removeChild(This,childNode,oldChild) ) #define IXTLRuntime_appendChild(This,newChild,outNewChild) \ ( (This)->lpVtbl -> appendChild(This,newChild,outNewChild) ) #define IXTLRuntime_hasChildNodes(This,hasChild) \ ( (This)->lpVtbl -> hasChildNodes(This,hasChild) ) #define IXTLRuntime_get_ownerDocument(This,XMLDOMDocument) \ ( (This)->lpVtbl -> get_ownerDocument(This,XMLDOMDocument) ) #define IXTLRuntime_cloneNode(This,deep,cloneRoot) \ ( (This)->lpVtbl -> cloneNode(This,deep,cloneRoot) ) #define IXTLRuntime_get_nodeTypeString(This,nodeType) \ ( (This)->lpVtbl -> get_nodeTypeString(This,nodeType) ) #define IXTLRuntime_get_text(This,text) \ ( (This)->lpVtbl -> get_text(This,text) ) #define IXTLRuntime_put_text(This,text) \ ( (This)->lpVtbl -> put_text(This,text) ) #define IXTLRuntime_get_specified(This,isSpecified) \ ( (This)->lpVtbl -> get_specified(This,isSpecified) ) #define IXTLRuntime_get_definition(This,definitionNode) \ ( (This)->lpVtbl -> get_definition(This,definitionNode) ) #define IXTLRuntime_get_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> get_nodeTypedValue(This,typedValue) ) #define IXTLRuntime_put_nodeTypedValue(This,typedValue) \ ( (This)->lpVtbl -> put_nodeTypedValue(This,typedValue) ) #define IXTLRuntime_get_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> get_dataType(This,dataTypeName) ) #define IXTLRuntime_put_dataType(This,dataTypeName) \ ( (This)->lpVtbl -> put_dataType(This,dataTypeName) ) #define IXTLRuntime_get_xml(This,xmlString) \ ( (This)->lpVtbl -> get_xml(This,xmlString) ) #define IXTLRuntime_transformNode(This,stylesheet,xmlString) \ ( (This)->lpVtbl -> transformNode(This,stylesheet,xmlString) ) #define IXTLRuntime_selectNodes(This,queryString,resultList) \ ( (This)->lpVtbl -> selectNodes(This,queryString,resultList) ) #define IXTLRuntime_selectSingleNode(This,queryString,resultNode) \ ( (This)->lpVtbl -> selectSingleNode(This,queryString,resultNode) ) #define IXTLRuntime_get_parsed(This,isParsed) \ ( (This)->lpVtbl -> get_parsed(This,isParsed) ) #define IXTLRuntime_get_namespaceURI(This,namespaceURI) \ ( (This)->lpVtbl -> get_namespaceURI(This,namespaceURI) ) #define IXTLRuntime_get_prefix(This,prefixString) \ ( (This)->lpVtbl -> get_prefix(This,prefixString) ) #define IXTLRuntime_get_baseName(This,nameString) \ ( (This)->lpVtbl -> get_baseName(This,nameString) ) #define IXTLRuntime_transformNodeToObject(This,stylesheet,outputObject) \ ( (This)->lpVtbl -> transformNodeToObject(This,stylesheet,outputObject) ) #define IXTLRuntime_uniqueID(This,pNode,pID) \ ( (This)->lpVtbl -> uniqueID(This,pNode,pID) ) #define IXTLRuntime_depth(This,pNode,pDepth) \ ( (This)->lpVtbl -> depth(This,pNode,pDepth) ) #define IXTLRuntime_childNumber(This,pNode,pNumber) \ ( (This)->lpVtbl -> childNumber(This,pNode,pNumber) ) #define IXTLRuntime_ancestorChildNumber(This,bstrNodeName,pNode,pNumber) \ ( (This)->lpVtbl -> ancestorChildNumber(This,bstrNodeName,pNode,pNumber) ) #define IXTLRuntime_absoluteChildNumber(This,pNode,pNumber) \ ( (This)->lpVtbl -> absoluteChildNumber(This,pNode,pNumber) ) #define IXTLRuntime_formatIndex(This,lIndex,bstrFormat,pbstrFormattedString) \ ( (This)->lpVtbl -> formatIndex(This,lIndex,bstrFormat,pbstrFormattedString) ) #define IXTLRuntime_formatNumber(This,dblNumber,bstrFormat,pbstrFormattedString) \ ( (This)->lpVtbl -> formatNumber(This,dblNumber,bstrFormat,pbstrFormattedString) ) #define IXTLRuntime_formatDate(This,varDate,bstrFormat,varDestLocale,pbstrFormattedString) \ ( (This)->lpVtbl -> formatDate(This,varDate,bstrFormat,varDestLocale,pbstrFormattedString) ) #define IXTLRuntime_formatTime(This,varTime,bstrFormat,varDestLocale,pbstrFormattedString) \ ( (This)->lpVtbl -> formatTime(This,varTime,bstrFormat,varDestLocale,pbstrFormattedString) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXTLRuntime_INTERFACE_DEFINED__ */ #ifndef __XMLDOMDocumentEvents_DISPINTERFACE_DEFINED__ #define __XMLDOMDocumentEvents_DISPINTERFACE_DEFINED__ /* dispinterface XMLDOMDocumentEvents */ /* [uuid][hidden] */ EXTERN_C const IID DIID_XMLDOMDocumentEvents; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("3efaa427-272f-11d2-836f-0000f87a7782") XMLDOMDocumentEvents : public IDispatch { }; #else /* C style interface */ typedef struct XMLDOMDocumentEventsVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( __RPC__in XMLDOMDocumentEvents * This, /* [in] */ __RPC__in REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( __RPC__in XMLDOMDocumentEvents * This); ULONG ( STDMETHODCALLTYPE *Release )( __RPC__in XMLDOMDocumentEvents * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( __RPC__in XMLDOMDocumentEvents * This, /* [out] */ __RPC__out UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( __RPC__in XMLDOMDocumentEvents * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( __RPC__in XMLDOMDocumentEvents * This, /* [in] */ __RPC__in REFIID riid, /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( XMLDOMDocumentEvents * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); END_INTERFACE } XMLDOMDocumentEventsVtbl; interface XMLDOMDocumentEvents { CONST_VTBL struct XMLDOMDocumentEventsVtbl *lpVtbl; }; #ifdef COBJMACROS #define XMLDOMDocumentEvents_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define XMLDOMDocumentEvents_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define XMLDOMDocumentEvents_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define XMLDOMDocumentEvents_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define XMLDOMDocumentEvents_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define XMLDOMDocumentEvents_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define XMLDOMDocumentEvents_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __XMLDOMDocumentEvents_DISPINTERFACE_DEFINED__ */ EXTERN_C const CLSID CLSID_DOMDocument; #ifdef __cplusplus class DECLSPEC_UUID("2933BF90-7B36-11d2-B20E-00C04F983E60") DOMDocument; #endif EXTERN_C const CLSID CLSID_DOMFreeThreadedDocument; #ifdef __cplusplus class DECLSPEC_UUID("2933BF91-7B36-11d2-B20E-00C04F983E60") DOMFreeThreadedDocument; #endif #ifndef __IXMLHttpRequest_INTERFACE_DEFINED__ #define __IXMLHttpRequest_INTERFACE_DEFINED__ /* interface IXMLHttpRequest */ /* [unique][helpstring][oleautomation][dual][uuid][object] */ EXTERN_C const IID IID_IXMLHttpRequest; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("ED8C108D-4349-11D2-91A4-00C04F7969E8") IXMLHttpRequest : public IDispatch { public: virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE open( /* [in] */ __RPC__in BSTR bstrMethod, /* [in] */ __RPC__in BSTR bstrUrl, /* [optional][in] */ VARIANT varAsync, /* [optional][in] */ VARIANT bstrUser, /* [optional][in] */ VARIANT bstrPassword) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setRequestHeader( /* [in] */ __RPC__in BSTR bstrHeader, /* [in] */ __RPC__in BSTR bstrValue) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getResponseHeader( /* [in] */ __RPC__in BSTR bstrHeader, /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrValue) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getAllResponseHeaders( /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrHeaders) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE send( /* [optional][in] */ VARIANT varBody) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE abort( void) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_status( /* [retval][out] */ __RPC__out long *plStatus) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_statusText( /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStatus) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_responseXML( /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppBody) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_responseText( /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBody) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_responseBody( /* [retval][out] */ __RPC__out VARIANT *pvarBody) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_responseStream( /* [retval][out] */ __RPC__out VARIANT *pvarBody) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_readyState( /* [retval][out] */ __RPC__out long *plState) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_onreadystatechange( /* [in] */ __RPC__in_opt IDispatch *pReadyStateSink) = 0; }; #else /* C style interface */ typedef struct IXMLHttpRequestVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( __RPC__in IXMLHttpRequest * This, /* [in] */ __RPC__in REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( __RPC__in IXMLHttpRequest * This); ULONG ( STDMETHODCALLTYPE *Release )( __RPC__in IXMLHttpRequest * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( __RPC__in IXMLHttpRequest * This, /* [out] */ __RPC__out UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( __RPC__in IXMLHttpRequest * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ __RPC__deref_out_opt ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( __RPC__in IXMLHttpRequest * This, /* [in] */ __RPC__in REFIID riid, /* [size_is][in] */ __RPC__in_ecount_full(cNames) LPOLESTR *rgszNames, /* [range][in] */ __RPC__in_range(0,16384) UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ __RPC__out_ecount_full(cNames) DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLHttpRequest * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *open )( __RPC__in IXMLHttpRequest * This, /* [in] */ __RPC__in BSTR bstrMethod, /* [in] */ __RPC__in BSTR bstrUrl, /* [optional][in] */ VARIANT varAsync, /* [optional][in] */ VARIANT bstrUser, /* [optional][in] */ VARIANT bstrPassword); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *setRequestHeader )( __RPC__in IXMLHttpRequest * This, /* [in] */ __RPC__in BSTR bstrHeader, /* [in] */ __RPC__in BSTR bstrValue); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getResponseHeader )( __RPC__in IXMLHttpRequest * This, /* [in] */ __RPC__in BSTR bstrHeader, /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrValue); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getAllResponseHeaders )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrHeaders); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *send )( __RPC__in IXMLHttpRequest * This, /* [optional][in] */ VARIANT varBody); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *abort )( __RPC__in IXMLHttpRequest * This); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_status )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__out long *plStatus); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_statusText )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrStatus); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_responseXML )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__deref_out_opt IDispatch **ppBody); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_responseText )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__deref_out_opt BSTR *pbstrBody); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_responseBody )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__out VARIANT *pvarBody); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_responseStream )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__out VARIANT *pvarBody); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_readyState )( __RPC__in IXMLHttpRequest * This, /* [retval][out] */ __RPC__out long *plState); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_onreadystatechange )( __RPC__in IXMLHttpRequest * This, /* [in] */ __RPC__in_opt IDispatch *pReadyStateSink); END_INTERFACE } IXMLHttpRequestVtbl; interface IXMLHttpRequest { CONST_VTBL struct IXMLHttpRequestVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLHttpRequest_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLHttpRequest_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLHttpRequest_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLHttpRequest_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLHttpRequest_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLHttpRequest_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLHttpRequest_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLHttpRequest_open(This,bstrMethod,bstrUrl,varAsync,bstrUser,bstrPassword) \ ( (This)->lpVtbl -> open(This,bstrMethod,bstrUrl,varAsync,bstrUser,bstrPassword) ) #define IXMLHttpRequest_setRequestHeader(This,bstrHeader,bstrValue) \ ( (This)->lpVtbl -> setRequestHeader(This,bstrHeader,bstrValue) ) #define IXMLHttpRequest_getResponseHeader(This,bstrHeader,pbstrValue) \ ( (This)->lpVtbl -> getResponseHeader(This,bstrHeader,pbstrValue) ) #define IXMLHttpRequest_getAllResponseHeaders(This,pbstrHeaders) \ ( (This)->lpVtbl -> getAllResponseHeaders(This,pbstrHeaders) ) #define IXMLHttpRequest_send(This,varBody) \ ( (This)->lpVtbl -> send(This,varBody) ) #define IXMLHttpRequest_abort(This) \ ( (This)->lpVtbl -> abort(This) ) #define IXMLHttpRequest_get_status(This,plStatus) \ ( (This)->lpVtbl -> get_status(This,plStatus) ) #define IXMLHttpRequest_get_statusText(This,pbstrStatus) \ ( (This)->lpVtbl -> get_statusText(This,pbstrStatus) ) #define IXMLHttpRequest_get_responseXML(This,ppBody) \ ( (This)->lpVtbl -> get_responseXML(This,ppBody) ) #define IXMLHttpRequest_get_responseText(This,pbstrBody) \ ( (This)->lpVtbl -> get_responseText(This,pbstrBody) ) #define IXMLHttpRequest_get_responseBody(This,pvarBody) \ ( (This)->lpVtbl -> get_responseBody(This,pvarBody) ) #define IXMLHttpRequest_get_responseStream(This,pvarBody) \ ( (This)->lpVtbl -> get_responseStream(This,pvarBody) ) #define IXMLHttpRequest_get_readyState(This,plState) \ ( (This)->lpVtbl -> get_readyState(This,plState) ) #define IXMLHttpRequest_put_onreadystatechange(This,pReadyStateSink) \ ( (This)->lpVtbl -> put_onreadystatechange(This,pReadyStateSink) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLHttpRequest_INTERFACE_DEFINED__ */ EXTERN_C const CLSID CLSID_XMLHTTPRequest; #ifdef __cplusplus class DECLSPEC_UUID("ED8C108E-4349-11D2-91A4-00C04F7969E8") XMLHTTPRequest; #endif #ifndef __IXMLDSOControl_INTERFACE_DEFINED__ #define __IXMLDSOControl_INTERFACE_DEFINED__ /* interface IXMLDSOControl */ /* [unique][helpstring][hidden][nonextensible][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDSOControl; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("310afa62-0575-11d2-9ca9-0060b0ec3d39") IXMLDSOControl : public IDispatch { public: virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_XMLDocument( /* [retval][out] */ IXMLDOMDocument **ppDoc) = 0; virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_XMLDocument( /* [in] */ IXMLDOMDocument *ppDoc) = 0; virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_JavaDSOCompatible( /* [retval][out] */ BOOL *fJavaDSOCompatible) = 0; virtual /* [id][propput] */ HRESULT STDMETHODCALLTYPE put_JavaDSOCompatible( /* [in] */ BOOL fJavaDSOCompatible) = 0; virtual /* [id][propget] */ HRESULT STDMETHODCALLTYPE get_readyState( /* [retval][out] */ long *state) = 0; }; #else /* C style interface */ typedef struct IXMLDSOControlVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDSOControl * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDSOControl * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDSOControl * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDSOControl * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDSOControl * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDSOControl * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDSOControl * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_XMLDocument )( IXMLDSOControl * This, /* [retval][out] */ IXMLDOMDocument **ppDoc); /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_XMLDocument )( IXMLDSOControl * This, /* [in] */ IXMLDOMDocument *ppDoc); /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_JavaDSOCompatible )( IXMLDSOControl * This, /* [retval][out] */ BOOL *fJavaDSOCompatible); /* [id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_JavaDSOCompatible )( IXMLDSOControl * This, /* [in] */ BOOL fJavaDSOCompatible); /* [id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_readyState )( IXMLDSOControl * This, /* [retval][out] */ long *state); END_INTERFACE } IXMLDSOControlVtbl; interface IXMLDSOControl { CONST_VTBL struct IXMLDSOControlVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDSOControl_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDSOControl_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDSOControl_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDSOControl_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDSOControl_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDSOControl_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDSOControl_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDSOControl_get_XMLDocument(This,ppDoc) \ ( (This)->lpVtbl -> get_XMLDocument(This,ppDoc) ) #define IXMLDSOControl_put_XMLDocument(This,ppDoc) \ ( (This)->lpVtbl -> put_XMLDocument(This,ppDoc) ) #define IXMLDSOControl_get_JavaDSOCompatible(This,fJavaDSOCompatible) \ ( (This)->lpVtbl -> get_JavaDSOCompatible(This,fJavaDSOCompatible) ) #define IXMLDSOControl_put_JavaDSOCompatible(This,fJavaDSOCompatible) \ ( (This)->lpVtbl -> put_JavaDSOCompatible(This,fJavaDSOCompatible) ) #define IXMLDSOControl_get_readyState(This,state) \ ( (This)->lpVtbl -> get_readyState(This,state) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDSOControl_INTERFACE_DEFINED__ */ EXTERN_C const CLSID CLSID_XMLDSOControl; #ifdef __cplusplus class DECLSPEC_UUID("550dda30-0541-11d2-9ca9-0060b0ec3d39") XMLDSOControl; #endif #ifndef __IXMLElementCollection_INTERFACE_DEFINED__ #define __IXMLElementCollection_INTERFACE_DEFINED__ /* interface IXMLElementCollection */ /* [helpstring][hidden][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLElementCollection; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("65725580-9B5D-11d0-9BFE-00C04FC99C8E") IXMLElementCollection : public IDispatch { public: virtual /* [id][hidden][restricted][propput] */ HRESULT STDMETHODCALLTYPE put_length( /* [in] */ long v) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_length( /* [out][retval] */ long *p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get__newEnum( /* [out][retval] */ IUnknown **ppUnk) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE item( /* [in][optional] */ VARIANT var1, /* [in][optional] */ VARIANT var2, /* [out][retval] */ IDispatch **ppDisp) = 0; }; #else /* C style interface */ typedef struct IXMLElementCollectionVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLElementCollection * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLElementCollection * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLElementCollection * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLElementCollection * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLElementCollection * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLElementCollection * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLElementCollection * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [id][hidden][restricted][propput] */ HRESULT ( STDMETHODCALLTYPE *put_length )( IXMLElementCollection * This, /* [in] */ long v); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_length )( IXMLElementCollection * This, /* [out][retval] */ long *p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get__newEnum )( IXMLElementCollection * This, /* [out][retval] */ IUnknown **ppUnk); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *item )( IXMLElementCollection * This, /* [in][optional] */ VARIANT var1, /* [in][optional] */ VARIANT var2, /* [out][retval] */ IDispatch **ppDisp); END_INTERFACE } IXMLElementCollectionVtbl; interface IXMLElementCollection { CONST_VTBL struct IXMLElementCollectionVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLElementCollection_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLElementCollection_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLElementCollection_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLElementCollection_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLElementCollection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLElementCollection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLElementCollection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLElementCollection_put_length(This,v) \ ( (This)->lpVtbl -> put_length(This,v) ) #define IXMLElementCollection_get_length(This,p) \ ( (This)->lpVtbl -> get_length(This,p) ) #define IXMLElementCollection_get__newEnum(This,ppUnk) \ ( (This)->lpVtbl -> get__newEnum(This,ppUnk) ) #define IXMLElementCollection_item(This,var1,var2,ppDisp) \ ( (This)->lpVtbl -> item(This,var1,var2,ppDisp) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLElementCollection_INTERFACE_DEFINED__ */ #ifndef __IXMLDocument_INTERFACE_DEFINED__ #define __IXMLDocument_INTERFACE_DEFINED__ /* interface IXMLDocument */ /* [helpstring][hidden][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLDocument; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("F52E2B61-18A1-11d1-B105-00805F49916B") IXMLDocument : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_root( /* [out][retval] */ IXMLElement **p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_fileSize( /* [out][retval] */ BSTR *p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_fileModifiedDate( /* [out][retval] */ BSTR *p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_fileUpdatedDate( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_URL( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_URL( /* [in] */ BSTR p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_mimeType( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_readyState( /* [out][retval] */ long *pl) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_charset( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_charset( /* [in] */ BSTR p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_version( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_doctype( /* [out][retval] */ BSTR *p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_dtdURL( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createElement( /* [in] */ VARIANT vType, /* [in][optional] */ VARIANT var1, /* [out][retval] */ IXMLElement **ppElem) = 0; }; #else /* C style interface */ typedef struct IXMLDocumentVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDocument * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDocument * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDocument * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDocument * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDocument * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDocument * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDocument * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_root )( IXMLDocument * This, /* [out][retval] */ IXMLElement **p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_fileSize )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_fileModifiedDate )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_fileUpdatedDate )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_URL )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_URL )( IXMLDocument * This, /* [in] */ BSTR p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_mimeType )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_readyState )( IXMLDocument * This, /* [out][retval] */ long *pl); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_charset )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_charset )( IXMLDocument * This, /* [in] */ BSTR p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_version )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_doctype )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dtdURL )( IXMLDocument * This, /* [out][retval] */ BSTR *p); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createElement )( IXMLDocument * This, /* [in] */ VARIANT vType, /* [in][optional] */ VARIANT var1, /* [out][retval] */ IXMLElement **ppElem); END_INTERFACE } IXMLDocumentVtbl; interface IXMLDocument { CONST_VTBL struct IXMLDocumentVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDocument_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDocument_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDocument_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDocument_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDocument_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDocument_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDocument_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDocument_get_root(This,p) \ ( (This)->lpVtbl -> get_root(This,p) ) #define IXMLDocument_get_fileSize(This,p) \ ( (This)->lpVtbl -> get_fileSize(This,p) ) #define IXMLDocument_get_fileModifiedDate(This,p) \ ( (This)->lpVtbl -> get_fileModifiedDate(This,p) ) #define IXMLDocument_get_fileUpdatedDate(This,p) \ ( (This)->lpVtbl -> get_fileUpdatedDate(This,p) ) #define IXMLDocument_get_URL(This,p) \ ( (This)->lpVtbl -> get_URL(This,p) ) #define IXMLDocument_put_URL(This,p) \ ( (This)->lpVtbl -> put_URL(This,p) ) #define IXMLDocument_get_mimeType(This,p) \ ( (This)->lpVtbl -> get_mimeType(This,p) ) #define IXMLDocument_get_readyState(This,pl) \ ( (This)->lpVtbl -> get_readyState(This,pl) ) #define IXMLDocument_get_charset(This,p) \ ( (This)->lpVtbl -> get_charset(This,p) ) #define IXMLDocument_put_charset(This,p) \ ( (This)->lpVtbl -> put_charset(This,p) ) #define IXMLDocument_get_version(This,p) \ ( (This)->lpVtbl -> get_version(This,p) ) #define IXMLDocument_get_doctype(This,p) \ ( (This)->lpVtbl -> get_doctype(This,p) ) #define IXMLDocument_get_dtdURL(This,p) \ ( (This)->lpVtbl -> get_dtdURL(This,p) ) #define IXMLDocument_createElement(This,vType,var1,ppElem) \ ( (This)->lpVtbl -> createElement(This,vType,var1,ppElem) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDocument_INTERFACE_DEFINED__ */ #ifndef __IXMLDocument2_INTERFACE_DEFINED__ #define __IXMLDocument2_INTERFACE_DEFINED__ /* interface IXMLDocument2 */ /* [hidden][uuid][object][local] */ EXTERN_C const IID IID_IXMLDocument2; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2B8DE2FE-8D2D-11d1-B2FC-00C04FD915A9") IXMLDocument2 : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_root( /* [out][retval] */ IXMLElement2 **p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_fileSize( /* [out][retval] */ BSTR *p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_fileModifiedDate( /* [out][retval] */ BSTR *p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_fileUpdatedDate( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_URL( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_URL( /* [in] */ BSTR p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_mimeType( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_readyState( /* [out][retval] */ long *pl) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_charset( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_charset( /* [in] */ BSTR p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_version( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_doctype( /* [out][retval] */ BSTR *p) = 0; virtual /* [id][hidden][restricted][propget] */ HRESULT STDMETHODCALLTYPE get_dtdURL( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE createElement( /* [in] */ VARIANT vType, /* [in][optional] */ VARIANT var1, /* [out][retval] */ IXMLElement2 **ppElem) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_async( /* [out][retval] */ VARIANT_BOOL *pf) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_async( /* [in] */ VARIANT_BOOL f) = 0; }; #else /* C style interface */ typedef struct IXMLDocument2Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLDocument2 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLDocument2 * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLDocument2 * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLDocument2 * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLDocument2 * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLDocument2 * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLDocument2 * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_root )( IXMLDocument2 * This, /* [out][retval] */ IXMLElement2 **p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_fileSize )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_fileModifiedDate )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_fileUpdatedDate )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_URL )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_URL )( IXMLDocument2 * This, /* [in] */ BSTR p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_mimeType )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_readyState )( IXMLDocument2 * This, /* [out][retval] */ long *pl); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_charset )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_charset )( IXMLDocument2 * This, /* [in] */ BSTR p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_version )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_doctype )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [id][hidden][restricted][propget] */ HRESULT ( STDMETHODCALLTYPE *get_dtdURL )( IXMLDocument2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *createElement )( IXMLDocument2 * This, /* [in] */ VARIANT vType, /* [in][optional] */ VARIANT var1, /* [out][retval] */ IXMLElement2 **ppElem); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_async )( IXMLDocument2 * This, /* [out][retval] */ VARIANT_BOOL *pf); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_async )( IXMLDocument2 * This, /* [in] */ VARIANT_BOOL f); END_INTERFACE } IXMLDocument2Vtbl; interface IXMLDocument2 { CONST_VTBL struct IXMLDocument2Vtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLDocument2_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLDocument2_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLDocument2_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLDocument2_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLDocument2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLDocument2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLDocument2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLDocument2_get_root(This,p) \ ( (This)->lpVtbl -> get_root(This,p) ) #define IXMLDocument2_get_fileSize(This,p) \ ( (This)->lpVtbl -> get_fileSize(This,p) ) #define IXMLDocument2_get_fileModifiedDate(This,p) \ ( (This)->lpVtbl -> get_fileModifiedDate(This,p) ) #define IXMLDocument2_get_fileUpdatedDate(This,p) \ ( (This)->lpVtbl -> get_fileUpdatedDate(This,p) ) #define IXMLDocument2_get_URL(This,p) \ ( (This)->lpVtbl -> get_URL(This,p) ) #define IXMLDocument2_put_URL(This,p) \ ( (This)->lpVtbl -> put_URL(This,p) ) #define IXMLDocument2_get_mimeType(This,p) \ ( (This)->lpVtbl -> get_mimeType(This,p) ) #define IXMLDocument2_get_readyState(This,pl) \ ( (This)->lpVtbl -> get_readyState(This,pl) ) #define IXMLDocument2_get_charset(This,p) \ ( (This)->lpVtbl -> get_charset(This,p) ) #define IXMLDocument2_put_charset(This,p) \ ( (This)->lpVtbl -> put_charset(This,p) ) #define IXMLDocument2_get_version(This,p) \ ( (This)->lpVtbl -> get_version(This,p) ) #define IXMLDocument2_get_doctype(This,p) \ ( (This)->lpVtbl -> get_doctype(This,p) ) #define IXMLDocument2_get_dtdURL(This,p) \ ( (This)->lpVtbl -> get_dtdURL(This,p) ) #define IXMLDocument2_createElement(This,vType,var1,ppElem) \ ( (This)->lpVtbl -> createElement(This,vType,var1,ppElem) ) #define IXMLDocument2_get_async(This,pf) \ ( (This)->lpVtbl -> get_async(This,pf) ) #define IXMLDocument2_put_async(This,f) \ ( (This)->lpVtbl -> put_async(This,f) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLDocument2_INTERFACE_DEFINED__ */ #ifndef __IXMLElement_INTERFACE_DEFINED__ #define __IXMLElement_INTERFACE_DEFINED__ /* interface IXMLElement */ /* [helpstring][hidden][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLElement; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("3F7F31AC-E15F-11d0-9C25-00C04FC99C8E") IXMLElement : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_tagName( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_tagName( /* [in] */ BSTR p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_parent( /* [out][retval] */ IXMLElement **ppParent) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setAttribute( /* [in] */ BSTR strPropertyName, /* [in] */ VARIANT PropertyValue) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getAttribute( /* [in] */ BSTR strPropertyName, /* [out][retval] */ VARIANT *PropertyValue) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeAttribute( /* [in] */ BSTR strPropertyName) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_children( /* [out][retval] */ IXMLElementCollection **pp) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_type( /* [out][retval] */ long *plType) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_text( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_text( /* [in] */ BSTR p) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE addChild( /* [in] */ IXMLElement *pChildElem, long lIndex, long lReserved) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeChild( /* [in] */ IXMLElement *pChildElem) = 0; }; #else /* C style interface */ typedef struct IXMLElementVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLElement * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLElement * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLElement * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLElement * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLElement * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLElement * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLElement * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_tagName )( IXMLElement * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_tagName )( IXMLElement * This, /* [in] */ BSTR p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parent )( IXMLElement * This, /* [out][retval] */ IXMLElement **ppParent); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *setAttribute )( IXMLElement * This, /* [in] */ BSTR strPropertyName, /* [in] */ VARIANT PropertyValue); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getAttribute )( IXMLElement * This, /* [in] */ BSTR strPropertyName, /* [out][retval] */ VARIANT *PropertyValue); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeAttribute )( IXMLElement * This, /* [in] */ BSTR strPropertyName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_children )( IXMLElement * This, /* [out][retval] */ IXMLElementCollection **pp); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_type )( IXMLElement * This, /* [out][retval] */ long *plType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLElement * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLElement * This, /* [in] */ BSTR p); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *addChild )( IXMLElement * This, /* [in] */ IXMLElement *pChildElem, long lIndex, long lReserved); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLElement * This, /* [in] */ IXMLElement *pChildElem); END_INTERFACE } IXMLElementVtbl; interface IXMLElement { CONST_VTBL struct IXMLElementVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLElement_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLElement_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLElement_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLElement_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLElement_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLElement_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLElement_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLElement_get_tagName(This,p) \ ( (This)->lpVtbl -> get_tagName(This,p) ) #define IXMLElement_put_tagName(This,p) \ ( (This)->lpVtbl -> put_tagName(This,p) ) #define IXMLElement_get_parent(This,ppParent) \ ( (This)->lpVtbl -> get_parent(This,ppParent) ) #define IXMLElement_setAttribute(This,strPropertyName,PropertyValue) \ ( (This)->lpVtbl -> setAttribute(This,strPropertyName,PropertyValue) ) #define IXMLElement_getAttribute(This,strPropertyName,PropertyValue) \ ( (This)->lpVtbl -> getAttribute(This,strPropertyName,PropertyValue) ) #define IXMLElement_removeAttribute(This,strPropertyName) \ ( (This)->lpVtbl -> removeAttribute(This,strPropertyName) ) #define IXMLElement_get_children(This,pp) \ ( (This)->lpVtbl -> get_children(This,pp) ) #define IXMLElement_get_type(This,plType) \ ( (This)->lpVtbl -> get_type(This,plType) ) #define IXMLElement_get_text(This,p) \ ( (This)->lpVtbl -> get_text(This,p) ) #define IXMLElement_put_text(This,p) \ ( (This)->lpVtbl -> put_text(This,p) ) #define IXMLElement_addChild(This,pChildElem,lIndex,lReserved) \ ( (This)->lpVtbl -> addChild(This,pChildElem,lIndex,lReserved) ) #define IXMLElement_removeChild(This,pChildElem) \ ( (This)->lpVtbl -> removeChild(This,pChildElem) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLElement_INTERFACE_DEFINED__ */ #ifndef __IXMLElement2_INTERFACE_DEFINED__ #define __IXMLElement2_INTERFACE_DEFINED__ /* interface IXMLElement2 */ /* [helpstring][hidden][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLElement2; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("2B8DE2FF-8D2D-11d1-B2FC-00C04FD915A9") IXMLElement2 : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_tagName( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_tagName( /* [in] */ BSTR p) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_parent( /* [out][retval] */ IXMLElement2 **ppParent) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE setAttribute( /* [in] */ BSTR strPropertyName, /* [in] */ VARIANT PropertyValue) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE getAttribute( /* [in] */ BSTR strPropertyName, /* [out][retval] */ VARIANT *PropertyValue) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeAttribute( /* [in] */ BSTR strPropertyName) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_children( /* [out][retval] */ IXMLElementCollection **pp) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_type( /* [out][retval] */ long *plType) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_text( /* [out][retval] */ BSTR *p) = 0; virtual /* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE put_text( /* [in] */ BSTR p) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE addChild( /* [in] */ IXMLElement2 *pChildElem, long lIndex, long lReserved) = 0; virtual /* [helpstring][id] */ HRESULT STDMETHODCALLTYPE removeChild( /* [in] */ IXMLElement2 *pChildElem) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_attributes( /* [out][retval] */ IXMLElementCollection **pp) = 0; }; #else /* C style interface */ typedef struct IXMLElement2Vtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLElement2 * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLElement2 * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLElement2 * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLElement2 * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLElement2 * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLElement2 * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLElement2 * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_tagName )( IXMLElement2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_tagName )( IXMLElement2 * This, /* [in] */ BSTR p); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_parent )( IXMLElement2 * This, /* [out][retval] */ IXMLElement2 **ppParent); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *setAttribute )( IXMLElement2 * This, /* [in] */ BSTR strPropertyName, /* [in] */ VARIANT PropertyValue); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *getAttribute )( IXMLElement2 * This, /* [in] */ BSTR strPropertyName, /* [out][retval] */ VARIANT *PropertyValue); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeAttribute )( IXMLElement2 * This, /* [in] */ BSTR strPropertyName); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_children )( IXMLElement2 * This, /* [out][retval] */ IXMLElementCollection **pp); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_type )( IXMLElement2 * This, /* [out][retval] */ long *plType); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_text )( IXMLElement2 * This, /* [out][retval] */ BSTR *p); /* [helpstring][id][propput] */ HRESULT ( STDMETHODCALLTYPE *put_text )( IXMLElement2 * This, /* [in] */ BSTR p); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *addChild )( IXMLElement2 * This, /* [in] */ IXMLElement2 *pChildElem, long lIndex, long lReserved); /* [helpstring][id] */ HRESULT ( STDMETHODCALLTYPE *removeChild )( IXMLElement2 * This, /* [in] */ IXMLElement2 *pChildElem); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_attributes )( IXMLElement2 * This, /* [out][retval] */ IXMLElementCollection **pp); END_INTERFACE } IXMLElement2Vtbl; interface IXMLElement2 { CONST_VTBL struct IXMLElement2Vtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLElement2_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLElement2_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLElement2_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLElement2_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLElement2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLElement2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLElement2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLElement2_get_tagName(This,p) \ ( (This)->lpVtbl -> get_tagName(This,p) ) #define IXMLElement2_put_tagName(This,p) \ ( (This)->lpVtbl -> put_tagName(This,p) ) #define IXMLElement2_get_parent(This,ppParent) \ ( (This)->lpVtbl -> get_parent(This,ppParent) ) #define IXMLElement2_setAttribute(This,strPropertyName,PropertyValue) \ ( (This)->lpVtbl -> setAttribute(This,strPropertyName,PropertyValue) ) #define IXMLElement2_getAttribute(This,strPropertyName,PropertyValue) \ ( (This)->lpVtbl -> getAttribute(This,strPropertyName,PropertyValue) ) #define IXMLElement2_removeAttribute(This,strPropertyName) \ ( (This)->lpVtbl -> removeAttribute(This,strPropertyName) ) #define IXMLElement2_get_children(This,pp) \ ( (This)->lpVtbl -> get_children(This,pp) ) #define IXMLElement2_get_type(This,plType) \ ( (This)->lpVtbl -> get_type(This,plType) ) #define IXMLElement2_get_text(This,p) \ ( (This)->lpVtbl -> get_text(This,p) ) #define IXMLElement2_put_text(This,p) \ ( (This)->lpVtbl -> put_text(This,p) ) #define IXMLElement2_addChild(This,pChildElem,lIndex,lReserved) \ ( (This)->lpVtbl -> addChild(This,pChildElem,lIndex,lReserved) ) #define IXMLElement2_removeChild(This,pChildElem) \ ( (This)->lpVtbl -> removeChild(This,pChildElem) ) #define IXMLElement2_get_attributes(This,pp) \ ( (This)->lpVtbl -> get_attributes(This,pp) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLElement2_INTERFACE_DEFINED__ */ #ifndef __IXMLAttribute_INTERFACE_DEFINED__ #define __IXMLAttribute_INTERFACE_DEFINED__ /* interface IXMLAttribute */ /* [helpstring][hidden][oleautomation][dual][uuid][object][local] */ EXTERN_C const IID IID_IXMLAttribute; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("D4D4A0FC-3B73-11d1-B2B4-00C04FB92596") IXMLAttribute : public IDispatch { public: virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_name( /* [out][retval] */ BSTR *n) = 0; virtual /* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE get_value( /* [out][retval] */ BSTR *v) = 0; }; #else /* C style interface */ typedef struct IXMLAttributeVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLAttribute * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLAttribute * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLAttribute * This); HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( IXMLAttribute * This, /* [out] */ UINT *pctinfo); HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( IXMLAttribute * This, /* [in] */ UINT iTInfo, /* [in] */ LCID lcid, /* [out] */ ITypeInfo **ppTInfo); HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( IXMLAttribute * This, /* [in] */ REFIID riid, /* [size_is][in] */ LPOLESTR *rgszNames, /* [range][in] */ UINT cNames, /* [in] */ LCID lcid, /* [size_is][out] */ DISPID *rgDispId); /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( IXMLAttribute * This, /* [annotation][in] */ _In_ DISPID dispIdMember, /* [annotation][in] */ _In_ REFIID riid, /* [annotation][in] */ _In_ LCID lcid, /* [annotation][in] */ _In_ WORD wFlags, /* [annotation][out][in] */ _In_ DISPPARAMS *pDispParams, /* [annotation][out] */ _Out_opt_ VARIANT *pVarResult, /* [annotation][out] */ _Out_opt_ EXCEPINFO *pExcepInfo, /* [annotation][out] */ _Out_opt_ UINT *puArgErr); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_name )( IXMLAttribute * This, /* [out][retval] */ BSTR *n); /* [helpstring][id][propget] */ HRESULT ( STDMETHODCALLTYPE *get_value )( IXMLAttribute * This, /* [out][retval] */ BSTR *v); END_INTERFACE } IXMLAttributeVtbl; interface IXMLAttribute { CONST_VTBL struct IXMLAttributeVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLAttribute_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLAttribute_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLAttribute_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLAttribute_GetTypeInfoCount(This,pctinfo) \ ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) #define IXMLAttribute_GetTypeInfo(This,iTInfo,lcid,ppTInfo) \ ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) #define IXMLAttribute_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) \ ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) #define IXMLAttribute_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) \ ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) #define IXMLAttribute_get_name(This,n) \ ( (This)->lpVtbl -> get_name(This,n) ) #define IXMLAttribute_get_value(This,v) \ ( (This)->lpVtbl -> get_value(This,v) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLAttribute_INTERFACE_DEFINED__ */ #ifndef __IXMLError_INTERFACE_DEFINED__ #define __IXMLError_INTERFACE_DEFINED__ /* interface IXMLError */ /* [helpstring][hidden][uuid][object][local] */ EXTERN_C const IID IID_IXMLError; #if defined(__cplusplus) && !defined(CINTERFACE) MIDL_INTERFACE("948C5AD3-C58D-11d0-9C0B-00C04FC99C8E") IXMLError : public IUnknown { public: virtual HRESULT STDMETHODCALLTYPE GetErrorInfo( XML_ERROR *pErrorReturn) = 0; }; #else /* C style interface */ typedef struct IXMLErrorVtbl { BEGIN_INTERFACE HRESULT ( STDMETHODCALLTYPE *QueryInterface )( IXMLError * This, /* [in] */ REFIID riid, /* [annotation][iid_is][out] */ _COM_Outptr_ void **ppvObject); ULONG ( STDMETHODCALLTYPE *AddRef )( IXMLError * This); ULONG ( STDMETHODCALLTYPE *Release )( IXMLError * This); HRESULT ( STDMETHODCALLTYPE *GetErrorInfo )( IXMLError * This, XML_ERROR *pErrorReturn); END_INTERFACE } IXMLErrorVtbl; interface IXMLError { CONST_VTBL struct IXMLErrorVtbl *lpVtbl; }; #ifdef COBJMACROS #define IXMLError_QueryInterface(This,riid,ppvObject) \ ( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) ) #define IXMLError_AddRef(This) \ ( (This)->lpVtbl -> AddRef(This) ) #define IXMLError_Release(This) \ ( (This)->lpVtbl -> Release(This) ) #define IXMLError_GetErrorInfo(This,pErrorReturn) \ ( (This)->lpVtbl -> GetErrorInfo(This,pErrorReturn) ) #endif /* COBJMACROS */ #endif /* C style interface */ #endif /* __IXMLError_INTERFACE_DEFINED__ */ EXTERN_C const CLSID CLSID_XMLDocument; #ifdef __cplusplus class DECLSPEC_UUID("CFC399AF-D876-11d0-9C10-00C04FC99C8E") XMLDocument; #endif #endif /* __MSXML_LIBRARY_DEFINED__ */ /* interface __MIDL_itf_msxml_0000_0001 */ /* [local] */ #endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */ #pragma endregion #if _MSC_VER >= 1200 #pragma warning(pop) #endif extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0001_v0_0_c_ifspec; extern RPC_IF_HANDLE __MIDL_itf_msxml_0000_0001_v0_0_s_ifspec; /* Additional Prototypes for ALL interfaces */ /* end of Additional Prototypes */ #ifdef __cplusplus } #endif #endif #pragma option pop /*P_O_Pop*/
b0902fe63be6998660ea4d804788d2c182745313
55e9ce5e1910f3ef48bba3ebdebe4e3a143ca9d3
/server/world/proc_logic2world_robot.cpp
7edf3c8dfd480c2399d0e4003549b7d844d103f2
[]
no_license
commshare/2017_uLua_server
b7422802fb76c85f755326d207bdb30595947c18
a85a1af2165e96787bce23fbf8a569f1ec0ac28a
refs/heads/master
2020-04-10T03:03:57.797396
2017-05-28T11:55:34
2017-05-28T11:55:34
null
0
0
null
null
null
null
GB18030
C++
false
false
871
cpp
#include "stdafx.h" #include "proc_logic2world_robot.h" #include "game_player_mgr.h" #include "game_player.h" #include "global_sys_mgr.h" #include "robots_sys.h" using namespace boost; void initLogic2WorldRobot() { packetl2w_request_robot_factory::regedit_factory(); } // 请求机器人 bool packetl2w_request_robot_factory::packet_process(shared_ptr<world_peer> peer, shared_ptr<packetl2w_request_robot> msg) { __ENTER_FUNCTION_CHECK; auto robot = GLOBAL_SYS(RobotsSys)->request_robot(msg->needgold(), msg->needvip()); //获取到机器人直接进入游戏 if(robot != nullptr) { if(!robot->join_game(msg->gameid(), peer->get_remote_id())) { robot->resetGameIdServerId(); robot->player_logout(); } } else { SLOG_ERROR << "request_robot is null, gameid:"<<msg->gameid(); } __LEAVE_FUNCTION_CHECK return !EX_CHECK; }
fb82e943e7cffd2a064c08122aebba8c62fb1fb8
c9cf0586ace11aa32fa67606d237a130a06364ee
/circular-cylinder-2-40/19.65/p
12e483c0d7a67a9aaac5f43434033f58cf058953
[]
no_license
jezvonek/CFD-Final-Project
c74cfa21f22545c27d97d85cf30eb6dc8c824dc1
7c9a7fb032d74f20888effa0a0b75b212bf899f4
refs/heads/master
2022-07-05T14:43:52.967657
2020-05-14T03:40:56
2020-05-14T03:40:56
262,370,756
1
1
null
null
null
null
UTF-8
C++
false
false
89,813
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6.0 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "19.65"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField nonuniform List<scalar> 9600 ( -172.676 -152.185 -137.355 -125.027 -113.756 -103.599 -94.5204 -86.4004 -79.1318 -72.618 -66.7695 -61.5054 -56.7541 -52.4534 -48.5493 -44.9953 -41.7515 -38.7814 -36.0517 -33.5588 -174.031 -153.499 -138.588 -126.165 -114.804 -104.569 -95.4218 -87.2441 -79.9263 -73.3702 -67.4847 -62.1878 -57.4071 -53.0797 -49.1512 -45.5747 -42.31 -39.3199 -36.5705 -34.0627 -175.381 -154.79 -139.795 -127.28 -115.831 -105.518 -96.3048 -88.0709 -80.7052 -74.1078 -68.1864 -62.8575 -58.048 -53.6945 -49.7419 -46.1433 -42.8579 -39.8478 -37.0785 -34.5562 -176.718 -156.06 -140.978 -128.371 -116.835 -106.446 -97.1682 -88.8795 -81.4672 -74.8298 -68.8733 -63.5133 -58.6759 -54.2968 -50.3208 -46.7003 -43.3946 -40.3647 -37.5758 -35.0396 -178.035 -157.307 -142.135 -129.436 -117.815 -107.352 -98.0104 -89.6684 -82.2109 -75.5346 -69.5442 -64.1542 -59.2896 -54.8858 -50.8871 -47.2455 -43.92 -40.8707 -38.0626 -35.5135 -179.328 -158.529 -143.266 -130.475 -118.77 -108.233 -98.8299 -90.436 -82.9348 -76.221 -70.1979 -64.7789 -59.8884 -55.4609 -51.4402 -47.7785 -44.4339 -41.3658 -38.5394 -35.9787 -180.593 -159.722 -144.367 -131.484 -119.696 -109.088 -99.6247 -91.1807 -83.6372 -76.8874 -70.833 -65.3864 -60.471 -56.021 -51.9797 -48.2988 -44.9363 -41.8504 -39.0068 -36.4362 -181.825 -160.883 -145.437 -132.463 -120.593 -109.915 -100.393 -91.9006 -84.3165 -77.5321 -71.4479 -65.975 -61.0362 -56.5651 -52.5046 -48.8061 -45.427 -42.3248 -39.4655 -36.8871 -183.023 -162.009 -146.473 -133.409 -121.458 -110.712 -101.133 -92.5938 -84.9707 -78.1533 -72.0408 -66.5432 -61.5826 -57.0919 -53.0138 -49.2994 -45.9056 -42.7887 -39.9159 -37.3326 -184.183 -163.099 -147.473 -134.32 -122.29 -111.477 -101.843 -93.2584 -85.5977 -78.7489 -72.6096 -67.0889 -62.1081 -57.5997 -53.5058 -49.7773 -46.3708 -43.2415 -40.3578 -37.7729 -185.305 -164.149 -148.435 -135.194 -123.087 -112.208 -102.521 -93.892 -86.1952 -79.3165 -73.152 -67.6098 -62.6106 -58.0862 -53.9786 -50.2383 -46.8213 -43.6819 -40.7901 -38.2068 -186.387 -165.16 -149.358 -136.03 -123.846 -112.903 -103.164 -94.4923 -86.7608 -79.8533 -73.6649 -68.1027 -63.0868 -58.5486 -54.4296 -50.6802 -47.2555 -44.1089 -41.2119 -38.6327 -187.428 -166.129 -150.239 -136.826 -124.566 -113.56 -103.77 -95.0571 -87.2918 -80.3564 -74.1449 -68.5638 -63.5326 -58.9823 -54.8544 -51.0989 -47.6704 -44.5206 -41.6225 -39.0521 -188.427 -167.055 -151.079 -137.581 -125.246 -114.179 -104.338 -95.5844 -87.7857 -80.823 -74.5888 -68.9892 -63.9431 -59.3816 -55.246 -51.4867 -48.0578 -44.9096 -42.0178 -39.4684 -189.384 -167.938 -151.875 -138.294 -125.886 -114.757 -104.866 -96.0719 -88.24 -81.2499 -74.9932 -69.3751 -64.3143 -59.7415 -55.5982 -51.8351 -48.4062 -45.2623 -42.385 -39.8719 -190.301 -168.777 -152.628 -138.964 -126.483 -115.293 -105.352 -96.5173 -88.6518 -81.6337 -75.3539 -69.717 -64.6416 -60.0582 -55.9081 -52.1416 -48.7129 -45.573 -42.7104 -40.2262 -191.19 -169.579 -153.338 -139.59 -127.036 -115.785 -105.795 -96.9186 -89.0183 -81.9704 -75.6651 -70.0072 -64.9156 -60.3217 -56.1677 -52.4047 -48.9853 -45.8566 -43.0038 -40.5224 -192.067 -170.351 -154.007 -140.172 -127.546 -116.235 -106.195 -97.2767 -89.3397 -82.2588 -75.9233 -70.2379 -65.1224 -60.5103 -56.3476 -52.5897 -49.1904 -46.0918 -43.2787 -40.869 -192.93 -171.093 -154.636 -140.713 -128.016 -116.647 -106.558 -97.5971 -89.6214 -82.5038 -76.1322 -70.4104 -65.2576 -60.6081 -56.4105 -52.6241 -49.2078 -46.1213 -43.4114 -41.2922 -193.705 -171.781 -155.226 -141.22 -128.455 -117.03 -106.893 -97.8889 -89.8732 -82.7166 -76.305 -70.5404 -65.3399 -60.6349 -56.3694 -52.4952 -48.9668 -45.773 -43.057 -41.078 -200.452 -200.431 -200.333 -200.207 -200.058 -199.878 -199.663 -199.412 -199.128 -198.813 -198.469 -198.097 -197.697 -197.272 -196.822 -196.348 -195.854 -195.341 -194.815 -194.28 -177.58 -177.615 -177.597 -177.541 -177.453 -177.329 -177.168 -176.971 -176.741 -176.479 -176.188 -175.868 -175.521 -175.148 -174.75 -174.327 -173.881 -173.411 -172.916 -172.381 -159.968 -160.049 -160.087 -160.085 -160.045 -159.968 -159.855 -159.708 -159.53 -159.321 -159.084 -158.82 -158.53 -158.215 -157.876 -157.513 -157.124 -156.709 -156.261 -155.77 -145.1 -145.2 -145.264 -145.29 -145.277 -145.229 -145.148 -145.036 -144.895 -144.726 -144.531 -144.312 -144.068 -143.803 -143.515 -143.204 -142.87 -142.509 -142.118 -141.69 -131.733 -131.834 -131.903 -131.937 -131.936 -131.903 -131.839 -131.746 -131.627 -131.483 -131.316 -131.127 -130.917 -130.688 -130.439 -130.17 -129.881 -129.569 -129.231 -128.862 -119.918 -120.01 -120.073 -120.105 -120.105 -120.075 -120.016 -119.932 -119.824 -119.693 -119.542 -119.372 -119.184 -118.979 -118.759 -118.522 -118.269 -117.997 -117.704 -117.384 -109.531 -109.61 -109.663 -109.687 -109.681 -109.648 -109.588 -109.505 -109.4 -109.275 -109.132 -108.972 -108.797 -108.61 -108.41 -108.198 -107.973 -107.735 -107.479 -107.201 -100.36 -100.425 -100.465 -100.479 -100.466 -100.426 -100.362 -100.276 -100.17 -100.046 -99.906 -99.7516 -99.5853 -99.4086 -99.2235 -99.0306 -98.8296 -98.6192 -98.3961 -98.1553 -92.22 -92.2721 -92.3004 -92.3036 -92.281 -92.2339 -92.1643 -92.0742 -91.9653 -91.8397 -91.6997 -91.5476 -91.3858 -91.2168 -91.0428 -90.8653 -90.6844 -90.4992 -90.3064 -90.1008 -84.9597 -84.9996 -85.0167 -85.0099 -84.9787 -84.9244 -84.8487 -84.7535 -84.6408 -84.5124 -84.3711 -84.2192 -84.0597 -83.8957 -83.7301 -83.5652 -83.4021 -83.2404 -83.0769 -82.9058 -78.4525 -78.4817 -78.4888 -78.4729 -78.4339 -78.3728 -78.2913 -78.1911 -78.0741 -77.9424 -77.7985 -77.6454 -77.4863 -77.3251 -77.1656 -77.011 -76.8638 -76.7245 -76.5903 -76.4546 -72.5948 -72.6144 -72.6127 -72.5889 -72.5429 -72.4757 -72.3888 -72.2838 -72.1625 -72.0269 -71.8799 -71.7242 -71.5639 -71.4033 -71.2475 -71.1007 -70.9677 -70.8497 -70.7454 -70.6472 -67.3013 -67.3126 -67.3032 -67.2724 -67.2203 -67.1476 -67.0558 -66.9463 -66.8207 -66.6811 -66.53 -66.3706 -66.2075 -66.0452 -65.8904 -65.7485 -65.6272 -65.5293 -65.4563 -65.3989 -62.5016 -62.5056 -62.4895 -62.4526 -62.395 -62.3176 -62.2214 -62.1076 -61.9779 -61.8339 -61.6784 -61.5143 -61.3466 -61.18 -61.023 -60.8822 -60.7697 -60.6895 -60.6494 -60.6377 -58.1367 -58.1344 -58.1123 -58.0701 -58.0078 -57.9262 -57.8261 -57.7085 -57.5748 -57.4264 -57.266 -57.0961 -56.9221 -56.7485 -56.586 -56.4415 -56.3337 -56.2669 -56.2615 -56.3008 -54.1573 -54.1491 -54.1217 -54.0748 -54.0084 -53.9232 -53.8196 -53.6986 -53.5611 -53.4084 -53.2426 -53.0662 -52.8843 -52.7008 -52.5286 -52.3742 -52.2658 -52.2058 -52.2364 -52.3294 -50.5214 -50.5079 -50.4757 -50.4245 -50.3545 -50.2659 -50.1592 -50.0349 -49.8938 -49.7366 -49.5653 -49.3815 -49.19 -48.9935 -48.8065 -48.6341 -48.5164 -48.454 -48.5243 -48.6671 -47.1909 -47.1733 -47.1373 -47.0831 -47.0105 -46.9197 -46.8107 -46.6839 -46.5396 -46.3785 -46.2017 -46.0104 -45.8082 -45.5968 -45.3895 -45.1895 -45.0474 -44.9663 -45.0863 -45.2895 -44.1302 -44.1106 -44.0734 -44.0189 -43.9468 -43.8568 -43.7488 -43.623 -43.4792 -43.318 -43.1395 -42.9449 -42.7356 -42.5127 -42.2855 -42.0542 -41.869 -41.738 -41.8934 -42.2353 -41.3253 -41.299 -41.2571 -41.1999 -41.127 -41.0376 -40.9314 -40.8081 -40.6675 -40.5097 -40.3342 -40.1418 -39.9316 -39.705 -39.4636 -39.2077 -38.9631 -38.7415 -38.7848 -39.2918 -188.426 -189.507 -190.492 -191.454 -192.398 -193.304 -194.16 -194.961 -195.708 -196.398 -197.033 -197.61 -198.131 -198.596 -199.005 -199.362 -199.668 -199.927 -200.144 -200.324 -165.335 -166.415 -167.437 -168.424 -169.376 -170.285 -171.142 -171.946 -172.696 -173.392 -174.035 -174.623 -175.157 -175.638 -176.067 -176.445 -176.773 -177.053 -177.286 -177.466 -147.895 -148.946 -149.957 -150.927 -151.853 -152.732 -153.562 -154.342 -155.072 -155.752 -156.382 -156.962 -157.492 -157.972 -158.403 -158.787 -159.123 -159.411 -159.651 -159.838 -133.573 -134.569 -135.532 -136.454 -137.33 -138.161 -138.945 -139.684 -140.376 -141.022 -141.621 -142.173 -142.68 -143.14 -143.556 -143.926 -144.252 -144.534 -144.77 -144.959 -120.957 -121.889 -122.791 -123.654 -124.474 -125.25 -125.982 -126.671 -127.316 -127.917 -128.475 -128.99 -129.461 -129.891 -130.278 -130.624 -130.929 -131.192 -131.415 -131.596 -109.953 -110.823 -111.665 -112.471 -113.235 -113.956 -114.635 -115.273 -115.869 -116.423 -116.936 -117.409 -117.842 -118.236 -118.591 -118.907 -119.185 -119.425 -119.628 -119.793 -100.352 -101.168 -101.956 -102.708 -103.42 -104.09 -104.719 -105.308 -105.856 -106.365 -106.836 -107.268 -107.663 -108.021 -108.343 -108.629 -108.879 -109.095 -109.275 -109.421 -91.9041 -92.6732 -93.4139 -94.119 -94.7838 -95.4072 -95.9901 -96.5336 -97.0385 -97.5058 -97.9362 -98.3307 -98.6902 -99.0151 -99.3061 -99.5637 -99.7881 -99.9799 -100.139 -100.266 -84.4143 -85.1438 -85.8439 -86.5075 -87.1301 -87.7114 -88.2526 -88.7552 -89.2204 -89.6496 -90.0438 -90.4041 -90.7314 -91.0263 -91.2895 -91.5213 -91.7221 -91.8923 -92.032 -92.1415 -77.7326 -78.4294 -79.0949 -79.722 -80.307 -80.85 -81.3533 -81.8186 -82.2478 -82.6424 -83.0038 -83.3333 -83.6318 -83.9 -84.1385 -84.3475 -84.5273 -84.6784 -84.8008 -84.8948 -71.7408 -72.4112 -73.0476 -73.6426 -74.1932 -74.7013 -75.1695 -75.6006 -75.9967 -76.3598 -76.6915 -76.9933 -77.2661 -77.5106 -77.7271 -77.9161 -78.0776 -78.2119 -78.3192 -78.3996 -66.3448 -66.9948 -67.607 -68.1731 -68.6919 -69.1671 -69.6027 -70.0019 -70.3673 -70.7013 -71.006 -71.2827 -71.5325 -71.7558 -71.9531 -72.1244 -72.2699 -72.3897 -72.4837 -72.5522 -61.4686 -62.1041 -62.6963 -63.2358 -63.7242 -64.1681 -64.5726 -64.9415 -65.278 -65.5851 -65.865 -66.119 -66.348 -66.5525 -66.7327 -66.8886 -67.0201 -67.1271 -67.2097 -67.2679 -57.0512 -57.678 -58.2529 -58.7663 -59.2249 -59.6385 -60.013 -60.3527 -60.6618 -60.9436 -61.2005 -61.4337 -61.6441 -61.8319 -61.997 -62.1393 -62.2585 -62.3545 -62.427 -62.4762 -53.0436 -53.6694 -54.227 -54.712 -55.1402 -55.5238 -55.8685 -56.1796 -56.4623 -56.7204 -56.956 -57.1702 -57.3637 -57.5365 -57.6883 -57.8186 -57.9271 -58.0134 -58.0772 -58.1184 -49.3995 -50.0398 -50.5794 -51.0302 -51.4259 -51.779 -52.0933 -52.3759 -52.6332 -52.8687 -53.0843 -53.281 -53.4592 -53.6186 -53.7586 -53.8784 -53.9774 -54.0551 -54.1112 -54.1453 -46.0597 -46.739 -47.266 -47.6789 -48.0397 -48.3609 -48.6442 -48.8987 -49.1315 -49.3459 -49.5431 -49.7241 -49.8888 -50.0365 -50.1662 -50.2769 -50.3678 -50.4381 -50.4873 -50.5152 -42.9857 -43.6949 -44.2174 -44.6014 -44.9278 -45.2149 -45.4677 -45.6963 -45.9072 -46.1028 -46.2845 -46.4528 -46.607 -46.7457 -46.8678 -46.9718 -47.0568 -47.1218 -47.166 -47.1891 -40.3344 -40.927 -41.3957 -41.7767 -42.0742 -42.3178 -42.5378 -42.7426 -42.9323 -43.1095 -43.2768 -43.434 -43.5794 -43.7109 -43.8271 -43.9264 -44.0075 -44.0691 -44.1104 -44.1308 -38.566 -38.8218 -38.992 -39.3794 -39.6603 -39.8302 -39.9944 -40.1646 -40.3223 -40.4681 -40.6085 -40.7435 -40.8696 -40.9838 -41.0845 -41.1701 -41.2391 -41.2901 -41.3219 -41.3337 -27.1598 -29.4142 -31.8998 -34.5989 -37.5392 -40.7536 -44.2744 -48.1384 -52.3892 -57.0785 -62.2683 -68.0348 -74.4743 -81.7122 -89.9209 -99.3399 -110.207 -122.713 -138.479 -160.377 -27.6364 -29.9145 -32.4162 -35.1345 -38.0973 -41.3365 -44.8846 -48.7787 -53.063 -57.7897 -63.0216 -68.8357 -75.3295 -82.6299 -90.9108 -100.413 -111.374 -123.977 -139.828 -161.782 -28.1173 -30.4182 -32.9359 -35.6738 -38.6597 -41.9243 -45.5002 -49.4252 -53.7437 -58.5086 -63.7833 -69.6459 -76.195 -83.5587 -91.9126 -101.499 -112.552 -125.25 -141.177 -163.166 -28.6017 -30.9245 -33.4577 -36.2156 -39.2249 -42.5153 -46.1196 -50.0758 -54.4291 -59.2328 -64.5509 -70.4626 -77.0675 -84.4951 -92.9221 -102.592 -113.738 -126.532 -142.54 -164.573 -29.0883 -31.4319 -33.9805 -36.7587 -39.7917 -43.1083 -46.7413 -50.7293 -55.1177 -59.9605 -65.3225 -71.2836 -77.9447 -85.4365 -93.9368 -103.69 -114.929 -127.821 -143.918 -166.003 -29.5756 -31.9392 -34.5033 -37.3022 -40.3595 -43.7026 -47.3647 -51.3848 -55.8089 -60.6912 -66.0974 -72.1083 -78.8258 -86.382 -94.9559 -104.792 -116.125 -129.115 -145.303 -167.446 -30.0622 -32.4452 -35.0249 -37.8452 -40.9274 -44.2976 -47.9894 -52.0421 -56.5022 -61.4245 -66.8752 -72.9362 -79.7105 -87.3313 -95.9792 -105.9 -117.325 -130.413 -146.691 -168.893 -30.5473 -32.949 -35.5447 -38.3872 -41.4949 -44.8928 -48.6148 -52.7006 -57.1972 -62.1598 -67.6554 -73.7668 -80.598 -88.2838 -97.0058 -107.01 -118.528 -131.714 -148.08 -170.342 -31.0299 -33.45 -36.062 -38.9277 -42.0617 -45.488 -49.2407 -53.3602 -57.8936 -62.8968 -68.4376 -74.5994 -81.4878 -89.2386 -98.0346 -108.123 -119.733 -133.015 -149.469 -171.79 -31.51 -33.948 -36.5769 -39.4666 -42.6279 -46.0832 -49.8672 -54.0207 -58.5912 -63.6353 -69.2213 -75.4337 -82.3791 -90.1947 -99.0646 -109.236 -120.939 -134.315 -150.856 -173.235 -31.9869 -34.4428 -37.0894 -40.0046 -43.194 -46.6791 -50.4948 -54.6825 -59.2903 -64.3751 -70.0062 -76.2689 -83.2711 -91.1511 -100.095 -110.349 -122.143 -135.613 -152.24 -174.676 -32.4617 -34.9354 -37.6007 -40.5424 -43.761 -47.2764 -51.1241 -55.3462 -59.9911 -65.1164 -70.7921 -77.1046 -84.163 -92.107 -101.123 -111.46 -123.344 -136.907 -153.618 -176.11 -32.935 -35.4276 -38.113 -41.0829 -44.3314 -47.8773 -51.7569 -56.0129 -60.6943 -65.8593 -71.5788 -77.9403 -85.054 -93.061 -102.149 -112.567 -124.54 -138.195 -154.987 -177.535 -33.41 -35.9221 -38.6288 -41.6279 -44.907 -48.4834 -52.3944 -56.6835 -61.4003 -66.6039 -72.3659 -78.7751 -85.9429 -94.0116 -103.171 -113.669 -125.729 -139.474 -156.347 -178.948 -33.8917 -36.4269 -39.1568 -42.1856 -45.4942 -49.0993 -53.0396 -57.3597 -62.1099 -67.3501 -73.1528 -79.608 -86.8282 -94.9572 -104.185 -114.762 -126.91 -140.743 -157.695 -180.347 -34.3879 -36.9469 -39.6997 -42.7575 -46.0941 -49.7258 -53.6932 -58.0419 -62.8229 -68.0971 -73.9383 -80.4373 -87.708 -95.8955 -105.191 -115.845 -128.078 -141.998 -159.029 -181.732 -34.9247 -37.5134 -40.2838 -43.3617 -46.718 -50.3697 -54.3585 -58.7308 -63.5387 -68.8436 -74.7203 -81.2607 -88.5797 -96.8236 -106.185 -116.914 -129.23 -143.238 -160.347 -183.101 -35.5167 -38.1246 -40.8989 -43.9881 -47.3597 -51.0273 -55.0327 -59.424 -64.2545 -69.5867 -75.496 -82.075 -89.44 -97.7381 -107.163 -117.965 -130.362 -144.456 -161.646 -184.456 -36.2847 -38.8709 -41.5916 -44.6622 -48.0324 -51.7025 -55.7144 -60.1177 -64.9661 -70.3219 -76.2607 -82.8759 -90.2845 -98.6348 -108.121 -118.993 -131.468 -145.646 -162.923 -185.799 -37.2217 -39.6129 -42.262 -45.3399 -48.714 -52.38 -56.3921 -60.8033 -65.6663 -71.043 -77.009 -83.6582 -91.1084 -99.5086 -109.054 -119.993 -132.541 -146.798 -164.162 -187.133 -19.9475 -21.2848 -23.1942 -25.4771 -28.007 -30.7847 -33.8421 -37.2093 -40.9187 -45.0094 -49.5289 -54.5354 -60.102 -66.3241 -73.3384 -81.3461 -90.5587 -101.196 -115.049 -135.44 -20.4518 -21.9144 -23.8742 -26.1213 -28.601 -31.3431 -34.3792 -37.735 -41.4403 -45.5332 -50.0606 -55.0806 -60.6667 -66.9155 -73.9651 -82.0194 -91.291 -101.996 -115.914 -136.354 -20.5308 -22.23 -24.3024 -26.5922 -29.092 -31.8463 -34.8901 -38.2518 -41.9643 -46.0672 -50.6086 -55.6471 -61.2572 -67.5366 -74.6252 -82.7291 -92.0623 -102.835 -116.81 -137.271 -20.7233 -22.5047 -24.6323 -26.9687 -29.5095 -32.2973 -35.3668 -38.7494 -42.4807 -46.6027 -51.1649 -56.2275 -61.8663 -68.1804 -75.3116 -83.4679 -92.8656 -103.713 -117.756 -138.256 -20.9956 -22.803 -24.9642 -27.3346 -29.9089 -32.7279 -35.8257 -39.2345 -42.9909 -47.138 -51.7266 -56.8182 -62.4899 -68.8428 -76.02 -84.2321 -93.6978 -104.626 -118.752 -139.31 -21.2559 -23.1044 -25.3034 -27.7049 -30.3082 -33.1555 -36.2809 -39.7169 -43.5008 -47.6763 -52.2948 -57.419 -63.1274 -69.5225 -76.7496 -85.0212 -94.5586 -105.572 -119.789 -140.414 -21.5098 -23.4067 -25.6424 -28.0745 -30.7074 -33.5836 -36.7375 -40.202 -44.015 -48.2208 -52.8717 -58.0312 -63.7792 -70.2197 -77.4999 -85.8346 -95.4471 -106.548 -120.858 -141.556 -21.7869 -23.723 -25.9884 -28.4483 -31.1099 -34.0153 -37.1984 -40.6924 -44.5359 -48.7736 -53.4588 -58.6559 -64.4458 -70.9344 -78.2708 -86.6716 -96.3621 -107.553 -121.959 -142.731 -22.0945 -24.0612 -26.3507 -28.8348 -31.5227 -34.4558 -37.6675 -41.1912 -45.0657 -49.3365 -54.0574 -59.2937 -65.1277 -71.6667 -79.0616 -87.5313 -97.3026 -108.586 -123.089 -143.938 -22.4273 -24.4215 -26.7324 -29.2381 -31.9501 -34.909 -38.1482 -41.7011 -45.6067 -49.9111 -54.6687 -59.9456 -65.8252 -72.4164 -79.8721 -88.413 -98.2675 -109.646 -124.247 -145.175 -22.7815 -24.8024 -27.1329 -29.6586 -32.3931 -35.3768 -38.6425 -42.2239 -46.1606 -50.4988 -55.2936 -60.612 -66.5386 -73.1836 -80.7019 -89.3161 -99.256 -110.731 -125.432 -146.439 -23.1565 -25.2032 -27.5517 -30.096 -32.852 -35.8594 -39.1511 -42.7607 -46.7282 -51.1003 -55.9328 -61.2935 -67.268 -73.9683 -81.5508 -90.2401 -100.267 -111.84 -126.642 -147.73 -23.5516 -25.6228 -27.9878 -30.5497 -33.3264 -36.357 -39.674 -43.3115 -47.3097 -51.7159 -56.5864 -61.9901 -68.0135 -74.7701 -82.4182 -91.1844 -101.301 -112.973 -127.876 -149.044 -23.965 -26.0596 -28.4402 -31.0189 -33.8157 -36.8689 -40.2109 -43.876 -47.905 -52.3454 -57.2544 -62.7015 -68.7747 -75.5887 -83.3037 -92.1481 -102.355 -114.128 -129.133 -150.382 -24.3941 -26.5116 -28.907 -31.5022 -34.3187 -37.3942 -40.7611 -44.4539 -48.5135 -52.9885 -57.9362 -63.4274 -69.551 -76.4234 -84.2065 -93.1305 -103.429 -115.305 -130.413 -151.742 -24.8361 -26.9762 -29.3862 -31.9977 -34.834 -37.9319 -41.3236 -45.044 -49.1346 -53.6443 -58.6313 -64.167 -70.3418 -77.2735 -85.1257 -94.1304 -104.523 -116.502 -131.714 -153.123 -25.2887 -27.4513 -29.8758 -32.5038 -35.3599 -38.4803 -41.897 -45.6454 -49.7672 -54.312 -59.3386 -64.9195 -71.1462 -78.1379 -86.0601 -95.1467 -105.633 -117.718 -133.036 -154.527 -25.7495 -27.9345 -30.3737 -33.0186 -35.8949 -39.0381 -42.4802 -46.2568 -50.4103 -54.9905 -60.0572 -65.6838 -71.963 -79.0155 -87.0087 -96.1778 -106.76 -118.952 -134.379 -155.953 -26.2161 -28.4238 -30.878 -33.5403 -36.4374 -39.6039 -43.0717 -46.877 -51.0625 -55.6787 -60.786 -66.4588 -72.7911 -79.9051 -87.9697 -97.2221 -107.9 -120.199 -135.74 -157.406 -26.6867 -28.9175 -31.3872 -34.0676 -36.9861 -40.1763 -43.6704 -47.5048 -51.7227 -56.3753 -61.5237 -67.2432 -73.629 -80.8049 -88.9417 -98.2775 -109.05 -121.456 -137.112 -158.886 -18.221 -17.4071 -16.9731 -16.7068 -16.5131 -16.3557 -16.232 -16.1325 -16.0581 -16.0056 -15.9755 -15.9666 -15.9792 -16.0128 -16.0678 -16.1439 -16.2416 -16.3609 -16.5023 -16.6659 -20.2787 -19.6044 -19.0855 -18.7635 -18.5252 -18.3444 -18.2032 -18.0926 -18.0102 -17.9524 -17.9186 -17.9076 -17.9192 -17.9528 -18.0085 -18.0862 -18.1859 -18.3077 -18.4517 -18.6182 -22.3948 -21.8246 -21.3237 -20.9753 -20.7051 -20.5016 -20.3426 -20.22 -20.1286 -20.0649 -20.0273 -20.0144 -20.0255 -20.0601 -20.1179 -20.1987 -20.3024 -20.4289 -20.5782 -20.7506 -24.7863 -24.243 -23.7645 -23.4015 -23.1083 -22.8821 -22.7033 -22.5652 -22.4615 -22.3886 -22.3442 -22.3265 -22.3347 -22.368 -22.4259 -22.5081 -22.6142 -22.7441 -22.8977 -23.0752 -27.3965 -26.8693 -26.4047 -26.032 -25.7235 -25.4786 -25.2824 -25.1295 -25.0135 -24.931 -24.8792 -24.8563 -24.861 -24.8925 -24.9501 -25.0333 -25.1416 -25.2748 -25.4325 -25.6152 -30.2266 -29.7184 -29.2652 -28.886 -28.5668 -28.3071 -28.0963 -27.93 -27.8026 -27.7109 -27.6519 -27.6239 -27.6253 -27.6552 -27.7126 -27.7971 -27.908 -28.0447 -28.2071 -28.3956 -33.3141 -32.8222 -32.3781 -31.9949 -31.6675 -31.3955 -31.172 -30.9936 -30.8556 -30.755 -30.6891 -30.6561 -30.6543 -30.6827 -30.7403 -30.8263 -30.9401 -31.081 -31.2488 -31.4438 -36.6976 -36.2164 -35.778 -35.3916 -35.0571 -34.7745 -34.5397 -34.3502 -34.2022 -34.0931 -34.0206 -33.9827 -33.978 -34.0051 -34.0632 -34.1513 -34.2686 -34.4143 -34.5883 -34.7909 -40.4144 -39.9385 -39.502 -39.112 -38.7705 -38.4783 -38.2331 -38.0332 -37.8758 -37.7587 -37.6798 -37.6374 -37.63 -37.6563 -37.7153 -37.8061 -37.9276 -38.079 -38.2602 -38.4715 -44.506 -44.0304 -43.592 -43.1969 -42.8479 -42.5462 -42.2909 -42.081 -41.9145 -41.7897 -41.7047 -41.6581 -41.6483 -41.6743 -41.7348 -41.8289 -41.9555 -42.1136 -42.3031 -42.5245 -49.0207 -48.5405 -48.0965 -47.6939 -47.3359 -47.024 -46.7584 -46.5383 -46.3627 -46.2302 -46.1392 -46.0885 -46.0767 -46.1026 -46.1652 -46.2634 -46.3959 -46.5618 -46.7609 -46.9939 -54.0167 -53.5268 -53.0728 -52.6596 -52.2903 -51.9667 -51.6895 -51.4585 -51.2732 -51.1324 -51.0351 -50.9801 -50.9663 -50.9924 -51.0574 -51.1602 -51.2995 -51.4741 -51.6841 -51.93 -59.5666 -59.0611 -58.5921 -58.164 -57.7799 -57.4418 -57.1508 -56.9071 -56.7105 -56.5603 -56.4557 -56.3957 -56.3791 -56.4051 -56.4725 -56.5801 -56.7265 -56.9106 -57.1323 -57.3926 -65.765 -65.2369 -64.7465 -64.2977 -63.8939 -63.537 -63.2285 -62.9689 -62.7582 -62.5962 -62.4821 -62.4151 -62.3944 -62.4189 -62.4877 -62.5995 -62.7528 -62.9464 -63.1802 -63.4554 -72.7465 -72.187 -71.6667 -71.1897 -70.7592 -70.3773 -70.0456 -69.765 -69.5356 -69.3575 -69.2302 -69.1529 -69.1249 -69.1454 -69.2133 -69.3274 -69.4863 -69.6883 -69.9333 -70.2226 -80.7102 -80.1083 -79.5476 -79.0322 -78.5653 -78.1495 -77.7864 -77.477 -77.222 -77.0212 -76.8745 -76.7813 -76.7409 -76.7525 -76.8152 -76.9278 -77.0887 -77.2961 -77.5494 -77.85 -89.8665 -89.2087 -88.5934 -88.0254 -87.5089 -87.0466 -86.6405 -86.2917 -86.0007 -85.7677 -85.5925 -85.4746 -85.4134 -85.4082 -85.458 -85.5618 -85.718 -85.9244 -86.1802 -86.4865 -100.434 -99.7012 -99.011 -98.372 -97.789 -97.2652 -96.8019 -96.4001 -96.0601 -95.7821 -95.566 -95.4113 -95.3176 -95.284 -95.3095 -95.3931 -95.5339 -95.731 -95.983 -96.2884 -114.186 -113.348 -112.559 -111.831 -111.168 -110.569 -110.036 -109.569 -109.168 -108.833 -108.564 -108.36 -108.222 -108.148 -108.138 -108.19 -108.306 -108.49 -108.738 -109.037 -134.421 -133.453 -132.566 -131.756 -131.018 -130.35 -129.752 -129.223 -128.763 -128.372 -128.051 -127.8 -127.618 -127.504 -127.459 -127.481 -127.577 -127.752 -128.005 -128.296 -16.8509 -17.056 -17.2813 -17.5268 -17.7926 -18.0788 -18.3855 -18.7124 -19.059 -19.4247 -19.8088 -20.2086 -20.6183 -21.0316 -21.4483 -21.859 -22.2099 -22.4683 -22.746 -23.0109 -18.8066 -19.0157 -19.2455 -19.4957 -19.7665 -20.0577 -20.3692 -20.7005 -21.051 -21.4199 -21.8054 -22.2051 -22.6142 -23.0269 -23.4374 -23.8377 -24.2088 -24.5164 -24.7344 -24.9419 -20.9456 -21.1619 -21.3996 -21.6582 -21.9378 -22.238 -22.5585 -22.8987 -23.2578 -23.6346 -24.0273 -24.4328 -24.8473 -25.2656 -25.6811 -26.0858 -26.4714 -26.8195 -27.098 -27.3503 -23.2763 -23.4994 -23.7445 -24.0114 -24.2996 -24.6087 -24.9384 -25.2877 -25.6558 -26.0412 -26.4419 -26.8549 -27.2764 -27.7017 -28.1249 -28.5389 -28.9371 -29.31 -29.6468 -29.975 -25.8224 -26.0524 -26.3052 -26.5803 -26.8774 -27.1958 -27.535 -27.894 -28.2717 -28.6665 -29.0763 -29.4982 -29.9287 -30.3635 -30.7975 -31.2249 -31.6398 -32.0362 -32.416 -32.802 -28.6096 -28.8472 -29.1085 -29.3928 -29.6996 -30.0282 -30.378 -30.7479 -31.1365 -31.5424 -31.9632 -32.3963 -32.8384 -33.2856 -33.7339 -34.1786 -34.6148 -35.039 -35.4565 -35.8854 -31.6655 -31.9118 -32.1825 -32.4771 -32.7948 -33.1351 -33.4969 -33.8792 -34.2807 -34.6995 -35.1337 -35.5805 -36.0371 -36.5 -36.966 -37.4313 -37.8922 -38.3473 -38.8021 -39.2694 -35.0214 -35.2774 -35.5589 -35.8651 -36.1954 -36.5489 -36.9246 -37.3212 -37.7376 -38.1718 -38.6218 -39.0853 -39.5595 -40.0415 -40.5285 -41.0177 -41.5063 -41.9943 -42.4865 -42.9919 -38.7121 -38.9794 -39.2732 -39.5927 -39.9373 -40.3059 -40.6976 -41.111 -41.5447 -41.997 -42.4659 -42.9492 -43.4445 -43.9493 -44.4611 -44.9776 -45.4972 -46.0201 -46.5505 -47.095 -42.7767 -43.0569 -43.3648 -43.6997 -44.0607 -44.4468 -44.8569 -45.2897 -45.7437 -46.2173 -46.7085 -47.2154 -47.7356 -48.2671 -48.8077 -49.3557 -49.9097 -50.4703 -51.0407 -51.6266 -47.2594 -47.5543 -47.8783 -48.2307 -48.6105 -49.0167 -49.4481 -49.9033 -50.381 -50.8795 -51.3969 -51.9313 -52.4808 -53.0435 -53.6176 -54.2014 -54.794 -55.3957 -56.0094 -56.6398 -52.2106 -52.522 -52.8643 -53.2364 -53.6376 -54.0667 -54.5225 -55.0037 -55.5087 -56.036 -56.5839 -57.1504 -57.7339 -58.3327 -58.9452 -59.5699 -60.2058 -60.8531 -61.5142 -62.1935 -57.6896 -58.0193 -58.3816 -58.7758 -59.2009 -59.6557 -60.1391 -60.6496 -61.1858 -61.7461 -62.3288 -62.9323 -63.5549 -64.195 -64.8512 -65.5223 -66.2069 -66.9049 -67.6185 -68.3521 -63.7697 -64.1186 -64.5025 -64.9204 -65.3714 -65.8543 -66.368 -66.911 -67.482 -68.0792 -68.7012 -69.3463 -70.013 -70.6997 -71.4052 -72.1281 -72.8671 -73.6216 -74.3937 -75.1875 -70.5538 -70.9218 -71.3272 -71.7693 -72.2472 -72.7596 -73.3055 -73.8833 -74.4916 -75.1289 -75.7938 -76.4844 -77.1994 -77.9374 -78.6972 -79.4775 -80.2766 -81.0935 -81.9298 -82.7895 -78.1953 -78.5801 -79.0051 -79.4699 -79.9734 -80.5146 -81.0924 -81.7052 -82.3518 -83.0305 -83.7398 -84.4783 -85.2444 -86.0368 -86.8544 -87.696 -88.5597 -89.4436 -90.3487 -91.2787 -86.8407 -87.2367 -87.6756 -88.1574 -88.6815 -89.2471 -89.853 -90.4977 -91.1797 -91.8976 -92.6497 -93.4348 -94.2512 -95.0976 -95.9729 -96.8759 -97.8049 -98.7575 -99.7333 -100.736 -96.6424 -97.0377 -97.4781 -97.9655 -98.5 -99.0807 -99.706 -100.374 -101.084 -101.834 -102.621 -103.446 -104.306 -105.2 -106.127 -107.085 -108.074 -109.093 -110.142 -111.218 -109.368 -109.739 -110.161 -110.638 -111.168 -111.751 -112.382 -113.061 -113.785 -114.552 -115.362 -116.213 -117.103 -118.032 -118.997 -119.998 -121.039 -122.125 -123.254 -124.404 -128.559 -128.878 -129.27 -129.726 -130.242 -130.814 -131.439 -132.114 -132.838 -133.609 -134.426 -135.287 -136.193 -137.141 -138.132 -139.165 -140.249 -141.399 -142.612 -143.82 -144.914 -125.542 -112.316 -101.762 -92.2312 -83.6704 -76.0014 -69.1051 -62.8916 -57.2885 -52.2305 -47.6579 -43.5166 -39.7581 -36.3393 -33.2198 -30.3558 -27.7158 -25.3488 -23.2808 -146.04 -126.686 -113.424 -102.804 -93.1989 -84.5661 -76.8302 -69.8731 -63.6051 -57.9533 -52.8516 -48.2394 -44.0618 -40.2696 -36.8187 -33.6687 -30.7808 -28.1333 -25.76 -23.6242 -147.222 -127.854 -114.551 -103.865 -94.1849 -85.4792 -77.6761 -70.6583 -64.3363 -58.6366 -53.4924 -48.8423 -44.6307 -40.8078 -37.329 -34.1541 -31.246 -28.5796 -26.1714 -23.9854 -148.453 -129.056 -115.701 -104.945 -95.1898 -86.4104 -78.5395 -71.4612 -65.0856 -59.339 -54.1535 -49.4672 -45.2236 -41.3725 -37.8691 -34.6737 -31.7495 -29.0699 -26.6466 -24.4484 -149.725 -130.29 -116.875 -106.046 -96.2134 -87.3594 -79.4203 -72.2814 -65.8528 -60.06 -54.8344 -50.1131 -45.8392 -41.9619 -38.4361 -35.2217 -32.2821 -29.5899 -27.1531 -24.944 -151.032 -131.554 -118.073 -107.168 -97.2552 -88.3254 -80.3177 -73.1182 -66.637 -60.7986 -55.5336 -50.7785 -46.4754 -42.5731 -39.0261 -35.7943 -32.8409 -30.1386 -27.6918 -25.4721 -152.369 -132.845 -119.294 -108.308 -98.3139 -89.3073 -81.2304 -73.9703 -67.4366 -61.553 -56.2493 -51.4608 -47.1292 -43.2024 -39.6346 -36.3851 -33.4174 -30.7039 -28.2448 -26.0115 -153.734 -134.16 -120.536 -109.466 -99.3883 -90.3036 -82.157 -74.8361 -68.2499 -62.3214 -56.9791 -52.1576 -47.7976 -43.8464 -40.2576 -36.9902 -34.0076 -31.2818 -28.809 -26.5596 -155.124 -135.497 -121.795 -110.64 -100.476 -91.3125 -83.0956 -75.7136 -69.0749 -63.1015 -57.7207 -52.8661 -48.4775 -44.5016 -40.8912 -37.6051 -34.6063 -31.8664 -29.378 -27.1107 -156.536 -136.852 -123.071 -111.827 -101.576 -92.332 -84.0442 -76.6008 -69.9095 -63.891 -58.4717 -53.5838 -49.1663 -45.1651 -41.5325 -38.2267 -35.2107 -32.4552 -29.9496 -27.6631 -157.966 -138.223 -124.359 -113.024 -102.685 -93.36 -85.0008 -77.4957 -70.7515 -64.6878 -59.2296 -54.3081 -49.8613 -45.8342 -42.1787 -38.8523 -35.8178 -33.0455 -30.5214 -28.215 -159.413 -139.607 -125.659 -114.231 -103.801 -94.3942 -85.963 -78.3959 -71.5988 -65.4897 -59.9924 -55.0369 -50.5602 -46.5068 -42.8276 -39.4798 -36.4259 -33.6357 -31.0921 -28.7653 -160.874 -141.002 -126.966 -115.443 -104.922 -95.4323 -86.9288 -79.2995 -72.4491 -66.2944 -60.7578 -55.768 -51.2611 -47.1808 -43.4773 -40.1074 -37.0334 -34.2243 -31.6605 -29.3131 -162.345 -142.405 -128.277 -116.659 -106.046 -96.4721 -87.8959 -80.2042 -73.3006 -67.1002 -61.524 -56.4997 -51.9622 -47.8545 -44.1262 -40.7337 -37.6389 -34.8102 -32.2256 -29.8577 -163.824 -143.811 -129.591 -117.875 -107.169 -97.5112 -88.8621 -81.108 -74.1511 -67.9049 -62.2892 -57.2301 -52.6619 -48.5265 -44.7731 -41.3575 -38.2414 -35.3927 -32.7869 -30.3986 -165.308 -145.218 -130.904 -119.09 -108.289 -98.5471 -89.8249 -82.0086 -74.9985 -68.7067 -63.0515 -57.9577 -53.3586 -49.1954 -45.4167 -41.9778 -38.8402 -35.9711 -33.3439 -30.9355 -166.8 -146.627 -132.214 -120.299 -109.403 -99.5765 -90.7816 -82.9033 -75.8405 -69.5035 -63.8089 -58.6806 -54.0507 -49.8598 -46.0557 -42.5935 -39.4344 -36.5448 -33.8962 -31.4686 -168.307 -148.038 -133.517 -121.498 -110.507 -100.597 -91.7298 -83.7901 -76.6751 -70.2934 -64.5599 -59.3974 -54.7369 -50.5183 -46.6891 -43.2038 -40.0233 -37.1133 -34.4437 -31.998 -169.822 -149.447 -134.811 -122.687 -111.602 -101.608 -92.6692 -84.6688 -77.5021 -71.076 -65.3039 -60.1073 -55.4164 -51.1704 -47.3161 -43.8079 -40.6062 -37.6761 -34.9861 -32.5237 -171.302 -150.837 -136.093 -123.865 -112.686 -102.61 -93.6008 -85.54 -78.322 -71.8517 -66.0412 -60.8106 -56.0894 -51.816 -47.9367 -44.4055 -41.1827 -38.2326 -35.5228 -33.0449 -26.4935 -18.1983 -12.8097 -8.93758 -6.1902 -4.23739 -2.83597 -1.84297 -1.15233 -0.685047 -0.380096 -0.190142 -0.0793145 -0.0212038 0.00302647 0.0064225 -0.00221858 -0.0171244 -0.0346072 -0.0524193 -0.0692428 -0.0844328 -0.0976887 -0.109019 -0.118489 -0.126288 -0.132436 -0.137127 -0.140122 -0.14159 -0.140984 -0.138533 -0.133473 -0.126017 -0.115538 -0.101739 -0.0853343 -0.0640739 -0.0423788 -0.0126457 -27.0001 -18.6055 -13.1249 -9.18385 -6.37776 -4.38159 -2.94814 -1.93076 -1.22176 -0.740512 -0.424792 -0.226389 -0.10882 -0.0452578 -0.0165794 -0.00953447 -0.0151752 -0.0276129 -0.0430677 -0.0592163 -0.0746796 -0.0887596 -0.101115 -0.111716 -0.120598 -0.127925 -0.133692 -0.138072 -0.140812 -0.142061 -0.141272 -0.138654 -0.133459 -0.125874 -0.115311 -0.101432 -0.0850147 -0.0637416 -0.0421357 -0.0124506 -27.4993 -19.0145 -13.4472 -9.43805 -6.57159 -4.53017 -3.0633 -2.0204 -1.29214 -0.796272 -0.469354 -0.262245 -0.137804 -0.0687475 -0.0356329 -0.0249823 -0.0276814 -0.0377146 -0.0512036 -0.0657456 -0.0798991 -0.0929121 -0.104403 -0.114305 -0.122623 -0.129495 -0.134896 -0.138976 -0.14147 -0.142507 -0.141541 -0.13876 -0.133434 -0.125723 -0.115078 -0.101122 -0.0846943 -0.0634109 -0.0418975 -0.0122607 -27.9928 -19.4249 -13.7757 -9.70024 -6.77209 -4.68348 -3.18172 -2.11211 -1.36364 -0.852474 -0.5139 -0.297806 -0.166345 -0.0917361 -0.0541849 -0.039962 -0.0397698 -0.0474552 -0.0590348 -0.0720229 -0.0849132 -0.0968995 -0.107559 -0.11679 -0.124566 -0.131001 -0.136051 -0.139841 -0.142098 -0.14293 -0.141792 -0.138853 -0.133399 -0.125565 -0.114841 -0.10081 -0.0843739 -0.0630824 -0.0416615 -0.0120772 -28.4828 -19.8371 -14.11 -9.97064 -6.97988 -4.84198 -3.30372 -2.20617 -1.43647 -0.909282 -0.558558 -0.333173 -0.194522 -0.114287 -0.0722858 -0.0545134 -0.0514717 -0.0568593 -0.0665806 -0.0780629 -0.0897332 -0.10073 -0.11059 -0.119175 -0.126431 -0.132447 -0.137158 -0.14067 -0.142698 -0.143331 -0.142026 -0.138933 -0.133354 -0.125401 -0.1146 -0.100497 -0.0840542 -0.0627567 -0.0414282 -0.0119003 -28.9707 -20.2517 -14.4499 -10.2498 -7.19583 -5.0063 -3.42973 -2.30288 -1.51089 -0.966875 -0.603465 -0.368451 -0.222419 -0.136465 -0.0899866 -0.0686765 -0.0628187 -0.0659514 -0.0738599 -0.0838803 -0.0943703 -0.104413 -0.113503 -0.121466 -0.128222 -0.133833 -0.138219 -0.141463 -0.14327 -0.143711 -0.142245 -0.139001 -0.133301 -0.125231 -0.114356 -0.100184 -0.0837358 -0.0624346 -0.0411979 -0.0117301 -29.4585 -20.6709 -14.7964 -10.5385 -7.4207 -5.17702 -3.56011 -2.40253 -1.58712 -1.02544 -0.648765 -0.403752 -0.250122 -0.158337 -0.107339 -0.0824917 -0.0738419 -0.0747557 -0.0808914 -0.0894893 -0.0988355 -0.107956 -0.116303 -0.123668 -0.129941 -0.135164 -0.139236 -0.142222 -0.143815 -0.14407 -0.142448 -0.139059 -0.133241 -0.125057 -0.114111 -0.0998723 -0.0834195 -0.0621165 -0.040971 -0.0115671 -29.9488 -21.0973 -15.1497 -10.8358 -7.65418 -5.35412 -3.69497 -2.50534 -1.66539 -1.08517 -0.694605 -0.43919 -0.277717 -0.179971 -0.124396 -0.0959994 -0.0845728 -0.0832964 -0.0876937 -0.0949043 -0.10314 -0.111367 -0.118997 -0.125785 -0.131594 -0.136442 -0.140212 -0.142948 -0.144336 -0.144412 -0.142637 -0.139106 -0.133174 -0.12488 -0.113864 -0.0995618 -0.0831059 -0.0618032 -0.0407478 -0.0114113 -30.4448 -21.5322 -15.5067 -11.1383 -7.89443 -5.53698 -3.83417 -2.61134 -1.74583 -1.14621 -0.741121 -0.474875 -0.305293 -0.201433 -0.141209 -0.10924 -0.0950422 -0.0915974 -0.0942851 -0.100139 -0.107293 -0.114655 -0.121591 -0.127821 -0.133182 -0.13767 -0.141148 -0.143644 -0.144833 -0.144735 -0.142814 -0.139145 -0.133101 -0.124701 -0.113616 -0.0992537 -0.0827955 -0.0614953 -0.0405285 -0.0112628 -30.9476 -21.9718 -15.8616 -11.4422 -8.14053 -5.72583 -3.97802 -2.72077 -1.82864 -1.20872 -0.788444 -0.510913 -0.332934 -0.222791 -0.157829 -0.122253 -0.105281 -0.0996819 -0.100683 -0.105208 -0.111307 -0.117827 -0.124091 -0.129782 -0.13471 -0.138849 -0.142047 -0.14431 -0.145308 -0.145042 -0.142979 -0.139176 -0.133024 -0.12452 -0.11337 -0.0989488 -0.082489 -0.0611932 -0.0403135 -0.0111218 -31.4525 -22.4123 -16.216 -11.7526 -8.39793 -5.92461 -4.1287 -2.83476 -1.91442 -1.27305 -0.836784 -0.547441 -0.360735 -0.244115 -0.174309 -0.135077 -0.115318 -0.107573 -0.106906 -0.110123 -0.11519 -0.120891 -0.126502 -0.131671 -0.136181 -0.139983 -0.142909 -0.144949 -0.145762 -0.145333 -0.143133 -0.1392 -0.132943 -0.124338 -0.113124 -0.0986477 -0.082187 -0.0608974 -0.040103 -0.0109882 -31.9556 -22.8685 -16.5934 -12.0889 -8.67932 -6.14077 -4.29035 -2.95556 -2.00444 -1.33992 -0.886545 -0.584697 -0.388843 -0.265499 -0.190714 -0.14776 -0.125188 -0.115295 -0.112972 -0.114898 -0.118954 -0.123855 -0.12883 -0.133492 -0.137597 -0.141074 -0.143738 -0.145561 -0.146196 -0.14561 -0.143277 -0.139219 -0.13286 -0.124157 -0.112881 -0.0983513 -0.0818898 -0.0606084 -0.039897 -0.0108621 -32.4741 -23.3814 -17.024 -12.4635 -8.98826 -6.37574 -4.46409 -3.08417 -2.09952 -1.40993 -0.93815 -0.622961 -0.417443 -0.287066 -0.207127 -0.160358 -0.134931 -0.122878 -0.118901 -0.119551 -0.12261 -0.126727 -0.131082 -0.135251 -0.138963 -0.142124 -0.144535 -0.146149 -0.146612 -0.145874 -0.143412 -0.139232 -0.132774 -0.123977 -0.112641 -0.0980602 -0.0815982 -0.0603265 -0.0396959 -0.0107434 -33.0433 -23.9576 -17.4753 -12.8333 -9.29153 -6.60977 -4.63947 -3.21532 -2.19715 -1.48201 -0.9912 -0.662118 -0.44653 -0.30885 -0.223587 -0.172907 -0.144577 -0.130343 -0.124713 -0.124092 -0.126167 -0.129515 -0.133264 -0.136952 -0.140281 -0.143136 -0.145302 -0.146714 -0.147011 -0.146126 -0.14354 -0.139241 -0.132688 -0.123798 -0.112404 -0.097775 -0.0813124 -0.0600522 -0.0394998 -0.010632 -33.6295 -24.4727 -17.8149 -13.101 -9.52945 -6.80882 -4.79691 -3.33762 -2.29092 -1.55269 -1.04384 -0.701197 -0.475598 -0.330581 -0.239952 -0.18533 -0.154083 -0.13767 -0.130393 -0.128517 -0.129624 -0.132217 -0.135374 -0.138594 -0.141553 -0.144111 -0.146039 -0.147256 -0.147392 -0.146366 -0.143659 -0.139247 -0.132601 -0.123622 -0.112171 -0.097496 -0.0810327 -0.0597856 -0.0393085 -0.0105278 -34.0708 -24.785 -17.9912 -13.2664 -9.71561 -6.98341 -4.94135 -3.45262 -2.38089 -1.62153 -1.09559 -0.739784 -0.504337 -0.352047 -0.256076 -0.19753 -0.163385 -0.144814 -0.135915 -0.132806 -0.132967 -0.134826 -0.137408 -0.140175 -0.142774 -0.145046 -0.146745 -0.147774 -0.147756 -0.146593 -0.143771 -0.139248 -0.132512 -0.123448 -0.111942 -0.097223 -0.0807589 -0.0595266 -0.039122 -0.0104305 -34.3906 -25.1899 -18.3532 -13.6125 -10.0429 -7.25428 -5.14616 -3.604 -2.49242 -1.70293 -1.15452 -0.782439 -0.535361 -0.374777 -0.272881 -0.210077 -0.172845 -0.152011 -0.141434 -0.137066 -0.136269 -0.137391 -0.139401 -0.141719 -0.143964 -0.145955 -0.147431 -0.148277 -0.148109 -0.146815 -0.14388 -0.139251 -0.132427 -0.123279 -0.111719 -0.0969582 -0.0804926 -0.0592761 -0.0389409 -0.0103401 -35.2471 -26.4288 -19.4433 -14.4862 -10.7255 -7.76007 -5.50358 -3.85186 -2.66354 -1.82064 -1.23544 -0.838413 -0.574518 -0.402539 -0.292843 -0.224633 -0.183597 -0.160047 -0.147501 -0.141683 -0.139805 -0.140108 -0.141492 -0.143325 -0.145194 -0.146891 -0.148137 -0.148798 -0.148481 -0.147055 -0.14401 -0.139274 -0.132363 -0.123131 -0.111516 -0.0967117 -0.0802418 -0.0590392 -0.0387688 -0.010257 -36.865 -28.2224 -20.861 -15.5127 -11.4859 -8.32481 -5.90737 -4.13196 -2.85603 -1.95249 -1.32558 -0.900303 -0.617462 -0.432745 -0.3144 -0.240239 -0.195047 -0.168548 -0.153877 -0.146505 -0.143473 -0.142909 -0.143633 -0.144961 -0.146442 -0.147837 -0.14885 -0.149326 -0.14886 -0.147306 -0.144153 -0.139313 -0.132316 -0.123002 -0.111332 -0.0964841 -0.0800075 -0.0588174 -0.0386058 -0.010182 -36.5318 -28.0443 -20.6728 -15.313 -11.3804 -8.31029 -5.92926 -4.16106 -2.8854 -1.9792 -1.34763 -0.917505 -0.630566 -0.442633 -0.321855 -0.245891 -0.199372 -0.171895 -0.156498 -0.148579 -0.145131 -0.14424 -0.144702 -0.145812 -0.147107 -0.14834 -0.149212 -0.14956 -0.148985 -0.14733 -0.144093 -0.139173 -0.132115 -0.122747 -0.111046 -0.0961838 -0.0797165 -0.0585664 -0.038418 -0.0101083 -32.8954 -25.6584 -18.8083 -13.8922 -10.4168 -7.70106 -5.54024 -3.90688 -2.72051 -1.87254 -1.27691 -0.868874 -0.595963 -0.417261 -0.302832 -0.231451 -0.188371 -0.163543 -0.150217 -0.143926 -0.141749 -0.141836 -0.143026 -0.144647 -0.146276 -0.147693 -0.148645 -0.148995 -0.148389 -0.146678 -0.143396 -0.138431 -0.131356 -0.121984 -0.110307 -0.0955078 -0.0791078 -0.058098 -0.0380695 -0.00999393 -29.077 -23.1658 -17.0574 -12.6181 -9.55285 -7.16876 -5.22524 -3.72207 -2.61892 -1.82502 -1.26144 -0.870564 -0.605934 -0.43037 -0.316249 -0.243797 -0.199105 -0.172563 -0.157632 -0.149931 -0.146561 -0.145655 -0.14603 -0.146982 -0.148061 -0.149017 -0.149582 -0.149592 -0.148693 -0.146713 -0.1432 -0.138024 -0.130783 -0.121278 -0.109523 -0.0947115 -0.0783476 -0.0574734 -0.0376154 -0.00982619 -25.7099 -20.9632 -15.6115 -11.5711 -8.80312 -6.68329 -4.93175 -3.54562 -2.51569 -1.7712 -1.23924 -0.866775 -0.612167 -0.441471 -0.329052 -0.256485 -0.210739 -0.182735 -0.166247 -0.157057 -0.152348 -0.150283 -0.14968 -0.149819 -0.150228 -0.150631 -0.150737 -0.150352 -0.149114 -0.146825 -0.143046 -0.137627 -0.13019 -0.12053 -0.10868 -0.0938491 -0.0775231 -0.0567938 -0.0371304 -0.00964676 -22.4624 -18.7378 -14.1988 -10.6044 -8.10463 -6.21156 -4.64096 -3.37255 -2.41495 -1.71812 -1.21696 -0.862379 -0.617247 -0.451064 -0.340235 -0.267613 -0.220976 -0.191719 -0.173885 -0.163401 -0.157521 -0.154435 -0.152963 -0.152371 -0.152172 -0.152061 -0.151734 -0.150969 -0.1494 -0.146808 -0.142767 -0.13711 -0.129484 -0.119681 -0.107747 -0.0929162 -0.0766396 -0.0560804 -0.0366197 -0.00946883 -19.4419 -16.565 -12.8038 -9.65576 -7.40619 -5.71811 -4.32399 -3.18013 -2.30076 -1.65489 -1.18744 -0.853311 -0.619398 -0.458797 -0.350208 -0.277916 -0.230614 -0.200247 -0.181164 -0.169458 -0.162462 -0.158398 -0.15609 -0.154793 -0.154003 -0.15339 -0.152636 -0.151492 -0.149593 -0.146696 -0.142392 -0.136499 -0.128689 -0.118752 -0.106742 -0.0919266 -0.075707 -0.0553415 -0.0360861 -0.00929358 -16.648 -14.4366 -11.3826 -8.70277 -6.72061 -5.22605 -3.99699 -2.97761 -2.17955 -1.58598 -1.15309 -0.840563 -0.618899 -0.46465 -0.358886 -0.287352 -0.23968 -0.208399 -0.188195 -0.175347 -0.167286 -0.162274 -0.159148 -0.157154 -0.155776 -0.154661 -0.153476 -0.15195 -0.149715 -0.14651 -0.141939 -0.135811 -0.127817 -0.117751 -0.105671 -0.0908855 -0.074729 -0.0545787 -0.0355302 -0.00911923 -14.1195 -12.4332 -9.99875 -7.76271 -6.04212 -4.7294 -3.65602 -2.76114 -2.0486 -1.51022 -1.11345 -0.82389 -0.615632 -0.468539 -0.366165 -0.295798 -0.248046 -0.216055 -0.194872 -0.180982 -0.171923 -0.166008 -0.162093 -0.159421 -0.157465 -0.155854 -0.15424 -0.152332 -0.149758 -0.146243 -0.141405 -0.135042 -0.126868 -0.116681 -0.104538 -0.0897962 -0.0737087 -0.0537947 -0.0349529 -0.00894425 -11.8726 -10.5826 -8.66056 -6.83186 -5.37631 -4.24536 -3.31841 -2.5415 -1.91344 -1.43064 -1.07016 -0.803983 -0.609809 -0.470496 -0.371997 -0.303173 -0.255624 -0.223127 -0.201113 -0.186286 -0.176306 -0.169543 -0.164878 -0.161555 -0.15904 -0.156943 -0.154907 -0.15262 -0.14971 -0.145887 -0.140784 -0.134191 -0.125843 -0.115545 -0.103348 -0.0886639 -0.0726512 -0.0529931 -0.0343555 -0.00876687 -9.89855 -8.90974 -7.41025 -5.94442 -4.73885 -3.77902 -2.98668 -2.32019 -1.77479 -1.34794 -1.02396 -0.781347 -0.601669 -0.470601 -0.37638 -0.309431 -0.262351 -0.229549 -0.206855 -0.191203 -0.180385 -0.172836 -0.167467 -0.163526 -0.160476 -0.15791 -0.155462 -0.152803 -0.149562 -0.145437 -0.140074 -0.13326 -0.124746 -0.114349 -0.102108 -0.0874958 -0.0715635 -0.0521786 -0.0337402 -0.00858473 -8.18905 -7.43046 -6.27088 -5.11381 -4.13585 -3.33862 -2.67237 -2.10746 -1.63898 -1.26543 -0.976635 -0.756927 -0.591651 -0.469037 -0.379369 -0.314563 -0.268186 -0.235272 -0.212047 -0.195687 -0.184119 -0.175852 -0.16983 -0.16531 -0.161751 -0.158737 -0.155892 -0.152873 -0.149311 -0.144892 -0.139279 -0.132255 -0.123586 -0.113103 -0.100829 -0.086301 -0.0704542 -0.0513561 -0.0331097 -0.00839498 -6.73375 -6.15109 -5.26229 -4.36355 -3.58612 -2.93578 -2.3821 -1.90713 -1.50819 -1.18443 -0.929201 -0.731496 -0.58023 -0.466049 -0.381075 -0.318601 -0.273118 -0.240264 -0.216653 -0.1997 -0.187473 -0.178558 -0.171938 -0.166882 -0.162848 -0.159411 -0.156189 -0.152826 -0.148954 -0.144256 -0.138406 -0.131184 -0.122375 -0.111819 -0.0995233 -0.0850908 -0.0693337 -0.0505311 -0.0324678 -0.00819476 -5.52196 -5.07387 -4.39842 -3.70922 -3.09987 -2.5764 -2.12125 -1.72508 -1.38739 -1.10822 -0.883562 -0.706159 -0.568032 -0.461967 -0.381663 -0.321616 -0.277166 -0.244517 -0.220649 -0.203213 -0.190419 -0.180931 -0.173772 -0.168225 -0.163754 -0.159924 -0.156347 -0.15266 -0.148497 -0.143536 -0.137464 -0.130063 -0.121128 -0.110513 -0.098208 -0.0838783 -0.0682143 -0.0497105 -0.0318196 -0.0079818 -4.54174 -4.19507 -3.68429 -3.15974 -2.68578 -2.26728 -1.89479 -1.56479 -1.27891 -1.03823 -0.840671 -0.681634 -0.555587 -0.457135 -0.381333 -0.323716 -0.28038 -0.248044 -0.224033 -0.206217 -0.192943 -0.182955 -0.175317 -0.169331 -0.164461 -0.160271 -0.156368 -0.152381 -0.147948 -0.142745 -0.136471 -0.128908 -0.119865 -0.109205 -0.0969018 -0.0826794 -0.0671107 -0.0489023 -0.0311716 -0.00775521 -3.77527 -3.50287 -3.11567 -2.7159 -2.3461 -2.01018 -1.70405 -1.42791 -1.18472 -0.9763 -0.801918 -0.65888 -0.54353 -0.451956 -0.380328 -0.325042 -0.282837 -0.250886 -0.22682 -0.208714 -0.195043 -0.184628 -0.176573 -0.170198 -0.164973 -0.16046 -0.15626 -0.152002 -0.147324 -0.141903 -0.135448 -0.127745 -0.118611 -0.107918 -0.095627 -0.0815128 -0.06604 -0.0481169 -0.0305326 -0.00751652 -3.19685 -2.97706 -2.67944 -2.37046 -2.07734 -1.80361 -1.54869 -1.31485 -1.10561 -0.923254 -0.767995 -0.638455 -0.532309 -0.446767 -0.378883 -0.325749 -0.284635 -0.2531 -0.229045 -0.210725 -0.196732 -0.185959 -0.177547 -0.170836 -0.165302 -0.160503 -0.156043 -0.151545 -0.14665 -0.141037 -0.134425 -0.126602 -0.117394 -0.10668 -0.09441 -0.080401 -0.0650223 -0.0473678 -0.0299137 -0.00727071 -2.77489 -2.59133 -2.3563 -2.11078 -1.87187 -1.64317 -1.42631 -1.22451 -1.0414 -0.879435 -0.739433 -0.620881 -0.522364 -0.441909 -0.377246 -0.326007 -0.285888 -0.254763 -0.230759 -0.212286 -0.198038 -0.18697 -0.178261 -0.171266 -0.165469 -0.160427 -0.155743 -0.151038 -0.145957 -0.140182 -0.133438 -0.125516 -0.11625 -0.105525 -0.0932812 -0.0793707 -0.0640813 -0.0466722 -0.029329 -0.00702703 -2.4768 -2.31773 -2.12495 -1.92216 -1.72023 -1.52302 -1.33343 -1.15504 -0.991321 -0.844726 -0.716423 -0.606448 -0.513992 -0.437645 -0.375626 -0.325975 -0.286711 -0.255958 -0.232023 -0.213444 -0.198999 -0.187696 -0.178747 -0.171522 -0.165508 -0.160267 -0.155397 -0.150522 -0.145288 -0.13938 -0.132529 -0.124529 -0.115221 -0.104492 -0.0922765 -0.0784538 -0.0632453 -0.0460523 -0.0287967 -0.00679938 -2.27438 -2.13153 -1.96618 -1.79104 -1.61336 -1.4373 -1.26642 -1.10436 -0.954339 -0.81876 -0.698966 -0.595328 -0.507414 -0.434189 -0.374207 -0.325798 -0.287216 -0.256769 -0.232903 -0.214252 -0.199661 -0.188181 -0.179048 -0.171644 -0.165464 -0.160067 -0.155053 -0.150046 -0.144694 -0.138683 -0.13175 -0.123692 -0.114355 -0.103626 -0.091438 -0.0776887 -0.0625478 -0.0455357 -0.0283383 -0.00660781 -2.1469 -2.01424 -1.86552 -1.70708 -1.54424 -1.38135 -1.22232 -1.07071 -0.929571 -0.801203 -0.687042 -0.587646 -0.502806 -0.431716 -0.373141 -0.325598 -0.287498 -0.257273 -0.23346 -0.214764 -0.200074 -0.188471 -0.17921 -0.171683 -0.165386 -0.159881 -0.154766 -0.149666 -0.144231 -0.138149 -0.13116 -0.123064 -0.113708 -0.102982 -0.0908158 -0.0771215 -0.0620282 -0.0451583 -0.0279699 -0.0064843 -2.0834 -1.95572 -1.81511 -1.66482 -1.50924 -1.35287 -1.19976 -1.05342 -0.91677 -0.792079 -0.68081 -0.583607 -0.500367 -0.430392 -0.372557 -0.325472 -0.287628 -0.25752 -0.233737 -0.215016 -0.200274 -0.188607 -0.179278 -0.171685 -0.165326 -0.159763 -0.154595 -0.149446 -0.143966 -0.137847 -0.130828 -0.122712 -0.113346 -0.102623 -0.0904688 -0.0768074 -0.0617337 -0.0449641 -0.0277057 -0.00646265 -37.131 -37.062 -36.9815 -36.8907 -36.7885 -36.6736 -36.5451 -36.4026 -36.2451 -36.0725 -35.8829 -35.677 -35.4495 -35.204 -34.9252 -34.6262 -34.2609 -33.8976 -33.4721 -33.6143 -31.9912 -31.8953 -31.7929 -31.6851 -31.5712 -31.4499 -31.3205 -31.183 -31.0368 -30.8821 -30.7169 -30.5419 -30.3513 -30.1491 -29.9201 -29.6844 -29.4134 -29.2134 -29.0581 -29.4264 -27.4573 -27.3512 -27.2435 -27.1354 -27.0262 -26.9153 -26.8023 -26.6877 -26.5711 -26.453 -26.3321 -26.2097 -26.0829 -25.9575 -25.8272 -25.7124 -25.5932 -25.5297 -25.4758 -25.7592 -23.4543 -23.3528 -23.2525 -23.1544 -23.058 -22.9631 -22.8696 -22.7779 -22.6879 -22.6003 -22.5146 -22.4322 -22.3518 -22.2767 -22.2006 -22.131 -22.048 -21.9921 -21.9555 -22.2127 -19.952 -19.8609 -19.7723 -19.6866 -19.6038 -19.5237 -19.4465 -19.3725 -19.3019 -19.2349 -19.1714 -19.1119 -19.0549 -19.0015 -18.9477 -18.9005 -18.854 -18.8424 -18.8664 -19.1085 -16.9055 -16.8267 -16.7505 -16.6775 -16.6075 -16.5407 -16.4773 -16.4174 -16.3613 -16.3092 -16.261 -16.2173 -16.1777 -16.144 -16.1154 -16.097 -16.0846 -16.0957 -16.1297 -16.3193 -14.2664 -14.2001 -14.1364 -14.0755 -14.0175 -13.9625 -13.9107 -13.8625 -13.8179 -13.7774 -13.7412 -13.7097 -13.6832 -13.6624 -13.6465 -13.6373 -13.6319 -13.6422 -13.6731 -13.8193 -11.9889 -11.9345 -11.8823 -11.8324 -11.7849 -11.74 -11.6978 -11.6586 -11.6227 -11.5903 -11.5616 -11.5368 -11.5161 -11.4997 -11.4876 -11.4811 -11.4797 -11.491 -11.5189 -11.6264 -10.0314 -9.98785 -9.94577 -9.90537 -9.86673 -9.82999 -9.79532 -9.76294 -9.73304 -9.70582 -9.68149 -9.66031 -9.64247 -9.62837 -9.61815 -9.61259 -9.61143 -9.61859 -9.6375 -9.70966 -8.3616 -8.32731 -8.29388 -8.26141 -8.22998 -8.19973 -8.17082 -8.14342 -8.11771 -8.09388 -8.07215 -8.05271 -8.03577 -8.02156 -8.01021 -8.00213 -7.99738 -7.99815 -8.00745 -8.05094 -6.95622 -6.9297 -6.90336 -6.87729 -6.85157 -6.82631 -6.80165 -6.77774 -6.75474 -6.73281 -6.71212 -6.69284 -6.67516 -6.65926 -6.64533 -6.63363 -6.62438 -6.61859 -6.61864 -6.63885 -5.79821 -5.77786 -5.75707 -5.73593 -5.7145 -5.69289 -5.67121 -5.64958 -5.62815 -5.60705 -5.58643 -5.56646 -5.54728 -5.52905 -5.51195 -5.49616 -5.48187 -5.46952 -5.46088 -5.46294 -4.87004 -4.85431 -4.83764 -4.82011 -4.80176 -4.7827 -4.76302 -4.74283 -4.72224 -4.70137 -4.68036 -4.65932 -4.63841 -4.61774 -4.59748 -4.57775 -4.55873 -4.54061 -4.52454 -4.51342 -4.14812 -4.13566 -4.12191 -4.10692 -4.09075 -4.07346 -4.05515 -4.0359 -4.01582 -3.995 -3.97355 -3.95159 -3.92922 -3.90657 -3.88376 -3.86089 -3.83811 -3.81553 -3.79373 -3.77393 -3.60212 -3.59191 -3.58019 -3.56699 -3.55236 -3.53638 -3.5191 -3.50061 -3.481 -3.46034 -3.43873 -3.41627 -3.39305 -3.36917 -3.34474 -3.31985 -3.29461 -3.26912 -3.24357 -3.21876 -3.19911 -3.19044 -3.18013 -3.16822 -3.15477 -3.13982 -3.12343 -3.10568 -3.08663 -3.06636 -3.04495 -3.02248 -2.99904 -2.97471 -2.9496 -2.92377 -2.89733 -2.87035 -2.84286 -2.81562 -2.90864 -2.901 -2.8917 -2.88077 -2.86823 -2.85414 -2.83856 -2.82154 -2.80314 -2.78343 -2.76248 -2.74037 -2.71718 -2.69298 -2.66785 -2.64187 -2.61513 -2.5877 -2.55956 -2.53138 -2.70671 -2.6998 -2.69123 -2.68102 -2.66922 -2.65585 -2.64098 -2.62464 -2.6069 -2.58782 -2.56745 -2.54586 -2.52313 -2.49932 -2.47451 -2.44877 -2.42218 -2.3948 -2.36665 -2.33818 -2.5766 -2.57015 -2.56208 -2.55239 -2.54112 -2.5283 -2.51398 -2.4982 -2.48101 -2.46246 -2.44261 -2.42152 -2.39924 -2.37585 -2.35142 -2.326 -2.29967 -2.27249 -2.2445 -2.21594 -2.51123 -2.50508 -2.49733 -2.488 -2.47711 -2.46471 -2.45081 -2.43545 -2.41868 -2.40054 -2.38107 -2.36033 -2.33837 -2.31523 -2.29099 -2.26569 -2.23939 -2.21216 -2.18406 -2.15516 -36.9057 -37.2153 -36.2595 -36.4416 -36.7321 -36.7461 -36.7432 -36.8082 -36.8804 -36.9378 -36.9937 -37.0531 -37.1099 -37.1587 -37.1971 -37.2238 -37.2375 -37.2364 -37.2192 -37.1844 -33.9319 -34.0631 -32.3123 -31.9799 -32.3108 -32.3484 -32.2171 -32.1753 -32.2063 -32.2339 -32.2472 -32.26 -32.2739 -32.2819 -32.2794 -32.2651 -32.2384 -32.1986 -32.1446 -32.0755 -30.3403 -30.2807 -28.2621 -27.6612 -28.0403 -28.2334 -28.1185 -28.0162 -28.0167 -28.0384 -28.0335 -28.0109 -27.9844 -27.9535 -27.9137 -27.8629 -27.8016 -27.7302 -27.6489 -27.5577 -26.5439 -26.4871 -24.5142 -23.8042 -24.1742 -24.4845 -24.4291 -24.2878 -24.2357 -24.2331 -24.212 -24.1633 -24.1039 -24.0425 -23.9771 -23.905 -23.8259 -23.7406 -23.6499 -23.5542 -22.9434 -22.9734 -21.2325 -20.487 -20.7689 -21.1042 -21.0983 -20.9415 -20.8378 -20.7988 -20.762 -20.7007 -20.6249 -20.5472 -20.47 -20.3907 -20.308 -20.2221 -20.1337 -20.0435 -19.6817 -19.7668 -18.3269 -17.6084 -17.7664 -18.052 -18.0722 -17.9259 -17.7958 -17.7274 -17.6783 -17.6155 -17.5388 -17.4588 -17.3807 -17.3035 -17.2256 -17.1463 -17.0662 -16.9857 -16.7457 -16.8338 -15.689 -15.052 -15.1059 -15.3115 -15.3368 -15.217 -15.0894 -15.0085 -14.9532 -14.8945 -14.8255 -14.7525 -14.6807 -14.6109 -14.5418 -14.4726 -14.4033 -14.3345 -14.0911 -14.1574 -13.2747 -12.7514 -12.7446 -12.8766 -12.8957 -12.8059 -12.6989 -12.6218 -12.5675 -12.5155 -12.4576 -12.396 -12.3349 -12.2754 -12.217 -12.1591 -12.1016 -12.0448 -11.703 -11.7488 -11.0927 -10.6913 -10.661 -10.7404 -10.7513 -10.6875 -10.6069 -10.5435 -10.4962 -10.4528 -10.4066 -10.3579 -10.3089 -10.261 -10.2141 -10.1677 -10.1217 -10.0762 -9.59389 -9.63041 -9.16665 -8.87852 -8.84598 -8.89232 -8.8976 -8.85474 -8.79906 -8.75254 -8.71599 -8.68252 -8.64781 -8.61154 -8.57487 -8.53858 -8.50273 -8.46714 -8.43171 -8.39649 -7.78142 -7.81783 -7.51136 -7.3192 -7.29398 -7.32134 -7.32471 -7.29868 -7.26404 -7.23396 -7.20929 -7.18634 -7.16263 -7.13782 -7.11243 -7.08687 -7.06118 -7.03528 -7.00913 -6.98276 -6.2767 -6.31634 -6.13164 -6.01541 -6.00102 -6.01899 -6.02357 -6.01122 -5.99351 -5.97766 -5.96419 -5.95119 -5.93737 -5.92251 -5.9068 -5.89042 -5.87337 -5.85563 -5.83717 -5.81802 -5.07967 -5.1218 -5.02433 -4.96376 -4.96043 -4.9752 -4.98277 -4.9811 -4.97612 -4.97142 -4.96721 -4.96255 -4.95681 -4.94987 -4.94179 -4.93262 -4.92234 -4.91094 -4.89841 -4.88477 -4.17127 -4.21335 -4.17221 -4.14851 -4.15435 -4.16924 -4.1802 -4.18616 -4.18991 -4.19304 -4.19558 -4.1971 -4.19729 -4.19609 -4.19349 -4.18949 -4.18407 -4.17722 -4.16894 -4.15923 -3.5103 -3.54964 -3.54091 -3.53916 -3.55144 -3.56765 -3.58146 -3.59235 -3.60152 -3.60959 -3.61654 -3.62215 -3.62626 -3.62883 -3.62984 -3.62925 -3.62706 -3.62325 -3.61782 -3.61077 -3.04386 -3.07894 -3.08706 -3.09725 -3.1135 -3.13099 -3.14675 -3.16049 -3.1727 -3.1836 -3.19313 -3.20116 -3.20761 -3.21245 -3.21564 -3.21714 -3.21696 -3.21506 -3.21145 -3.20613 -2.72233 -2.75313 -2.76933 -2.78554 -2.80388 -2.82213 -2.83892 -2.85409 -2.8678 -2.8801 -2.89094 -2.90023 -2.90793 -2.91399 -2.91837 -2.92106 -2.92203 -2.92128 -2.91879 -2.91457 -2.50757 -2.53496 -2.55475 -2.57371 -2.59292 -2.61141 -2.62856 -2.64427 -2.65855 -2.67141 -2.68279 -2.69263 -2.70088 -2.70751 -2.71248 -2.71578 -2.71739 -2.71728 -2.71547 -2.71194 -2.37405 -2.39916 -2.42035 -2.44036 -2.45976 -2.47816 -2.49528 -2.51104 -2.52541 -2.53836 -2.54984 -2.55981 -2.56822 -2.57505 -2.58025 -2.58381 -2.58571 -2.58594 -2.5845 -2.58138 -2.30827 -2.33245 -2.3542 -2.37462 -2.39405 -2.41236 -2.4294 -2.44509 -2.4594 -2.47228 -2.48369 -2.4936 -2.50198 -2.50878 -2.514 -2.51761 -2.5196 -2.51995 -2.51868 -2.51577 0.977698 0.96495 0.933437 0.87845 0.794338 0.672257 0.499496 0.258654 -0.0728313 -0.522854 -1.12427 -1.91595 -2.945 -4.27587 -6.00711 -8.2753 -11.3393 -15.4322 -21.1889 -29.8886 0.86937 0.85601 0.824145 0.768485 0.683533 0.56068 0.387488 0.146902 -0.183356 -0.631076 -1.22932 -2.01722 -3.04217 -4.36635 -6.08402 -8.31986 -11.2945 -15.278 -20.5004 -28.3189 0.757611 0.744594 0.713624 0.659325 0.576608 0.457484 0.290296 0.0589791 -0.257615 -0.686061 -1.25808 -2.01078 -2.98821 -4.24423 -5.85928 -7.9362 -10.6186 -14.2278 -18.5442 -25.1909 0.642524 0.62968 0.599341 0.546295 0.465921 0.351012 0.190982 -0.0287979 -0.327705 -0.730282 -1.26597 -1.9687 -2.87783 -4.03799 -5.50837 -7.38206 -9.68212 -12.8283 -16.3158 -21.8073 0.524706 0.511959 0.482121 0.430204 0.352003 0.241075 0.0879347 -0.120501 -0.401594 -0.777468 -1.27479 -1.92413 -2.75934 -3.82004 -5.13591 -6.81735 -8.75284 -11.4455 -14.3717 -18.7851 0.404862 0.392294 0.3631 0.312558 0.236846 0.130254 -0.0156358 -0.212386 -0.47529 -0.823951 -1.28188 -1.87683 -2.63528 -3.59968 -4.76145 -6.26842 -7.91292 -10.1719 -12.7268 -16.2266 0.283792 0.271508 0.243164 0.194351 0.121635 0.0200407 -0.117772 -0.301856 -0.545377 -0.86544 -1.2818 -1.82067 -2.49792 -3.36671 -4.37925 -5.71054 -7.14064 -8.98742 -11.2172 -14.0086 0.162404 0.1505 0.123199 0.0764384 0.00718368 -0.0888082 -0.217785 -0.388304 -0.611309 -0.901579 -1.27425 -1.75553 -2.34834 -3.11739 -3.99273 -5.13254 -6.39232 -7.8724 -9.7562 -11.9965 0.0417243 0.0302888 0.00420977 -0.0402108 -0.105613 -0.195538 -0.315159 -0.471619 -0.673587 -0.93382 -1.26232 -1.68542 -2.19604 -2.85818 -3.61306 -4.5517 -5.64681 -6.82765 -8.35739 -10.1385 -0.0771174 -0.0880006 -0.112692 -0.154519 -0.215744 -0.29926 -0.40923 -0.551505 -0.732624 -0.963383 -1.2497 -1.61474 -2.05129 -2.60228 -3.24936 -3.9984 -4.91732 -5.86255 -7.06491 -8.44563 -0.192897 -0.203155 -0.226317 -0.265346 -0.32215 -0.399041 -0.499283 -0.62753 -0.788647 -0.990977 -1.23907 -1.54767 -1.91977 -2.36495 -2.90927 -3.49862 -4.23874 -4.991 -5.91363 -6.9512 -0.304319 -0.313893 -0.335418 -0.371508 -0.423752 -0.493947 -0.584613 -0.699261 -0.841721 -1.01728 -1.23155 -1.48848 -1.80325 -2.15824 -2.60354 -3.06735 -3.64466 -4.23196 -4.92722 -5.6856 -0.41003 -0.418883 -0.438709 -0.471797 -0.519459 -0.583051 -0.66451 -0.766301 -0.891668 -1.04302 -1.22723 -1.44036 -1.70306 -1.9879 -2.34357 -2.71016 -3.15289 -3.60194 -4.11927 -4.66359 -0.50864 -0.516756 -0.534872 -0.564982 -0.608166 -0.665421 -0.738228 -0.828226 -0.938136 -1.06856 -1.22606 -1.40429 -1.6211 -1.8534 -2.13476 -2.42585 -2.7646 -3.10529 -3.48875 -3.87834 -0.59872 -0.606112 -0.622566 -0.649815 -0.688754 -0.740107 -0.804987 -0.884494 -0.980711 -1.09365 -1.2281 -1.37913 -1.55801 -1.75058 -1.97465 -2.208 -2.47 -2.73156 -3.01855 -3.30184 -0.678795 -0.685503 -0.700402 -0.725006 -0.760062 -0.806105 -0.863953 -0.934402 -1.01889 -1.11748 -1.23297 -1.36272 -1.51213 -1.67417 -1.8562 -2.04668 -2.25399 -2.46051 -2.68046 -2.89305 -0.747297 -0.753392 -0.766905 -0.789176 -0.820839 -0.862307 -0.91418 -0.977083 -1.05196 -1.13903 -1.23968 -1.35281 -1.48038 -1.61922 -1.77141 -1.93102 -2.10047 -2.2695 -2.44405 -2.61039 -0.802476 -0.808058 -0.82042 -0.840766 -0.869656 -0.907423 -0.954525 -1.01148 -1.07892 -1.15716 -1.24679 -1.34745 -1.45953 -1.58148 -1.71319 -1.85132 -1.99542 -2.13933 -2.28405 -2.4208 -0.842253 -0.847453 -0.858963 -0.877895 -0.904762 -0.939853 -0.983543 -1.03628 -1.09853 -1.17061 -1.25281 -1.34495 -1.44689 -1.55762 -1.67626 -1.80051 -1.92875 -2.05686 -2.18331 -2.30229 -0.86396 -0.86895 -0.879988 -0.89813 -0.923877 -0.9575 -0.999332 -1.04978 -1.10926 -1.17805 -1.25633 -1.344 -1.4407 -1.54562 -1.65763 -1.77481 -1.89512 -2.01529 -2.13281 -2.24329 2.38241 2.37686 2.36223 2.33418 2.28785 2.21525 2.1059 1.94655 1.72134 1.4119 0.997066 0.451365 -0.259669 -1.18992 -2.42571 -4.10922 -6.4167 -9.71194 -14.3163 -21.1328 2.30476 2.29873 2.28281 2.25302 2.20443 2.12904 2.01631 1.85285 1.62257 1.30675 0.883839 0.327952 -0.395504 -1.34041 -2.59197 -4.29398 -6.62191 -9.94123 -14.5935 -21.484 2.22785 2.22135 2.20417 2.17269 2.12189 2.04376 1.9277 1.76016 1.52482 1.20261 0.771564 0.205365 -0.530734 -1.49072 -2.75875 -4.48004 -6.82999 -10.175 -14.8755 -21.8392 2.15172 2.14477 2.12638 2.09325 2.04028 1.95946 1.84012 1.66855 1.42817 1.09956 0.660318 0.0836824 -0.66528 -1.64076 -2.92595 -4.66729 -7.04075 -10.4132 -15.1631 -22.1993 2.07642 2.06903 2.04947 2.01475 1.95967 1.87623 1.75365 1.57809 1.33268 0.997647 0.550164 -0.0370345 -0.799077 -1.79044 -3.09346 -4.85561 -7.25387 -10.6553 -15.4555 -22.5626 2.00197 1.99417 1.97349 1.93724 1.88011 1.7941 1.66834 1.48882 1.23841 0.896939 0.441147 -0.156747 -0.932097 -1.93972 -3.26124 -5.04495 -7.46917 -10.9009 -15.7517 -22.9273 1.92841 1.92022 1.89849 1.86076 1.80166 1.71313 1.58425 1.40081 1.14541 0.797476 0.333303 -0.275428 -1.06432 -2.08859 -3.42927 -5.23531 -7.68652 -11.1497 -16.0515 -23.2915 1.85577 1.84723 1.82451 1.78537 1.72434 1.63337 1.50142 1.31411 1.05372 0.699297 0.22666 -0.393063 -1.19576 -2.23705 -3.59756 -5.42671 -7.90591 -11.4018 -16.3549 -23.6541 1.78409 1.77521 1.75158 1.71109 1.64822 1.55487 1.41991 1.22875 0.96339 0.602432 0.121238 -0.509647 -1.32642 -2.38514 -3.76613 -5.61922 -8.12733 -11.6568 -16.662 -24.0141 1.71337 1.7042 1.67973 1.63796 1.57331 1.47766 1.33974 1.14477 0.874441 0.506905 0.0170446 -0.625186 -1.45632 -2.53289 -3.93503 -5.81293 -8.35086 -11.9147 -16.9735 -24.371 1.64365 1.63423 1.60899 1.56602 1.49968 1.40178 1.26096 1.06221 0.786902 0.412733 -0.0859172 -0.739698 -1.58552 -2.68037 -4.10434 -6.00791 -8.57664 -12.175 -17.2894 -24.7231 1.57495 1.56531 1.5394 1.4953 1.42733 1.32725 1.18359 0.981091 0.700796 0.319926 -0.187655 -0.853209 -1.71406 -2.82766 -4.27415 -6.20427 -8.80498 -12.4374 -17.6106 -25.0709 1.50727 1.49747 1.47097 1.42582 1.3563 1.25412 1.10766 0.90144 0.616137 0.228487 -0.288183 -0.965756 -1.842 -2.97485 -4.4446 -6.40206 -9.03619 -12.7012 -17.9369 -25.4113 1.44063 1.43072 1.40373 1.35762 1.28662 1.1824 1.03319 0.823272 0.532935 0.138414 -0.387525 -1.07739 -1.96944 -3.12204 -4.61586 -6.60139 -9.271 -12.9663 -18.2708 -25.7481 1.37504 1.36508 1.3377 1.2907 1.21831 1.11211 0.960207 0.746602 0.451195 0.0496982 -0.48571 -1.18816 -2.09645 -3.26934 -4.78812 -6.80213 -9.50962 -13.2307 -18.6086 -26.0739 1.3105 1.30055 1.27289 1.22507 1.15137 1.04327 0.888714 0.671437 0.370917 -0.0376756 -0.582774 -1.29813 -2.22314 -3.41689 -4.96173 -7.00472 -9.75376 -13.4977 -18.958 -26.407 1.24703 1.23716 1.20931 1.16078 1.08583 0.975883 0.818717 0.597775 0.292092 -0.123728 -0.67876 -1.40737 -2.34962 -3.56475 -5.13672 -7.20863 -10.0018 -13.7633 -19.3014 -26.7328 1.18464 1.17501 1.14714 1.098 1.02189 0.910144 0.750366 0.525705 0.214747 -0.208478 -0.773732 -1.51601 -2.47618 -3.71364 -5.3147 -7.41769 -10.261 -14.0492 -19.67 -27.1457 1.12332 1.11407 1.0864 1.03684 0.959748 0.846342 0.684014 0.455575 0.139133 -0.291846 -0.867786 -1.62428 -2.60306 -3.86371 -5.49548 -7.63174 -10.5265 -14.3529 -20.0202 -27.6503 1.0627 1.05328 1.02539 0.975093 0.89679 0.781649 0.616881 0.384943 0.0633275 -0.375351 -0.962606 -1.7351 -2.73607 -4.02626 -5.69968 -7.89045 -10.8672 -14.8125 -20.5946 -28.7307 4.00804 4.00892 4.01617 4.02357 4.02511 4.01225 3.97461 3.9002 3.77555 3.58521 3.30956 2.91951 2.36794 1.57551 0.423627 -1.19737 -3.36461 -6.3826 -10.9286 -16.8767 3.9269 3.927 3.93281 3.93745 3.93524 3.91755 3.87391 3.79202 3.65784 3.45512 3.16308 2.75112 2.17039 1.34079 0.137576 -1.57284 -3.86599 -6.95096 -11.4945 -17.5426 3.84578 3.84619 3.85171 3.855 3.85069 3.83025 3.78338 3.69797 3.56026 3.35447 3.06098 2.65126 2.08013 1.27467 0.119515 -1.51934 -3.71127 -6.59466 -10.8128 -16.8046 3.7643 3.76495 3.77013 3.77223 3.7661 3.7433 3.69366 3.60527 3.46469 3.2567 2.9629 2.55711 1.99776 1.21852 0.114513 -1.44627 -3.54964 -6.32173 -10.3985 -16.5761 3.68247 3.68313 3.68769 3.68834 3.68014 3.65466 3.6018 3.50973 3.36504 3.15274 2.85492 2.44651 1.88746 1.11396 0.0254323 -1.51586 -3.62773 -6.44232 -10.534 -16.791 3.60039 3.60094 3.60472 3.60377 3.59331 3.56494 3.50859 3.41237 3.26285 3.04496 2.74083 2.32572 1.75991 0.979588 -0.115394 -1.66981 -3.82823 -6.71624 -10.7953 -16.9767 3.51813 3.51852 3.52141 3.51881 3.50606 3.47476 3.41486 3.31444 3.15998 2.9363 2.62549 2.20303 1.62953 0.841189 -0.26137 -1.82453 -4.00777 -6.929 -10.9556 -17.0782 3.43576 3.43592 3.43785 3.43356 3.41849 3.38427 3.32084 3.21626 3.05692 2.82755 2.51022 2.08076 1.50051 0.706523 -0.398321 -1.95737 -4.14011 -7.07432 -11.0741 -17.2066 3.35334 3.35321 3.3541 3.34808 3.33065 3.2935 3.22655 3.1178 2.95358 2.7185 2.39462 1.95811 1.37129 0.572447 -0.533071 -2.0849 -4.26297 -7.22074 -11.2347 -17.396 3.27092 3.27046 3.27024 3.26244 3.24263 3.20252 3.13202 3.01908 2.84992 2.60901 2.27834 1.83435 1.24021 0.435365 -0.673302 -2.22296 -4.40323 -7.39702 -11.4433 -17.623 3.18858 3.18775 3.18636 3.17674 3.15452 3.11142 3.03736 2.9202 2.74603 2.49917 2.16145 1.70945 1.10705 0.294547 -0.820525 -2.37374 -4.56088 -7.59195 -11.6737 -17.8701 3.10637 3.10513 3.10251 3.09105 3.0664 3.02031 2.94268 2.82128 2.64206 2.38913 2.04417 1.58376 0.972316 0.150917 -0.972655 -2.53261 -4.72686 -7.79084 -11.912 -18.136 3.02436 3.02269 3.0188 3.00548 2.97838 2.92929 2.84808 2.72242 2.53812 2.27907 1.92672 1.45759 0.836542 0.00545062 -1.12766 -2.69587 -4.89659 -7.99014 -12.1577 -18.4227 2.9426 2.94048 2.93528 2.92009 2.89054 2.83845 2.75366 2.62375 2.43435 2.16911 1.80924 1.33115 0.700054 -0.141353 -1.28471 -2.86257 -5.07043 -8.19225 -12.4126 -18.7286 2.86117 2.85857 2.85204 2.83497 2.80297 2.74788 2.65952 2.52536 2.33084 2.05937 1.69187 1.20461 0.563056 -0.289295 -1.44368 -3.03286 -5.24962 -8.39899 -12.6757 -19.0501 2.78011 2.77702 2.76914 2.7502 2.71575 2.65768 2.56576 2.42735 2.22771 1.94997 1.57475 1.07813 0.425726 -0.438218 -1.60445 -3.20665 -5.43433 -8.61018 -12.9444 -19.3835 2.69948 2.6959 2.68666 2.66585 2.62898 2.56794 2.47247 2.32984 2.12506 1.84102 1.458 0.95184 0.288252 -0.58791 -1.76678 -3.38339 -5.62384 -8.82494 -13.2167 -19.7262 2.61934 2.61527 2.60466 2.58201 2.54272 2.47874 2.37976 2.2329 2.02301 1.73264 1.34175 0.825896 0.150817 -0.738134 -1.93031 -3.56245 -5.81736 -9.04267 -13.4909 -20.0753 2.53975 2.53518 2.52322 2.49873 2.45707 2.39018 2.2877 2.13665 1.92164 1.62492 1.22611 0.700424 0.0135891 -0.888667 -2.09479 -3.74333 -6.01428 -9.2631 -13.766 -20.4281 2.46076 2.45569 2.44239 2.4161 2.37208 2.30232 2.19639 2.04117 1.82105 1.51798 1.11117 0.575541 -0.123286 -1.03932 -2.25998 -3.92568 -6.21419 -9.48619 -14.0412 -20.7814 7.06874 7.07707 7.09482 7.12233 7.1581 7.19976 7.24484 7.29101 7.33618 7.37856 7.41683 7.4501 7.47801 7.5006 7.51819 7.53128 7.54032 7.54561 7.54715 7.54486 7.03137 7.04016 7.05888 7.08793 7.12576 7.16994 7.21795 7.26742 7.31618 7.3624 7.40463 7.44194 7.47382 7.50019 7.52124 7.5373 7.54871 7.55564 7.55774 7.55542 6.96258 6.97215 6.99254 7.0242 7.06552 7.11398 7.16696 7.222 7.27683 7.3295 7.37844 7.42254 7.46113 7.4939 7.52078 7.54185 7.55726 7.56684 7.56938 7.56683 6.86664 6.87717 6.89962 6.93451 6.98015 7.03385 7.0929 7.15471 7.21688 7.27733 7.33431 7.38656 7.43316 7.47353 7.50724 7.53405 7.55387 7.56571 7.56681 7.5627 6.74702 6.75857 6.7832 6.82152 6.87168 6.93086 6.99617 7.06489 7.13449 7.20271 7.26768 7.32793 7.38229 7.4298 7.46958 7.50099 7.52349 7.53447 7.52919 7.51999 6.60694 6.61946 6.64615 6.6877 6.74209 6.80627 6.87721 6.95202 7.02803 7.10281 7.17436 7.24097 7.3012 7.35355 7.3965 7.42889 7.4493 7.45256 7.43243 7.41243 6.44962 6.46295 6.4914 6.53565 6.5935 6.66167 6.73693 6.81621 6.89665 6.97571 7.05118 7.12115 7.18371 7.23665 7.27757 7.30454 7.31464 7.29926 7.25207 7.21343 6.27832 6.29226 6.32199 6.3682 6.42842 6.49913 6.57687 6.65836 6.74056 6.82073 6.89649 6.96559 7.02549 7.07293 7.10437 7.11677 7.10485 7.05566 6.96498 6.89727 6.09637 6.11064 6.1411 6.18835 6.24964 6.32117 6.39923 6.48029 6.56105 6.63857 6.7102 6.77324 6.82425 6.85858 6.87119 6.8574 6.80838 6.70566 6.54968 6.43882 5.907 5.92132 5.95191 5.99922 6.06019 6.13071 6.20678 6.28455 6.36045 6.43123 6.49389 6.54509 6.58011 6.59245 6.57518 6.52144 6.41714 6.2362 5.9862 5.81241 5.71328 5.72739 5.75752 5.80391 5.86318 5.93088 6.00266 6.07431 6.14185 6.20168 6.2503 6.28345 6.29473 6.27537 6.21636 6.10779 5.92742 5.63783 5.25615 4.99136 5.51805 5.53168 5.56079 5.60538 5.66167 5.72487 5.79022 5.85306 5.90895 5.95381 5.98353 5.99267 5.97259 5.91151 5.79777 5.61774 5.33803 4.90447 4.34422 3.94965 5.32377 5.33671 5.36434 5.40633 5.45852 5.51575 5.57278 5.62443 5.66568 5.69183 5.69794 5.67708 5.61769 5.50426 5.32274 5.05614 4.65513 4.03821 3.24081 2.66435 5.13258 5.14464 5.1704 5.20916 5.25633 5.30637 5.35352 5.39198 5.41604 5.42026 5.39876 5.34296 5.23788 5.06297 4.80081 4.43075 3.88416 3.0419 1.94256 1.1204 4.9462 4.95725 4.98087 5.01589 5.05735 5.09926 5.13531 5.15898 5.16378 5.14335 5.09063 4.9951 4.83769 4.59122 4.23414 3.74593 3.03935 1.93874 0.463773 -0.690126 4.76598 4.77594 4.79722 4.82817 4.86342 4.89655 4.92064 4.9284 4.91247 4.86541 4.77885 4.64034 4.42676 4.10287 3.64007 3.01846 2.13374 0.738937 -1.18775 -2.76978 4.59295 4.60174 4.6206 4.64728 4.67602 4.69998 4.71156 4.70261 4.66483 4.58958 4.46683 4.28186 4.00737 3.59871 3.0162 2.24242 1.17153 -0.520579 -2.95792 -5.09547 4.42786 4.43548 4.45189 4.47417 4.49626 4.51091 4.50983 4.48399 4.424 4.31996 4.16013 3.92742 3.59081 3.09615 2.38758 1.44452 0.168691 -1.837 -4.8485 -7.69324 4.27123 4.27792 4.29211 4.30992 4.32511 4.33004 4.31577 4.27241 4.18945 4.05549 3.85663 3.5725 3.16784 2.57982 1.73262 0.591437 -0.921469 -3.22695 -6.79649 -10.5053 4.1227 4.12806 4.14023 4.15396 4.16294 4.15897 4.1323 4.072 3.96626 3.80212 3.56356 3.22659 2.75017 2.06171 1.06176 -0.316337 -2.14161 -4.80864 -8.95461 -13.8103 7.54174 7.53998 7.53776 7.5352 7.53231 7.52907 7.52545 7.52147 7.51709 7.51232 7.50715 7.50155 7.49553 7.48906 7.48214 7.47475 7.46687 7.45849 7.44959 7.44017 7.55551 7.55382 7.55101 7.54789 7.54451 7.54078 7.53669 7.53221 7.52736 7.52211 7.51645 7.51038 7.50388 7.49692 7.48951 7.48162 7.47323 7.46433 7.45489 7.44491 7.57419 7.57279 7.56905 7.56509 7.56101 7.5566 7.5518 7.54661 7.54104 7.53506 7.52867 7.52185 7.51458 7.50685 7.49864 7.48992 7.48068 7.47089 7.46053 7.44959 7.58156 7.5809 7.57649 7.57194 7.56736 7.5624 7.55697 7.55109 7.54475 7.53795 7.53065 7.52286 7.51455 7.5057 7.49628 7.48628 7.47567 7.46443 7.45252 7.43993 7.55284 7.55352 7.54938 7.54509 7.54064 7.53562 7.52998 7.52371 7.51683 7.50931 7.50115 7.49232 7.48282 7.47262 7.46169 7.45002 7.43758 7.42433 7.41025 7.3953 7.46069 7.46369 7.46139 7.45867 7.45542 7.45127 7.44618 7.44018 7.43328 7.42545 7.4167 7.40702 7.39639 7.38479 7.37221 7.3586 7.34396 7.32824 7.31141 7.29343 7.27903 7.28586 7.28732 7.2878 7.28715 7.28512 7.2817 7.27692 7.2708 7.26333 7.25451 7.24434 7.23282 7.21991 7.20561 7.18988 7.1727 7.15403 7.13384 7.11206 6.98389 6.99675 7.0041 7.0097 7.01337 7.015 7.01462 7.01224 7.0079 7.0016 6.99336 6.98317 6.97103 6.95693 6.94084 6.92275 6.90262 6.88041 6.85607 6.82955 6.55217 6.57409 6.58977 6.60269 6.61272 6.61982 6.62406 6.62546 6.62406 6.61989 6.61295 6.60328 6.59085 6.57567 6.55772 6.53697 6.5134 6.48695 6.45757 6.42519 5.95978 5.99474 6.02151 6.04426 6.06293 6.07756 6.08821 6.09495 6.09782 6.09686 6.0921 6.08356 6.07126 6.05518 6.03532 6.01165 5.98413 5.95271 5.91733 5.87789 5.18016 5.23327 5.27399 5.30928 5.33896 5.36324 5.38219 5.39589 5.40442 5.40783 5.40616 5.39945 5.38772 5.37096 5.34916 5.3223 5.29034 5.25321 5.21084 5.16311 4.1853 4.26258 4.31989 4.3702 4.41299 4.4488 4.4777 4.49979 4.51517 4.52392 4.52609 4.52172 4.51083 4.49344 4.46953 4.43907 4.40201 4.35829 4.30778 4.25037 2.94907 3.05725 3.13308 3.20032 3.25748 3.30602 3.34583 3.37712 3.39999 3.41451 3.42075 3.41876 3.40856 3.39016 3.36354 3.32866 3.28547 3.23387 3.17371 3.10483 1.45246 1.59777 1.69232 1.77704 1.84855 1.91 1.96076 2.00123 2.03141 2.0514 2.06127 2.06107 2.0508 2.03046 2.00001 1.95941 1.90857 1.84736 1.77558 1.69305 -0.321144 -0.132631 -0.0197796 0.0826423 0.167611 0.241134 0.301771 0.350409 0.386891 0.411385 0.423867 0.424353 0.412813 0.389212 0.353492 0.305579 0.245361 0.172649 0.0871746 -0.011272 -2.37645 -2.13933 -2.01175 -1.89506 -1.80092 -1.71821 -1.64998 -1.59484 -1.55354 -1.52595 -1.51224 -1.51242 -1.52658 -1.55477 -1.59711 -1.65372 -1.72475 -1.81049 -1.91132 -2.02749 -4.72276 -4.44148 -4.31048 -4.18409 -4.08396 -3.99363 -3.9199 -3.8603 -3.81624 -3.78725 -3.77368 -3.77558 -3.79319 -3.82668 -3.87627 -3.94214 -4.02456 -4.12392 -4.24077 -4.37535 -7.42466 -7.08519 -6.94639 -6.80752 -6.70589 -6.61322 -6.53904 -6.4782 -6.43335 -6.40398 -6.39115 -6.39511 -6.41638 -6.45523 -6.51198 -6.58682 -6.68007 -6.79227 -6.9241 -7.07572 -10.4117 -10.0128 -9.89916 -9.7743 -9.68935 -9.60256 -9.53202 -9.4725 -9.42959 -9.40286 -9.39396 -9.40306 -9.43075 -9.47726 -9.54287 -9.6278 -9.7324 -9.85727 -10.0032 -10.1701 -13.9595 -13.5164 -13.4257 -13.2866 -13.1906 -13.0923 -13.0166 -12.9548 -12.9126 -12.8882 -12.883 -12.8968 -12.9302 -12.9833 -13.0566 -13.1501 -13.2645 -13.4001 -13.5578 -13.7376 7.43019 7.41965 7.40852 7.39679 7.38445 7.37146 7.35782 7.34352 7.32852 7.31282 7.2964 7.27924 7.26134 7.24267 7.22323 7.20301 7.18199 7.16014 7.13746 7.11429 7.43435 7.42321 7.41147 7.3991 7.38609 7.37242 7.35807 7.34304 7.3273 7.31086 7.29368 7.27576 7.25709 7.23767 7.21748 7.19654 7.17481 7.15217 7.12866 7.10566 7.43802 7.42583 7.41297 7.39944 7.3852 7.37023 7.35453 7.33806 7.32081 7.30277 7.28391 7.26423 7.24371 7.22235 7.20013 7.17708 7.15311 7.12789 7.10155 7.07736 7.42661 7.41255 7.39772 7.38209 7.36563 7.34831 7.33012 7.31103 7.29101 7.27004 7.24811 7.22518 7.20125 7.1763 7.15033 7.12338 7.09527 7.06529 7.0337 7.00655 7.37945 7.36268 7.34493 7.32619 7.30641 7.28557 7.26362 7.24053 7.21627 7.19082 7.16413 7.13618 7.10693 7.07636 7.04452 7.01149 6.97686 6.93917 6.89877 6.86645 7.27425 7.25386 7.23219 7.20921 7.18486 7.15911 7.13191 7.10321 7.07296 7.04112 7.00765 6.97249 6.93557 6.89688 6.85658 6.81487 6.77082 6.72137 6.66691 6.6272 7.08865 7.06358 7.03679 7.00822 6.97781 6.9455 6.91123 6.87493 6.83655 6.79603 6.75329 6.70825 6.66078 6.6109 6.55908 6.50577 6.44888 6.3821 6.30594 6.25655 6.80079 6.76975 6.73634 6.70051 6.66218 6.62126 6.57768 6.53135 6.4822 6.43016 6.37514 6.31694 6.25534 6.1905 6.12358 6.0555 5.98181 5.88997 5.78102 5.71944 6.38974 6.35118 6.30941 6.26434 6.21589 6.16395 6.10841 6.04918 5.98616 5.91931 5.84846 5.77323 5.69319 5.60892 5.52299 5.43714 5.34232 5.21515 5.05798 4.98132 5.83432 5.78657 5.73454 5.67811 5.61716 5.55157 5.4812 5.40592 5.3257 5.24048 5.15001 5.0535 4.95017 4.84148 4.73275 4.62695 4.5067 4.33058 4.10403 4.00901 5.10994 5.0513 4.98705 4.91706 4.84119 4.75927 4.67111 4.57657 4.47571 4.36859 4.25471 4.13244 4.00034 3.86156 3.72644 3.59983 3.44977 3.20599 2.88092 2.76544 4.18597 4.11457 4.036 3.95012 3.85676 3.7557 3.64665 3.52946 3.40433 3.27161 3.13048 2.97774 2.81045 2.63451 2.46901 2.32224 2.13865 1.80341 1.34275 1.21009 3.0272 2.94081 2.84548 2.74106 2.62736 2.50409 2.37081 2.22723 2.07377 1.91136 1.73906 1.55135 1.34218 1.12061 0.919716 0.755854 0.540133 0.0913245 -0.544502 -0.684566 1.59979 1.49587 1.38107 1.25521 1.11811 0.969434 0.808551 0.634901 0.448993 0.252656 0.045725 -0.179584 -0.434657 -0.709284 -0.951658 -1.12731 -1.36252 -1.93249 -2.77848 -2.92096 -0.122554 -0.246495 -0.383348 -0.533321 -0.696605 -0.873499 -1.06469 -1.27108 -1.4924 -1.72589 -1.96959 -2.23167 -2.53027 -2.85991 -3.15095 -3.33678 -3.57002 -4.24529 -5.32628 -5.4913 -2.15866 -2.3045 -2.46525 -2.64113 -2.83232 -3.03895 -3.2615 -3.50096 -3.75764 -4.02865 -4.3093 -4.60473 -4.93808 -5.31662 -5.66472 -5.87472 -6.09426 -6.83992 -8.15891 -8.39741 -4.52703 -4.69512 -4.87978 -5.08119 -5.29945 -5.53453 -5.7865 -6.05607 -6.34421 -6.64936 -6.96574 -7.29294 -7.65328 -8.07083 -8.48532 -8.75557 -8.98149 -9.75839 -11.2695 -11.6234 -7.24599 -7.43372 -7.63899 -7.86198 -8.10288 -8.36173 -8.6385 -8.93359 -9.24839 -9.58373 -9.93608 -10.3007 -10.6913 -11.1421 -11.6281 -12.0018 -12.2771 -13.0396 -14.6148 -15.035 -10.3565 -10.5607 -10.783 -11.0239 -11.2837 -11.563 -11.8619 -12.181 -12.5213 -12.8852 -13.2728 -13.6794 -14.1055 -14.5773 -15.1067 -15.5832 -15.9172 -16.5565 -17.9663 -18.2961 -13.9379 -14.1573 -14.3964 -14.6555 -14.9353 -15.2359 -15.5578 -15.901 -16.2656 -16.6522 -17.0616 -17.4909 -17.9321 -18.3864 -18.8727 -19.3549 -19.6991 -20.0483 -20.9366 -21.0892 7.05737 6.94099 6.79968 6.63223 6.43516 6.20475 5.93997 5.64209 5.31353 4.95766 4.57916 4.18403 3.77937 3.37281 2.97216 2.58481 2.21737 1.8752 1.56235 1.2812 1.03284 0.816857 0.632037 0.476061 0.346479 0.240128 0.154344 0.0859161 0.0326535 -0.00827573 -0.0382339 -0.0595785 -0.0727279 -0.0797135 -0.0800399 -0.0757472 -0.0655669 -0.0520492 -0.0334212 -0.0131659 7.05398 6.9309 6.78232 6.60863 6.4046 6.16532 5.89198 5.58697 5.25249 4.89181 4.50978 4.11259 3.70737 3.30176 2.90347 2.51973 2.15693 1.82016 1.51316 1.23803 0.995608 0.785273 0.605654 0.454333 0.328822 0.225941 0.143059 0.0769999 0.0256412 -0.0137971 -0.042602 -0.0630766 -0.0755761 -0.0820822 -0.0820459 -0.0774761 -0.067024 -0.053261 -0.0342246 -0.0135043 7.0297 6.89513 6.73653 6.55334 6.33815 6.08456 5.79923 5.48465 5.14217 4.77516 4.38884 3.98961 3.5847 3.18172 2.78825 2.41126 2.05677 1.7294 1.43242 1.16746 0.934973 0.734007 0.562959 0.419277 0.300401 0.203162 0.124971 0.0627393 0.0144315 -0.0226036 -0.0495792 -0.0686464 -0.0801349 -0.0858469 -0.0852723 -0.080212 -0.0693811 -0.0551593 -0.0355313 -0.0140012 6.95952 6.81186 6.64454 6.45127 6.22478 5.95605 5.66111 5.33889 4.98989 4.61819 4.22944 3.83024 3.42794 3.03015 2.64429 2.27698 1.93378 1.61877 1.33465 1.08253 0.862384 0.67293 0.512311 0.377847 0.266925 0.17641 0.103778 0.0460651 0.00134661 -0.0328714 -0.0577063 -0.0751287 -0.0854407 -0.0902178 -0.0890282 -0.0833698 -0.0721267 -0.057333 -0.0370571 -0.014592 6.81891 6.66034 6.48829 6.28677 6.05421 5.77433 5.47624 5.15085 4.79936 4.42693 4.03953 3.64395 3.24769 2.85835 2.48315 2.12834 1.79897 1.49857 1.22924 0.991593 0.785144 0.608296 0.458972 0.334401 0.23195 0.148547 0.0817676 0.0287861 -0.012183 -0.0434735 -0.0660788 -0.0818012 -0.0908864 -0.0946953 -0.0928682 -0.0865746 -0.0749271 -0.0595161 -0.0386231 -0.0152357 6.58308 6.42126 6.25179 6.04613 5.81822 5.5354 5.24269 4.92057 4.57296 4.20574 3.82504 3.43788 3.05188 2.67466 2.31321 1.97347 1.65999 1.37581 1.12248 0.900159 0.707976 0.544083 0.406238 0.291631 0.197644 0.121306 0.0603069 0.011978 -0.0253137 -0.0537465 -0.0741694 -0.0882419 -0.09612 -0.0989915 -0.0965336 -0.089614 -0.0775886 -0.0615555 -0.0401263 -0.0158867 6.2255 6.07491 5.92073 5.71762 5.50933 5.23617 4.95851 4.64873 4.31357 3.95908 3.59155 3.21828 2.8471 2.48565 2.14082 1.8183 1.52226 1.25529 1.01854 0.811781 0.633854 0.48274 0.356095 0.251127 0.165266 0.0956709 0.0401623 -0.00376515 -0.0375872 -0.0633335 -0.0817 -0.0942297 -0.100961 -0.102961 -0.0998933 -0.0923857 -0.0800103 -0.063377 -0.0415098 -0.016502 5.71742 5.59913 5.48151 5.29289 5.12113 4.87533 4.62379 4.33793 4.02527 3.69186 3.34441 2.99064 2.63867 2.29634 1.97059 1.66694 1.38934 1.14008 0.91997 0.728556 0.564475 0.425616 0.309605 0.213712 0.13545 0.0721269 0.0217003 -0.0181662 -0.048796 -0.0720765 -0.0885522 -0.099671 -0.105338 -0.106543 -0.102896 -0.0948526 -0.0821496 -0.0649548 -0.0427442 -0.0170492 5.03066 4.96933 4.91983 4.76877 4.64974 4.45371 4.24126 3.99232 3.71285 3.40914 3.08863 2.75965 2.43087 2.11052 1.80574 1.52211 1.26346 1.03194 0.828172 0.651563 0.500653 0.373321 0.267217 0.179712 0.108431 0.0508393 0.0050376 -0.0311437 -0.0588841 -0.0799353 -0.0947001 -0.104545 -0.109239 -0.10973 -0.105535 -0.0970112 -0.0839973 -0.0662899 -0.0438165 -0.0175067 4.1405 4.16353 4.22143 4.14722 4.09544 3.97352 3.81579 3.61713 3.38158 3.11598 2.82879 2.52933 2.2271 1.93097 1.64849 1.38549 1.14588 0.93177 0.743757 0.581199 0.442633 0.325988 0.228991 0.149144 0.0841966 0.0317841 -0.00985559 -0.0427285 -0.0678809 -0.0869363 -0.100168 -0.108872 -0.112684 -0.112533 -0.107828 -0.098875 -0.0855632 -0.0673959 -0.0447238 -0.0178634 3.02808 3.17349 3.37688 3.43255 3.46402 3.43863 3.35367 3.21835 3.03694 2.81719 2.56897 2.303 2.02995 1.75961 1.50022 1.25801 1.03715 0.839869 0.666823 0.517435 0.390307 0.28347 0.194767 0.121848 0.0626027 0.0148328 -0.023088 -0.053011 -0.0758604 -0.0931391 -0.105006 -0.112691 -0.115708 -0.114981 -0.109801 -0.100465 -0.086867 -0.0682924 -0.0454703 -0.0181161 1.6849 2.01516 2.38906 2.62992 2.76754 2.8563 2.86263 2.80288 2.68466 2.51738 2.31274 2.08331 1.84129 1.59771 1.36167 1.14004 0.937364 0.756126 0.597146 0.459982 0.343362 0.245461 0.164261 0.0975742 0.0434352 -0.000192734 -0.0348053 -0.0621088 -0.0829164 -0.0986182 -0.109273 -0.116048 -0.118352 -0.117105 -0.111486 -0.101805 -0.0879331 -0.0690004 -0.0460646 -0.0182682 0.113694 0.725108 1.27737 1.74656 2.02252 2.23866 2.35239 2.37894 2.33112 2.22125 2.06343 1.87249 1.66251 1.44599 1.23313 1.03154 0.846281 0.680182 0.534306 0.408406 0.301382 0.21158 0.137137 0.0760359 0.0264545 -0.0134886 -0.0451651 -0.0701475 -0.0891474 -0.103451 -0.11303 -0.118993 -0.120656 -0.118938 -0.112914 -0.10292 -0.0887874 -0.0695414 -0.046519 -0.0183276 -1.69053 -0.666917 0.0683189 0.789024 1.24321 1.59993 1.83377 1.95541 1.98317 1.93374 1.82441 1.67266 1.49481 1.305 1.11467 0.932287 0.7635 0.611549 0.477789 0.362209 0.26391 0.18142 0.113048 0.05694 0.0114197 -0.0252496 -0.0543225 -0.0772493 -0.0946492 -0.107714 -0.116337 -0.121572 -0.122661 -0.120512 -0.114116 -0.103834 -0.089456 -0.069936 -0.0468479 -0.0183052 -3.778 -2.18838 -1.23333 -0.249036 0.429724 0.947555 1.31349 1.53823 1.64574 1.65866 1.59839 1.48565 1.33924 1.17521 1.00635 0.842062 0.688637 0.549758 0.427104 0.320917 0.230507 0.154597 0.0916633 0.0400127 -0.00189316 -0.0356557 -0.0624205 -0.0835267 -0.0995093 -0.111473 -0.119247 -0.123829 -0.1244 -0.121856 -0.115119 -0.10457 -0.0899634 -0.0702036 -0.0470666 -0.0182134 -6.25839 -3.96377 -2.67363 -1.39618 -0.439202 0.272818 0.787032 1.12479 1.31752 1.39542 1.38519 1.31139 1.19577 1.05652 0.907961 0.760552 0.621304 0.494385 0.381821 0.284118 0.200802 0.130783 0.0727021 0.0250184 -0.013677 -0.0448623 -0.0695822 -0.0890763 -0.103803 -0.11479 -0.121806 -0.1258 -0.125904 -0.122996 -0.115948 -0.105151 -0.0903322 -0.0703623 -0.0471908 -0.0180651 -9.21957 -6.15238 -4.32074 -2.67745 -1.3875 -0.441154 0.24181 0.704762 0.990244 1.13752 1.17975 1.14605 1.0615 0.946749 0.817857 0.686504 0.560524 0.444651 0.341307 0.251292 0.174364 0.109625 0.055878 0.0117262 -0.0241164 -0.0530154 -0.0759226 -0.0939878 -0.107601 -0.117717 -0.124058 -0.127522 -0.127205 -0.12396 -0.116626 -0.105598 -0.0905846 -0.0704299 -0.0472361 -0.017873 -12.5357 -8.71902 -6.12573 -4.02954 -2.37901 -1.17605 -0.313545 0.280184 0.661979 0.880938 0.977141 0.984535 0.931675 0.841724 0.732546 0.617081 0.504045 0.398793 0.304196 0.221387 0.150386 0.0905043 0.0407173 -0.000225115 -0.0334863 -0.0603237 -0.0816001 -0.0983821 -0.110995 -0.120329 -0.126061 -0.129042 -0.12834 -0.124783 -0.117186 -0.105939 -0.0907472 -0.0704275 -0.0472202 -0.0176497 -15.6324 -11.172 -7.74432 -5.20121 -3.23984 -1.8165 -0.801749 -0.0976424 0.365947 0.646447 0.789651 0.833459 0.809237 0.74215 0.651466 0.551106 0.450479 0.355443 0.269254 0.193351 0.128002 0.072726 0.0266735 -0.0112587 -0.0421105 -0.0670328 -0.0867999 -0.102398 -0.11409 -0.122703 -0.127874 -0.130408 -0.12935 -0.125497 -0.117653 -0.106197 -0.0908399 -0.0703699 -0.0471568 -0.0174051 -17.4879 -12.6644 -8.59924 -5.8109 -3.69203 -2.16323 -1.07866 -0.32241 0.180977 0.492909 0.661398 0.72591 0.71894 0.666436 0.588204 0.498521 0.407037 0.319794 0.2402 0.169833 0.109093 0.0576236 0.0146891 -0.0207097 -0.0495191 -0.0728088 -0.0912803 -0.105857 -0.116745 -0.124726 -0.129398 -0.131529 -0.130146 -0.126022 -0.117956 -0.106309 -0.0908144 -0.070221 -0.0470285 -0.0171379 -17.2901 -12.7776 -8.50395 -5.73897 -3.64782 -2.13865 -1.07412 -0.3287 0.16834 0.477478 0.64525 0.710159 0.704132 0.652795 0.575793 0.487336 0.397047 0.310955 0.232455 0.163114 0.103322 0.0527157 0.0105569 -0.024154 -0.0523581 -0.0751222 -0.093138 -0.107324 -0.117878 -0.125572 -0.129998 -0.131917 -0.130357 -0.126076 -0.117892 -0.106143 -0.090598 -0.0699624 -0.0468364 -0.0169014 -17.1001 -12.7084 -8.46728 -5.7107 -3.66573 -2.17136 -1.12149 -0.383183 0.110441 0.419032 0.588583 0.657065 0.655897 0.610153 0.53898 0.456186 0.371127 0.289684 0.2152 0.149257 0.0922888 0.0439992 0.00371978 -0.0294813 -0.056483 -0.0782959 -0.0955641 -0.109163 -0.119255 -0.126582 -0.130716 -0.132395 -0.130642 -0.126197 -0.117885 -0.106032 -0.0904239 -0.0697467 -0.0466686 -0.0167196 -17.3969 -12.8303 -8.60526 -5.77178 -3.73926 -2.23643 -1.18584 -0.446472 0.0486303 0.359004 0.531117 0.603037 0.606184 0.565434 0.499637 0.422281 0.342445 0.265815 0.195619 0.133392 0.0795771 0.0339139 -0.00421159 -0.0356687 -0.0612758 -0.0819824 -0.0983814 -0.111296 -0.120853 -0.127754 -0.131552 -0.132952 -0.130976 -0.126342 -0.117883 -0.10591 -0.0902292 -0.069508 -0.0464802 -0.0165262 -17.8201 -12.9677 -8.77807 -5.86007 -3.82837 -2.31471 -1.25797 -0.514832 -0.0158789 0.298079 0.474176 0.55061 0.558789 0.523408 0.463068 0.391011 0.316127 0.243972 0.177716 0.11888 0.0679304 0.0246511 -0.0115184 -0.041389 -0.0657236 -0.085417 -0.101017 -0.113298 -0.122358 -0.128859 -0.132339 -0.133474 -0.131286 -0.126468 -0.117868 -0.105778 -0.0900284 -0.0692642 -0.046288 -0.0163275 -18.3152 -13.1464 -8.97182 -5.97171 -3.92564 -2.40017 -1.33353 -0.585051 -0.0811239 0.237177 0.417781 0.49911 0.512589 0.482745 0.427932 0.361162 0.291144 0.223336 0.160863 0.105256 0.0570153 0.0159784 -0.0183581 -0.0467454 -0.0698917 -0.088639 -0.103491 -0.11518 -0.123773 -0.129896 -0.133075 -0.133957 -0.131566 -0.126572 -0.117837 -0.105633 -0.0898186 -0.0690132 -0.046091 -0.0161236 -18.8184 -13.3421 -9.1648 -6.0975 -4.02754 -2.4907 -1.41202 -0.656856 -0.146993 0.176402 0.362011 0.448542 0.467464 0.443181 0.393842 0.33226 0.266993 0.203411 0.144607 0.092125 0.0465022 0.00762877 -0.0249412 -0.0519003 -0.0739031 -0.0917402 -0.105873 -0.116991 -0.125134 -0.130891 -0.133779 -0.134413 -0.131825 -0.126656 -0.117789 -0.105473 -0.0895982 -0.0687528 -0.0458875 -0.0159146 -19.3294 -13.5645 -9.36102 -6.23668 -4.13473 -2.5854 -1.49309 -0.729895 -0.213269 0.115887 0.306953 0.398971 0.423475 0.404773 0.360847 0.30434 0.243692 0.184199 0.128938 0.0794688 0.0363681 -0.000421505 -0.0312901 -0.0568736 -0.0777747 -0.0947345 -0.108174 -0.11874 -0.126446 -0.131849 -0.134453 -0.134846 -0.132064 -0.126723 -0.117728 -0.1053 -0.0893672 -0.0684832 -0.0456777 -0.0157011 -19.8386 -13.8054 -9.55868 -6.38567 -4.24712 -2.68359 -1.57653 -0.803996 -0.279819 0.0557297 0.252673 0.350438 0.380645 0.367538 0.328961 0.277423 0.221261 0.165723 0.113878 0.0673069 0.0266295 -0.008159 -0.0373944 -0.0616574 -0.0815006 -0.0976175 -0.11039 -0.120425 -0.12771 -0.132769 -0.135097 -0.135254 -0.132282 -0.126772 -0.117651 -0.105113 -0.0891264 -0.0682051 -0.0454622 -0.0154838 -20.3485 -14.0656 -9.76097 -6.54326 -4.36511 -2.78493 -1.66217 -0.879019 -0.346527 -0.00399378 0.199223 0.302968 0.338979 0.331466 0.29817 0.251488 0.199683 0.147968 0.0994136 0.0556293 0.0172791 -0.0155891 -0.0432578 -0.0662541 -0.0850825 -0.10039 -0.112522 -0.122045 -0.128924 -0.133651 -0.135711 -0.135637 -0.132481 -0.126804 -0.117561 -0.104914 -0.0888763 -0.067919 -0.0452416 -0.0152634 -20.8577 -14.3416 -9.96857 -6.7079 -4.4886 -2.88921 -1.74981 -0.954866 -0.413309 -0.0632286 0.146632 0.256572 0.298473 0.296544 0.26845 0.226511 0.178933 0.130911 0.0855248 0.0444189 0.00830269 -0.0227233 -0.0488893 -0.0706708 -0.0885254 -0.103056 -0.114572 -0.123603 -0.130091 -0.134495 -0.136295 -0.135997 -0.13266 -0.126819 -0.117457 -0.104703 -0.0886171 -0.0676254 -0.0450163 -0.0150408 -21.3671 -14.6326 -10.183 -6.879 -4.61754 -2.99634 -1.83933 -1.03147 -0.480104 -0.12194 0.0949188 0.21125 0.259113 0.262749 0.239779 0.202467 0.158988 0.11453 0.0721935 0.0336604 -0.000312524 -0.0295719 -0.0542972 -0.0749137 -0.0918342 -0.10562 -0.116543 -0.125101 -0.131211 -0.135303 -0.136851 -0.136333 -0.132819 -0.126818 -0.117339 -0.104479 -0.0883495 -0.0673248 -0.0447868 -0.0148166 -21.8764 -14.9371 -10.4047 -7.05607 -4.75175 -3.1063 -1.93062 -1.10879 -0.546879 -0.180111 0.0440831 0.16699 0.22088 0.230056 0.212127 0.17933 0.139824 0.0988047 0.0594018 0.0233389 -0.00857841 -0.0361443 -0.0594889 -0.0789888 -0.0950135 -0.108083 -0.118439 -0.12654 -0.132285 -0.136076 -0.137378 -0.136646 -0.13296 -0.1268 -0.117208 -0.104245 -0.0880739 -0.0670178 -0.0445535 -0.0145916 -22.3857 -15.2543 -10.6346 -7.23899 -4.89109 -3.21912 -2.02362 -1.18682 -0.613623 -0.237745 -0.00588792 0.12377 0.183743 0.198433 0.185464 0.157069 0.121413 0.0837125 0.0471312 0.0134395 -0.0165069 -0.0424501 -0.0644718 -0.0829016 -0.0980674 -0.110451 -0.12026 -0.127922 -0.133316 -0.136814 -0.137878 -0.136936 -0.133082 -0.126767 -0.117064 -0.104 -0.087791 -0.066705 -0.0443171 -0.0143665 -22.895 -15.5833 -10.8729 -7.42779 -5.03543 -3.33485 -2.11833 -1.26556 -0.680349 -0.294861 -0.0550205 0.0815572 0.147669 0.167843 0.159753 0.135653 0.103729 0.0692301 0.0353628 0.00394707 -0.0241102 -0.0484987 -0.0692532 -0.0866578 -0.101 -0.112725 -0.122009 -0.129249 -0.134303 -0.137518 -0.138352 -0.137205 -0.133187 -0.126718 -0.116909 -0.103744 -0.0875012 -0.0663871 -0.0440781 -0.0141421 -23.4044 -15.9235 -11.1201 -7.6226 -5.18472 -3.45359 -2.21476 -1.34505 -0.747092 -0.351494 -0.103353 0.0403109 0.112613 0.138245 0.134957 0.115048 0.0867428 0.0553338 0.0240771 -0.00515396 -0.0314003 -0.0542996 -0.0738404 -0.090263 -0.103816 -0.114908 -0.123689 -0.130523 -0.135249 -0.13819 -0.138799 -0.137452 -0.133274 -0.126655 -0.116742 -0.10348 -0.0872052 -0.0660647 -0.0438369 -0.013919 -23.9143 -16.2744 -11.3762 -7.82367 -5.33896 -3.57544 -2.31299 -1.42536 -0.813906 -0.407696 -0.150936 -1.80973e-05 0.0785297 0.109596 0.111037 0.0952201 0.0704247 0.0419991 0.0132546 -0.0138791 -0.0383895 -0.0598621 -0.0782407 -0.0937226 -0.106519 -0.117005 -0.125302 -0.131744 -0.136155 -0.138829 -0.13922 -0.13768 -0.133344 -0.126578 -0.116564 -0.103206 -0.0869036 -0.0657386 -0.0435941 -0.0136981 -24.4257 -16.6363 -11.6419 -8.03131 -5.49822 -3.70053 -2.41312 -1.50655 -0.880863 -0.463531 -0.197829 -0.0394861 0.0453659 0.081847 0.0879498 0.0761319 0.0547447 0.0292015 0.0028754 -0.022244 -0.04509 -0.0651958 -0.0824612 -0.0970422 -0.109114 -0.119018 -0.12685 -0.132915 -0.137021 -0.139439 -0.139618 -0.137887 -0.133399 -0.126488 -0.116375 -0.102925 -0.0865972 -0.0654095 -0.0433502 -0.0134798 -24.9401 -17.0101 -11.9177 -8.24604 -5.6627 -3.82904 -2.51528 -1.58875 -0.948055 -0.519077 -0.244102 -0.0781559 0.0130654 0.0549486 0.0656524 0.0577473 0.0396721 0.016916 -0.00708027 -0.0302643 -0.0515138 -0.0703098 -0.0865091 -0.100227 -0.111604 -0.12095 -0.128335 -0.134038 -0.13785 -0.140018 -0.139992 -0.138075 -0.133438 -0.126386 -0.116178 -0.102637 -0.0862865 -0.065078 -0.0431058 -0.0132649 -25.4584 -17.3964 -12.2045 -8.46846 -5.83271 -3.96121 -2.61968 -1.67211 -1.0156 -0.574434 -0.289839 -0.1161 -0.0184346 0.0288469 0.044099 0.0400279 0.0251758 0.00511752 -0.0166324 -0.0379556 -0.0576731 -0.0752136 -0.0903913 -0.103283 -0.113993 -0.122804 -0.12976 -0.135114 -0.138642 -0.140569 -0.140343 -0.138246 -0.133462 -0.126272 -0.115971 -0.102342 -0.0859724 -0.0647451 -0.0428613 -0.0130539 -25.9782 -17.794 -12.5023 -8.69903 -6.00853 -4.0973 -2.72653 -1.7568 -1.08365 -0.629719 -0.335137 -0.153401 -0.0492043 0.00348253 0.0232403 0.0229332 0.0112229 -0.00622027 -0.0258018 -0.0453342 -0.0635803 -0.0799165 -0.094115 -0.106214 -0.116285 -0.124583 -0.131127 -0.136144 -0.139398 -0.141092 -0.140672 -0.138399 -0.133473 -0.126148 -0.115757 -0.102043 -0.0856556 -0.0644113 -0.0426235 -0.0128463 ) ; boundaryField { inlet { type freestreamPressure; freestreamValue uniform 0; supersonic false; value nonuniform List<scalar> 80 ( 0.977698 0.86937 0.757611 0.642524 0.524706 0.404862 0.283792 0.162404 0.0417243 -0.0771174 -0.192897 -0.304319 -0.41003 -0.50864 -0.59872 -0.678795 -0.747297 -0.802476 -0.842253 -0.86396 2.38241 2.30476 2.22785 2.15172 2.07642 2.00197 1.92841 1.85577 1.78409 1.71337 1.64365 1.57495 1.50727 1.44063 1.37504 1.3105 1.24703 1.18464 1.12332 1.0627 4.00804 3.9269 3.84578 3.7643 3.68247 3.60039 3.51813 3.43576 3.35334 3.27092 3.18858 3.10637 3.02436 2.9426 2.86117 2.78011 2.69948 2.61934 2.53975 2.46076 7.06874 7.03137 6.96258 6.86664 6.74702 6.60694 6.44962 6.27832 6.09637 5.907 5.71328 5.51805 5.32377 5.13258 4.9462 4.76598 4.59295 4.42786 4.27123 4.1227 ) ; } outlet { type freestreamPressure; freestreamValue uniform 0; supersonic false; value nonuniform List<scalar> 80 ( -0.000107428 -0.000112096 -0.000117103 -0.000122668 -0.00012883 -0.000135543 -0.000142679 -0.000149966 -0.000156897 -0.000162646 -0.000166019 -0.000165498 -0.000159452 -0.000146577 -0.000126482 -0.000100214 -7.04363e-05 -4.11025e-05 -1.67474e-05 -2.04468e-06 -6.1049e-05 -6.30391e-05 -6.5041e-05 -6.70586e-05 -6.90931e-05 -7.11464e-05 -7.32208e-05 -7.53193e-05 -7.74452e-05 -7.96019e-05 -8.17934e-05 -8.40237e-05 -8.6297e-05 -8.86173e-05 -9.09885e-05 -9.34138e-05 -9.58973e-05 -9.84488e-05 -0.000101077 -0.000103722 -2.62186e-05 -2.76148e-05 -2.90505e-05 -3.05351e-05 -3.20667e-05 -3.36421e-05 -3.52595e-05 -3.6917e-05 -3.86126e-05 -4.03438e-05 -4.21082e-05 -4.39031e-05 -4.57261e-05 -4.75745e-05 -4.94459e-05 -5.1338e-05 -5.32488e-05 -5.51767e-05 -5.712e-05 -5.90728e-05 -1.95155e-08 -1.6657e-07 -4.30657e-07 -7.9103e-07 -1.24189e-06 -1.78725e-06 -2.43679e-06 -3.20384e-06 -4.10409e-06 -5.15395e-06 -6.36848e-06 -7.75902e-06 -9.33097e-06 -1.10823e-05 -1.30029e-05 -1.50748e-05 -1.72741e-05 -1.95725e-05 -2.19381e-05 -2.43306e-05 ) ; } top { type symmetryPlane; } bottom { type symmetryPlane; } cylinder { type zeroGradient; } frontandback { type empty; } } // ************************************************************************* //
949f18424c1eb9e3d9605f9964d57b7d340eb226
38c10c01007624cd2056884f25e0d6ab85442194
/ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11_unittest.cc
61dd76d758015528871ec121f98881b3c090ba55
[ "BSD-3-Clause" ]
permissive
zenoalbisser/chromium
6ecf37b6c030c84f1b26282bc4ef95769c62a9b2
e71f21b9b4b9b839f5093301974a45545dad2691
refs/heads/master
2022-12-25T14:23:18.568575
2016-07-14T21:49:52
2016-07-23T08:02:51
63,980,627
0
2
BSD-3-Clause
2022-12-12T12:43:41
2016-07-22T20:14:04
null
UTF-8
C++
false
false
31,138
cc
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <map> #include <vector> // Include views_test_base.h first because the definition of None in X.h // conflicts with the definition of None in gtest-type-util.h #include "ui/views/test/views_test_base.h" #include "base/memory/scoped_ptr.h" #include "base/run_loop.h" #include "base/strings/utf_string_conversions.h" #include "ui/aura/window.h" #include "ui/aura/window_tree_host.h" #include "ui/base/dragdrop/os_exchange_data.h" #include "ui/base/x/x11_util.h" #include "ui/events/event_utils.h" #include "ui/gfx/x/x11_atom_cache.h" #include "ui/gfx/x/x11_types.h" #include "ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h" #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" #include "ui/views/widget/desktop_aura/x11_move_loop.h" #include "ui/views/widget/widget.h" #include "ui/wm/public/drag_drop_delegate.h" #include <X11/Xlib.h> namespace views { namespace { const char* kAtomsToCache[] = { "XdndActionCopy", "XdndDrop", "XdndEnter", "XdndFinished", "XdndLeave", "XdndPosition", "XdndStatus", "XdndTypeList", NULL }; class TestDragDropClient; // Collects messages which would otherwise be sent to |xid_| via // SendXClientEvent(). class ClientMessageEventCollector { public: ClientMessageEventCollector(::Window xid, TestDragDropClient* client); virtual ~ClientMessageEventCollector(); // Returns true if |events_| is non-empty. bool HasEvents() const { return !events_.empty(); } // Pops all of |events_| and returns the popped events in the order that they // were on the stack std::vector<XClientMessageEvent> PopAllEvents(); // Adds |event| to the stack. void RecordEvent(const XClientMessageEvent& event); private: ::Window xid_; // Not owned. TestDragDropClient* client_; std::vector<XClientMessageEvent> events_; DISALLOW_COPY_AND_ASSIGN(ClientMessageEventCollector); }; // An implementation of X11MoveLoop where RunMoveLoop() always starts the move // loop. class TestMoveLoop : public X11MoveLoop { public: explicit TestMoveLoop(X11MoveLoopDelegate* delegate); ~TestMoveLoop() override; // Returns true if the move loop is running. bool IsRunning() const; // X11MoveLoop: bool RunMoveLoop(aura::Window* window, gfx::NativeCursor cursor) override; void UpdateCursor(gfx::NativeCursor cursor) override; void EndMoveLoop() override; private: // Not owned. X11MoveLoopDelegate* delegate_; // Ends the move loop. base::Closure quit_closure_; bool is_running_; }; // Implementation of DesktopDragDropClientAuraX11 which short circuits // FindWindowFor(). class SimpleTestDragDropClient : public DesktopDragDropClientAuraX11 { public: SimpleTestDragDropClient(aura::Window*, DesktopNativeCursorManager* cursor_manager); ~SimpleTestDragDropClient() override; // Sets |xid| as the topmost window for all mouse positions. void SetTopmostXWindow(XID xid); // Returns true if the move loop is running. bool IsMoveLoopRunning(); private: // DesktopDragDropClientAuraX11: scoped_ptr<X11MoveLoop> CreateMoveLoop( X11MoveLoopDelegate* delegate) override; XID FindWindowFor(const gfx::Point& screen_point) override; // The XID of the window which is simulated to be the topmost window. XID target_xid_; // The move loop. Not owned. TestMoveLoop* loop_; DISALLOW_COPY_AND_ASSIGN(SimpleTestDragDropClient); }; // Implementation of DesktopDragDropClientAuraX11 which works with a fake // |DesktopDragDropClientAuraX11::source_current_window_|. class TestDragDropClient : public SimpleTestDragDropClient { public: // The location in screen coordinates used for the synthetic mouse moves // generated in SetTopmostXWindowAndMoveMouse(). static const int kMouseMoveX; static const int kMouseMoveY; TestDragDropClient(aura::Window* window, DesktopNativeCursorManager* cursor_manager); ~TestDragDropClient() override; // Returns the XID of the window which initiated the drag. ::Window source_xwindow() { return source_xid_; } // Returns the Atom with |name|. Atom GetAtom(const char* name); // Returns true if the event's message has |type|. bool MessageHasType(const XClientMessageEvent& event, const char* type); // Sets |collector| to collect XClientMessageEvents which would otherwise // have been sent to the drop target window. void SetEventCollectorFor(::Window xid, ClientMessageEventCollector* collector); // Builds an XdndStatus message and sends it to // DesktopDragDropClientAuraX11. void OnStatus(XID target_window, bool will_accept_drop, ::Atom accepted_action); // Builds an XdndFinished message and sends it to // DesktopDragDropClientAuraX11. void OnFinished(XID target_window, bool accepted_drop, ::Atom performed_action); // Sets |xid| as the topmost window at the current mouse position and // generates a synthetic mouse move. void SetTopmostXWindowAndMoveMouse(::Window xid); private: // DesktopDragDropClientAuraX11: void SendXClientEvent(::Window xid, XEvent* event) override; // The XID of the window which initiated the drag. ::Window source_xid_; // Map of ::Windows to the collector which intercepts XClientMessageEvents // for that window. std::map< ::Window, ClientMessageEventCollector*> collectors_; ui::X11AtomCache atom_cache_; DISALLOW_COPY_AND_ASSIGN(TestDragDropClient); }; /////////////////////////////////////////////////////////////////////////////// // ClientMessageEventCollector ClientMessageEventCollector::ClientMessageEventCollector( ::Window xid, TestDragDropClient* client) : xid_(xid), client_(client) { client->SetEventCollectorFor(xid, this); } ClientMessageEventCollector::~ClientMessageEventCollector() { client_->SetEventCollectorFor(xid_, NULL); } std::vector<XClientMessageEvent> ClientMessageEventCollector::PopAllEvents() { std::vector<XClientMessageEvent> to_return; to_return.swap(events_); return to_return; } void ClientMessageEventCollector::RecordEvent( const XClientMessageEvent& event) { events_.push_back(event); } /////////////////////////////////////////////////////////////////////////////// // TestMoveLoop TestMoveLoop::TestMoveLoop(X11MoveLoopDelegate* delegate) : delegate_(delegate), is_running_(false) { } TestMoveLoop::~TestMoveLoop() { } bool TestMoveLoop::IsRunning() const { return is_running_; } bool TestMoveLoop::RunMoveLoop( aura::Window* window, gfx::NativeCursor cursor) { is_running_ = true; base::RunLoop run_loop; quit_closure_ = run_loop.QuitClosure(); run_loop.Run(); return true; } void TestMoveLoop::UpdateCursor(gfx::NativeCursor cursor) { } void TestMoveLoop::EndMoveLoop() { if (is_running_) { delegate_->OnMoveLoopEnded(); is_running_ = false; quit_closure_.Run(); } } /////////////////////////////////////////////////////////////////////////////// // SimpleTestDragDropClient SimpleTestDragDropClient::SimpleTestDragDropClient( aura::Window* window, DesktopNativeCursorManager* cursor_manager) : DesktopDragDropClientAuraX11(window, cursor_manager, gfx::GetXDisplay(), window->GetHost()->GetAcceleratedWidget()), target_xid_(None), loop_(NULL) { } SimpleTestDragDropClient::~SimpleTestDragDropClient() { } void SimpleTestDragDropClient::SetTopmostXWindow(XID xid) { target_xid_ = xid; } bool SimpleTestDragDropClient::IsMoveLoopRunning() { return loop_->IsRunning(); } scoped_ptr<X11MoveLoop> SimpleTestDragDropClient::CreateMoveLoop( X11MoveLoopDelegate* delegate) { loop_ = new TestMoveLoop(delegate); return make_scoped_ptr(loop_); } XID SimpleTestDragDropClient::FindWindowFor(const gfx::Point& screen_point) { return target_xid_; } /////////////////////////////////////////////////////////////////////////////// // TestDragDropClient // static const int TestDragDropClient::kMouseMoveX = 100; // static const int TestDragDropClient::kMouseMoveY = 200; TestDragDropClient::TestDragDropClient( aura::Window* window, DesktopNativeCursorManager* cursor_manager) : SimpleTestDragDropClient(window, cursor_manager), source_xid_(window->GetHost()->GetAcceleratedWidget()), atom_cache_(gfx::GetXDisplay(), kAtomsToCache) { } TestDragDropClient::~TestDragDropClient() { } Atom TestDragDropClient::GetAtom(const char* name) { return atom_cache_.GetAtom(name); } bool TestDragDropClient::MessageHasType(const XClientMessageEvent& event, const char* type) { return event.message_type == atom_cache_.GetAtom(type); } void TestDragDropClient::SetEventCollectorFor( ::Window xid, ClientMessageEventCollector* collector) { if (collector) collectors_[xid] = collector; else collectors_.erase(xid); } void TestDragDropClient::OnStatus(XID target_window, bool will_accept_drop, ::Atom accepted_action) { XClientMessageEvent event; event.message_type = atom_cache_.GetAtom("XdndStatus"); event.format = 32; event.window = source_xid_; event.data.l[0] = target_window; event.data.l[1] = will_accept_drop ? 1 : 0; event.data.l[2] = 0; event.data.l[3] = 0; event.data.l[4] = accepted_action; OnXdndStatus(event); } void TestDragDropClient::OnFinished(XID target_window, bool accepted_drop, ::Atom performed_action) { XClientMessageEvent event; event.message_type = atom_cache_.GetAtom("XdndFinished"); event.format = 32; event.window = source_xid_; event.data.l[0] = target_window; event.data.l[1] = accepted_drop ? 1 : 0; event.data.l[2] = performed_action; event.data.l[3] = 0; event.data.l[4] = 0; OnXdndFinished(event); } void TestDragDropClient::SetTopmostXWindowAndMoveMouse(::Window xid) { SetTopmostXWindow(xid); OnMouseMovement(gfx::Point(kMouseMoveX, kMouseMoveY), ui::EF_NONE, ui::EventTimeForNow()); } void TestDragDropClient::SendXClientEvent(::Window xid, XEvent* event) { std::map< ::Window, ClientMessageEventCollector*>::iterator it = collectors_.find(xid); if (it != collectors_.end()) it->second->RecordEvent(event->xclient); } } // namespace class DesktopDragDropClientAuraX11Test : public ViewsTestBase { public: DesktopDragDropClientAuraX11Test() { } ~DesktopDragDropClientAuraX11Test() override {} int StartDragAndDrop() { ui::OSExchangeData data; data.SetString(base::ASCIIToUTF16("Test")); return client_->StartDragAndDrop( data, widget_->GetNativeWindow()->GetRootWindow(), widget_->GetNativeWindow(), gfx::Point(), ui::DragDropTypes::DRAG_COPY, ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE); } // ViewsTestBase: void SetUp() override { ViewsTestBase::SetUp(); // Create widget to initiate the drags. widget_.reset(new Widget); Widget::InitParams params(Widget::InitParams::TYPE_WINDOW); params.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; params.native_widget = new DesktopNativeWidgetAura(widget_.get()); params.bounds = gfx::Rect(100, 100); widget_->Init(params); widget_->Show(); cursor_manager_.reset(new DesktopNativeCursorManager( DesktopCursorLoaderUpdater::Create())); client_.reset(new TestDragDropClient(widget_->GetNativeWindow(), cursor_manager_.get())); client_->Init(); } void TearDown() override { client_.reset(); cursor_manager_.reset(); widget_.reset(); ViewsTestBase::TearDown(); } TestDragDropClient* client() { return client_.get(); } private: scoped_ptr<TestDragDropClient> client_; scoped_ptr<DesktopNativeCursorManager> cursor_manager_; // The widget used to initiate drags. scoped_ptr<Widget> widget_; DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11Test); }; namespace { void BasicStep2(TestDragDropClient* client, XID toplevel) { EXPECT_TRUE(client->IsMoveLoopRunning()); ClientMessageEventCollector collector(toplevel, client); client->SetTopmostXWindowAndMoveMouse(toplevel); // XdndEnter should have been sent to |toplevel| before the XdndPosition // message. std::vector<XClientMessageEvent> events = collector.PopAllEvents(); ASSERT_EQ(2u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndEnter")); EXPECT_EQ(client->source_xwindow(), static_cast<XID>(events[0].data.l[0])); EXPECT_EQ(1, events[0].data.l[1] & 1); std::vector<Atom> targets; ui::GetAtomArrayProperty(client->source_xwindow(), "XdndTypeList", &targets); EXPECT_FALSE(targets.empty()); EXPECT_TRUE(client->MessageHasType(events[1], "XdndPosition")); EXPECT_EQ(client->source_xwindow(), static_cast<XID>(events[0].data.l[0])); const long kCoords = TestDragDropClient::kMouseMoveX << 16 | TestDragDropClient::kMouseMoveY; EXPECT_EQ(kCoords, events[1].data.l[2]); EXPECT_EQ(client->GetAtom("XdndActionCopy"), static_cast<Atom>(events[1].data.l[4])); client->OnStatus(toplevel, true, client->GetAtom("XdndActionCopy")); // Because there is no unprocessed XdndPosition, the drag drop client should // send XdndDrop immediately after the mouse is released. client->OnMouseReleased(); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndDrop")); EXPECT_EQ(client->source_xwindow(), static_cast<XID>(events[0].data.l[0])); // Send XdndFinished to indicate that the drag drop client can cleanup any // data related to this drag. The move loop should end only after the // XdndFinished message was received. EXPECT_TRUE(client->IsMoveLoopRunning()); client->OnFinished(toplevel, true, client->GetAtom("XdndActionCopy")); EXPECT_FALSE(client->IsMoveLoopRunning()); } void BasicStep3(TestDragDropClient* client, XID toplevel) { EXPECT_TRUE(client->IsMoveLoopRunning()); ClientMessageEventCollector collector(toplevel, client); client->SetTopmostXWindowAndMoveMouse(toplevel); std::vector<XClientMessageEvent> events = collector.PopAllEvents(); ASSERT_EQ(2u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndEnter")); EXPECT_TRUE(client->MessageHasType(events[1], "XdndPosition")); client->OnStatus(toplevel, true, client->GetAtom("XdndActionCopy")); client->SetTopmostXWindowAndMoveMouse(toplevel); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndPosition")); // We have not received an XdndStatus ack for the second XdndPosition message. // Test that sending XdndDrop is delayed till the XdndStatus ack is received. client->OnMouseReleased(); EXPECT_FALSE(collector.HasEvents()); client->OnStatus(toplevel, true, client->GetAtom("XdndActionCopy")); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndDrop")); EXPECT_TRUE(client->IsMoveLoopRunning()); client->OnFinished(toplevel, true, client->GetAtom("XdndActionCopy")); EXPECT_FALSE(client->IsMoveLoopRunning()); } } // namespace TEST_F(DesktopDragDropClientAuraX11Test, Basic) { XID toplevel = 1; base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(&BasicStep2, client(), toplevel)); int result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_COPY, result); // Do another drag and drop to test that the data is properly cleaned up as a // result of the XdndFinished message. base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(&BasicStep3, client(), toplevel)); result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_COPY, result); } namespace { void TargetDoesNotRespondStep2(TestDragDropClient* client) { EXPECT_TRUE(client->IsMoveLoopRunning()); XID toplevel = 1; ClientMessageEventCollector collector(toplevel, client); client->SetTopmostXWindowAndMoveMouse(toplevel); std::vector<XClientMessageEvent> events = collector.PopAllEvents(); ASSERT_EQ(2u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndEnter")); EXPECT_TRUE(client->MessageHasType(events[1], "XdndPosition")); client->OnMouseReleased(); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndLeave")); EXPECT_FALSE(client->IsMoveLoopRunning()); } } // namespace // Test that we do not wait for the target to send XdndStatus if we have not // received any XdndStatus messages at all from the target. The Unity // DNDCollectionWindow is an example of an XdndAware target which does not // respond to XdndPosition messages at all. TEST_F(DesktopDragDropClientAuraX11Test, TargetDoesNotRespond) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&TargetDoesNotRespondStep2, client())); int result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_NONE, result); } namespace { void QueuePositionStep2(TestDragDropClient* client) { EXPECT_TRUE(client->IsMoveLoopRunning()); XID toplevel = 1; ClientMessageEventCollector collector(toplevel, client); client->SetTopmostXWindowAndMoveMouse(toplevel); client->SetTopmostXWindowAndMoveMouse(toplevel); client->SetTopmostXWindowAndMoveMouse(toplevel); std::vector<XClientMessageEvent> events = collector.PopAllEvents(); ASSERT_EQ(2u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndEnter")); EXPECT_TRUE(client->MessageHasType(events[1], "XdndPosition")); client->OnStatus(toplevel, true, client->GetAtom("XdndActionCopy")); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndPosition")); client->OnStatus(toplevel, true, client->GetAtom("XdndActionCopy")); EXPECT_FALSE(collector.HasEvents()); client->OnMouseReleased(); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndDrop")); EXPECT_TRUE(client->IsMoveLoopRunning()); client->OnFinished(toplevel, true, client->GetAtom("XdndActionCopy")); EXPECT_FALSE(client->IsMoveLoopRunning()); } } // namespace // Test that XdndPosition messages are queued till the pending XdndPosition // message is acked via an XdndStatus message. TEST_F(DesktopDragDropClientAuraX11Test, QueuePosition) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&QueuePositionStep2, client())); int result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_COPY, result); } namespace { void TargetChangesStep2(TestDragDropClient* client) { EXPECT_TRUE(client->IsMoveLoopRunning()); XID toplevel1 = 1; ClientMessageEventCollector collector1(toplevel1, client); client->SetTopmostXWindowAndMoveMouse(toplevel1); std::vector<XClientMessageEvent> events1 = collector1.PopAllEvents(); ASSERT_EQ(2u, events1.size()); EXPECT_TRUE(client->MessageHasType(events1[0], "XdndEnter")); EXPECT_TRUE(client->MessageHasType(events1[1], "XdndPosition")); XID toplevel2 = 2; ClientMessageEventCollector collector2(toplevel2, client); client->SetTopmostXWindowAndMoveMouse(toplevel2); // It is possible for |toplevel1| to send XdndStatus after the source has sent // XdndLeave but before |toplevel1| has received the XdndLeave message. The // XdndStatus message should be ignored. client->OnStatus(toplevel1, true, client->GetAtom("XdndActionCopy")); events1 = collector1.PopAllEvents(); ASSERT_EQ(1u, events1.size()); EXPECT_TRUE(client->MessageHasType(events1[0], "XdndLeave")); std::vector<XClientMessageEvent> events2 = collector2.PopAllEvents(); ASSERT_EQ(2u, events2.size()); EXPECT_TRUE(client->MessageHasType(events2[0], "XdndEnter")); EXPECT_TRUE(client->MessageHasType(events2[1], "XdndPosition")); client->OnStatus(toplevel2, true, client->GetAtom("XdndActionCopy")); client->OnMouseReleased(); events2 = collector2.PopAllEvents(); ASSERT_EQ(1u, events2.size()); EXPECT_TRUE(client->MessageHasType(events2[0], "XdndDrop")); EXPECT_TRUE(client->IsMoveLoopRunning()); client->OnFinished(toplevel2, true, client->GetAtom("XdndActionCopy")); EXPECT_FALSE(client->IsMoveLoopRunning()); } } // namespace // Test the behavior when the target changes during a drag. TEST_F(DesktopDragDropClientAuraX11Test, TargetChanges) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&TargetChangesStep2, client())); int result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_COPY, result); } namespace { void RejectAfterMouseReleaseStep2(TestDragDropClient* client) { EXPECT_TRUE(client->IsMoveLoopRunning()); XID toplevel = 1; ClientMessageEventCollector collector(toplevel, client); client->SetTopmostXWindowAndMoveMouse(toplevel); std::vector<XClientMessageEvent> events = collector.PopAllEvents(); ASSERT_EQ(2u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndEnter")); EXPECT_TRUE(client->MessageHasType(events[1], "XdndPosition")); client->OnStatus(toplevel, true, client->GetAtom("XdndActionCopy")); EXPECT_FALSE(collector.HasEvents()); // Send another mouse move such that there is a pending XdndPosition. client->SetTopmostXWindowAndMoveMouse(toplevel); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndPosition")); client->OnMouseReleased(); // Reject the drop. client->OnStatus(toplevel, false, None); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndLeave")); EXPECT_FALSE(client->IsMoveLoopRunning()); } void RejectAfterMouseReleaseStep3(TestDragDropClient* client) { EXPECT_TRUE(client->IsMoveLoopRunning()); XID toplevel = 2; ClientMessageEventCollector collector(toplevel, client); client->SetTopmostXWindowAndMoveMouse(toplevel); std::vector<XClientMessageEvent> events = collector.PopAllEvents(); ASSERT_EQ(2u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndEnter")); EXPECT_TRUE(client->MessageHasType(events[1], "XdndPosition")); client->OnStatus(toplevel, true, client->GetAtom("XdndActionCopy")); EXPECT_FALSE(collector.HasEvents()); client->OnMouseReleased(); events = collector.PopAllEvents(); ASSERT_EQ(1u, events.size()); EXPECT_TRUE(client->MessageHasType(events[0], "XdndDrop")); EXPECT_TRUE(client->IsMoveLoopRunning()); client->OnFinished(toplevel, false, None); EXPECT_FALSE(client->IsMoveLoopRunning()); } } // namespace // Test that the source sends XdndLeave instead of XdndDrop if the drag // operation is rejected after the mouse is released. TEST_F(DesktopDragDropClientAuraX11Test, RejectAfterMouseRelease) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&RejectAfterMouseReleaseStep2, client())); int result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_NONE, result); // Repeat the test but reject the drop in the XdndFinished message instead. base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&RejectAfterMouseReleaseStep3, client())); result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_NONE, result); } namespace { // DragDropDelegate which counts the number of each type of drag-drop event and // keeps track of the most recent drag-drop event. class TestDragDropDelegate : public aura::client::DragDropDelegate { public: TestDragDropDelegate() : num_enters_(0), num_updates_(0), num_exits_(0), num_drops_(0), last_event_flags_(0) {} ~TestDragDropDelegate() override {} int num_enters() const { return num_enters_; } int num_updates() const { return num_updates_; } int num_exits() const { return num_exits_; } int num_drops() const { return num_drops_; } gfx::Point last_event_mouse_position() const { return last_event_mouse_position_; } int last_event_flags() const { return last_event_flags_; } private: // aura::client::DragDropDelegate: void OnDragEntered(const ui::DropTargetEvent& event) override { ++num_enters_; last_event_mouse_position_ = event.location(); last_event_flags_ = event.flags(); } int OnDragUpdated(const ui::DropTargetEvent& event) override { ++num_updates_; last_event_mouse_position_ = event.location(); last_event_flags_ = event.flags(); return ui::DragDropTypes::DRAG_COPY; } void OnDragExited() override { ++num_exits_; } int OnPerformDrop(const ui::DropTargetEvent& event) override { ++num_drops_; last_event_mouse_position_ = event.location(); last_event_flags_ = event.flags(); return ui::DragDropTypes::DRAG_COPY; } int num_enters_; int num_updates_; int num_exits_; int num_drops_; gfx::Point last_event_mouse_position_; int last_event_flags_; DISALLOW_COPY_AND_ASSIGN(TestDragDropDelegate); }; } // namespace // Test harness for tests where the drag and drop source and target are both // Chrome windows. class DesktopDragDropClientAuraX11ChromeSourceTargetTest : public ViewsTestBase { public: DesktopDragDropClientAuraX11ChromeSourceTargetTest() { } ~DesktopDragDropClientAuraX11ChromeSourceTargetTest() override {} int StartDragAndDrop() { ui::OSExchangeData data; data.SetString(base::ASCIIToUTF16("Test")); return client_->StartDragAndDrop( data, widget_->GetNativeWindow()->GetRootWindow(), widget_->GetNativeWindow(), gfx::Point(), ui::DragDropTypes::DRAG_COPY, ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE); } // ViewsTestBase: void SetUp() override { ViewsTestBase::SetUp(); // Create widget to initiate the drags. widget_.reset(new Widget); Widget::InitParams params(Widget::InitParams::TYPE_WINDOW); params.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; params.native_widget = new DesktopNativeWidgetAura(widget_.get()); params.bounds = gfx::Rect(100, 100); widget_->Init(params); widget_->Show(); cursor_manager_.reset(new DesktopNativeCursorManager( DesktopCursorLoaderUpdater::Create())); client_.reset(new SimpleTestDragDropClient(widget_->GetNativeWindow(), cursor_manager_.get())); client_->Init(); } void TearDown() override { client_.reset(); cursor_manager_.reset(); widget_.reset(); ViewsTestBase::TearDown(); } SimpleTestDragDropClient* client() { return client_.get(); } private: scoped_ptr<SimpleTestDragDropClient> client_; scoped_ptr<DesktopNativeCursorManager> cursor_manager_; // The widget used to initiate drags. scoped_ptr<Widget> widget_; DISALLOW_COPY_AND_ASSIGN(DesktopDragDropClientAuraX11ChromeSourceTargetTest); }; namespace { void ChromeSourceTargetStep2(SimpleTestDragDropClient* client, int modifier_flags) { EXPECT_TRUE(client->IsMoveLoopRunning()); scoped_ptr<Widget> target_widget(new Widget); Widget::InitParams target_params(Widget::InitParams::TYPE_WINDOW_FRAMELESS); target_params.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET; target_params.native_widget = new DesktopNativeWidgetAura(target_widget.get()); target_params.bounds = gfx::Rect(100, 100); target_widget->Init(target_params); target_widget->Show(); TestDragDropDelegate* delegate = new TestDragDropDelegate; aura::client::SetDragDropDelegate(target_widget->GetNativeWindow(), delegate); client->SetTopmostXWindow( target_widget->GetNativeView()->GetHost()->GetAcceleratedWidget()); gfx::Rect target_widget_bounds_in_screen = target_widget->GetWindowBoundsInScreen(); gfx::Point point1_in_screen = target_widget_bounds_in_screen.CenterPoint(); gfx::Point point1_in_target_widget( target_widget_bounds_in_screen.width() / 2, target_widget_bounds_in_screen.height() / 2); gfx::Point point2_in_screen = point1_in_screen + gfx::Vector2d(1, 0); gfx::Point point2_in_target_widget = point1_in_target_widget + gfx::Vector2d(1, 0); client->OnMouseMovement(point1_in_screen, modifier_flags, ui::EventTimeForNow()); EXPECT_EQ(1, delegate->num_enters()); EXPECT_EQ(1, delegate->num_updates()); EXPECT_EQ(0, delegate->num_exits()); EXPECT_EQ(0, delegate->num_drops()); EXPECT_EQ(point1_in_target_widget.ToString(), delegate->last_event_mouse_position().ToString()); EXPECT_EQ(modifier_flags, delegate->last_event_flags()); client->OnMouseMovement(point2_in_screen, modifier_flags, ui::EventTimeForNow()); EXPECT_EQ(1, delegate->num_enters()); EXPECT_EQ(2, delegate->num_updates()); EXPECT_EQ(0, delegate->num_exits()); EXPECT_EQ(0, delegate->num_drops()); EXPECT_EQ(point2_in_target_widget.ToString(), delegate->last_event_mouse_position().ToString()); EXPECT_EQ(modifier_flags, delegate->last_event_flags()); client->OnMouseReleased(); EXPECT_EQ(1, delegate->num_enters()); EXPECT_EQ(2, delegate->num_updates()); EXPECT_EQ(0, delegate->num_exits()); EXPECT_EQ(1, delegate->num_drops()); EXPECT_EQ(point2_in_target_widget.ToString(), delegate->last_event_mouse_position().ToString()); EXPECT_EQ(modifier_flags, delegate->last_event_flags()); EXPECT_FALSE(client->IsMoveLoopRunning()); } } // namespace TEST_F(DesktopDragDropClientAuraX11ChromeSourceTargetTest, Basic) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&ChromeSourceTargetStep2, client(), ui::EF_NONE)); int result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_COPY, result); } // Test that if 'Ctrl' is pressed during a drag and drop operation, that // the aura::client::DragDropDelegate is properly notified. TEST_F(DesktopDragDropClientAuraX11ChromeSourceTargetTest, CtrlPressed) { base::MessageLoop::current()->PostTask( FROM_HERE, base::Bind(&ChromeSourceTargetStep2, client(), ui::EF_CONTROL_DOWN)); int result = StartDragAndDrop(); EXPECT_EQ(ui::DragDropTypes::DRAG_COPY, result); } } // namespace views
d5bf730999e347a405c111005c4cba1e24a47cfc
e4d4c543dd46a1fabdf44480953f8cd2194d0fc9
/UVA/UVA 11827 - Maximum GCD.cpp
582573da2c2cf9384044fb4008102a3db34be9d8
[]
no_license
jose-joaquim/Competitive-Programming
a764a177c73f15fb50b37d061ec0c0ef0d77269b
f4ebee0b927a50b927f3b4b2ea13fe0f8d132b69
refs/heads/master
2023-04-03T19:40:36.269056
2018-06-28T21:27:29
2018-06-28T21:27:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,061
cpp
//Author/Autor: José Joaquim de Andrade Neto //Link da questão: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2927 #include <iostream> #include <cstdio> #include <cmath> #include <vector> #include <sstream> #include <string.h> #include <stdlib.h> #include <string> using namespace std; int gcd(int a, int b){ return b == 0 ? a : gcd(b, a % b); } int lcm(int a, int b){ return a * (b / gcd(a, b)); } /*int recursao(int q, vector<int> &vet){ if(q == 0) return gcd(0, vet[0]); else return gcd(vet[q], recursao(q-1, vet)); } void backtrack(){ }*/ int main(int argc, char **argv) { int N; scanf("%d", &N); cin.ignore(); for(int i = 0; i < N; i++){ vector<int> my; string linha, numero = ""; getline(cin, linha); stringstream ss(linha); while(ss >> numero){ my.push_back(stoi(numero)); } int sz = (int) my.size(); int ans = -1; for(int i = sz-1; i >= 0; i--){ for(int j = 0; j < i; j++){ ans = max(ans, gcd(my[i], my[j])); } } printf("%d\n", ans); } return 0; }
[ "José Joaquim" ]
José Joaquim
3888b937fb9782ef6919d65083717114e948b48f
1bf8b46afad5402fe6fa74293b464e1ca5ee5fd7
/Demo/Shenmue3SDK/SDK/BTT_PlayerFollow_MoveToSpline_functions.cpp
6c3dd0f5750153210902271cb722298e396a2089
[]
no_license
LemonHaze420/ShenmueIIISDK
a4857eebefc7e66dba9f667efa43301c5efcdb62
47a433b5e94f171bbf5256e3ff4471dcec2c7d7e
refs/heads/master
2021-06-30T17:33:06.034662
2021-01-19T20:33:33
2021-01-19T20:33:33
214,824,713
4
0
null
null
null
null
UTF-8
C++
false
false
9,552
cpp
#include "../SDK.h" // Name: S3Demo, Version: 0.90.0 #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- // Functions //--------------------------------------------------------------------------- // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.UpdateClosestSplinePoint // (Public, HasDefaults, BlueprintCallable, BlueprintEvent) void UBTT_PlayerFollow_MoveToSpline_C::UpdateClosestSplinePoint() { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.UpdateClosestSplinePoint"); UBTT_PlayerFollow_MoveToSpline_C_UpdateClosestSplinePoint_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.UpdateClosestSplineDistance // (Public, HasDefaults, BlueprintCallable, BlueprintEvent) void UBTT_PlayerFollow_MoveToSpline_C::UpdateClosestSplineDistance() { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.UpdateClosestSplineDistance"); UBTT_PlayerFollow_MoveToSpline_C_UpdateClosestSplineDistance_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.StopPathing // (Public, BlueprintCallable, BlueprintEvent) void UBTT_PlayerFollow_MoveToSpline_C::StopPathing() { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.StopPathing"); UBTT_PlayerFollow_MoveToSpline_C_StopPathing_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.Finish // (Public, BlueprintCallable, BlueprintEvent) // Parameters: // bool Success (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) void UBTT_PlayerFollow_MoveToSpline_C::Finish(bool Success) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.Finish"); UBTT_PlayerFollow_MoveToSpline_C_Finish_Params params; params.Success = Success; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.IsPlayerInSpline // (Public, HasOutParms, HasDefaults, BlueprintCallable, BlueprintEvent, BlueprintPure) // Parameters: // float Buffer (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) // bool ReturnValue (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData) bool UBTT_PlayerFollow_MoveToSpline_C::IsPlayerInSpline(float Buffer) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.IsPlayerInSpline"); UBTT_PlayerFollow_MoveToSpline_C_IsPlayerInSpline_Params params; params.Buffer = Buffer; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; return params.ReturnValue; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.OnFail_227D29014046C8BB113903BF06DFD651 // (BlueprintCallable, BlueprintEvent) // Parameters: // TEnumAsByte<EPathFollowingResult> MovementResult (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) void UBTT_PlayerFollow_MoveToSpline_C::OnFail_227D29014046C8BB113903BF06DFD651(TEnumAsByte<EPathFollowingResult> MovementResult) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.OnFail_227D29014046C8BB113903BF06DFD651"); UBTT_PlayerFollow_MoveToSpline_C_OnFail_227D29014046C8BB113903BF06DFD651_Params params; params.MovementResult = MovementResult; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.OnSuccess_227D29014046C8BB113903BF06DFD651 // (BlueprintCallable, BlueprintEvent) // Parameters: // TEnumAsByte<EPathFollowingResult> MovementResult (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) void UBTT_PlayerFollow_MoveToSpline_C::OnSuccess_227D29014046C8BB113903BF06DFD651(TEnumAsByte<EPathFollowingResult> MovementResult) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.OnSuccess_227D29014046C8BB113903BF06DFD651"); UBTT_PlayerFollow_MoveToSpline_C_OnSuccess_227D29014046C8BB113903BF06DFD651_Params params; params.MovementResult = MovementResult; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ReceiveAbortAI // (Event, Protected, BlueprintEvent) // Parameters: // class AAIController** OwnerController (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) // class APawn** ControlledPawn (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) void UBTT_PlayerFollow_MoveToSpline_C::ReceiveAbortAI(class AAIController** OwnerController, class APawn** ControlledPawn) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ReceiveAbortAI"); UBTT_PlayerFollow_MoveToSpline_C_ReceiveAbortAI_Params params; params.OwnerController = OwnerController; params.ControlledPawn = ControlledPawn; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ReceiveTickAI // (Event, Protected, BlueprintEvent) // Parameters: // class AAIController** OwnerController (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) // class APawn** ControlledPawn (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) // float* DeltaSeconds (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) void UBTT_PlayerFollow_MoveToSpline_C::ReceiveTickAI(class AAIController** OwnerController, class APawn** ControlledPawn, float* DeltaSeconds) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ReceiveTickAI"); UBTT_PlayerFollow_MoveToSpline_C_ReceiveTickAI_Params params; params.OwnerController = OwnerController; params.ControlledPawn = ControlledPawn; params.DeltaSeconds = DeltaSeconds; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.WaitAndRepath // (BlueprintCallable, BlueprintEvent) void UBTT_PlayerFollow_MoveToSpline_C::WaitAndRepath() { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.WaitAndRepath"); UBTT_PlayerFollow_MoveToSpline_C_WaitAndRepath_Params params; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ReceiveExecuteAI // (Event, Protected, BlueprintEvent) // Parameters: // class AAIController** OwnerController (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) // class APawn** ControlledPawn (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) void UBTT_PlayerFollow_MoveToSpline_C::ReceiveExecuteAI(class AAIController** OwnerController, class APawn** ControlledPawn) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ReceiveExecuteAI"); UBTT_PlayerFollow_MoveToSpline_C_ReceiveExecuteAI_Params params; params.OwnerController = OwnerController; params.ControlledPawn = ControlledPawn; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } // Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ExecuteUbergraph_BTT_PlayerFollow_MoveToSpline // () // Parameters: // int EntryPoint (BlueprintVisible, BlueprintReadOnly, Parm, ZeroConstructor, IsPlainOldData) void UBTT_PlayerFollow_MoveToSpline_C::ExecuteUbergraph_BTT_PlayerFollow_MoveToSpline(int EntryPoint) { static auto fn = UObject::FindObject<UFunction>("Function BTT_PlayerFollow_MoveToSpline.BTT_PlayerFollow_MoveToSpline_C.ExecuteUbergraph_BTT_PlayerFollow_MoveToSpline"); UBTT_PlayerFollow_MoveToSpline_C_ExecuteUbergraph_BTT_PlayerFollow_MoveToSpline_Params params; params.EntryPoint = EntryPoint; auto flags = fn->FunctionFlags; UObject::ProcessEvent(fn, &params); fn->FunctionFlags = flags; } } #ifdef _MSC_VER #pragma pack(pop) #endif
3c552c8e518a4edaad8a1380c8bf03bf66de6535
efc4772a909c360a5c82a80d5bda0971415a0361
/third_party/openh264/src/test/encoder/EncUT_Sample.cpp
1dd94310a1c2256658a3308f29bee67755774344
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jasonblog/RTMPLive
7ce6c9f950450eedff21ebae7505a62c9cb9f403
92a018f50f7df19c255b106dc7f584b90f1fe116
refs/heads/master
2020-04-22T01:31:04.504948
2019-02-13T05:30:19
2019-02-13T05:30:19
170,016,488
0
1
null
null
null
null
UTF-8
C++
false
false
29,365
cpp
#include <gtest/gtest.h> #include <math.h> #include "cpu_core.h" #include "cpu.h" #include "sample.h" #include "sad_common.h" #include "get_intra_predictor.h" using namespace WelsEnc; #define GENERATE_Intra16x16_UT(func, ref, ASM, CPUFLAGS) \ TEST (IntraSadSatdFuncTest, func) { \ const int32_t iLineSizeDec = 32; \ const int32_t iLineSizeEnc = 32; \ int32_t tmpa, tmpb; \ int32_t iBestMode_c, iBestMode_a, iLambda = 50; \ if (ASM) {\ int32_t iCpuCores = 0; \ uint32_t m_uiCpuFeatureFlag = WelsCPUFeatureDetect (&iCpuCores); \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ } \ ENFORCE_STACK_ALIGN_1D (uint8_t, pDec, iLineSizeDec << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pEnc, iLineSizeEnc << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pDst, 512, 16); \ for (int i = 0; i < (iLineSizeDec << 5); i++) \ pDec[i] = rand() % 256; \ for (int i = 0; i < (iLineSizeEnc << 5); i++) \ pEnc[i] = rand() % 256; \ for (int i = 0; i < 512; i++) \ pDst[i] = rand() % 256; \ tmpa = ref (pDec + 128, iLineSizeDec, pEnc, iLineSizeEnc, &iBestMode_c, iLambda, pDst); \ tmpb = func (pDec + 128, iLineSizeDec, pEnc, iLineSizeEnc, &iBestMode_a, iLambda, pDst); \ ASSERT_EQ (tmpa, tmpb); \ ASSERT_EQ (iBestMode_c, iBestMode_a); \ } #define GENERATE_Intra4x4_UT(func, ASM, CPUFLAGS) \ TEST (IntraSadSatdFuncTest, func) { \ const int32_t iLineSizeDec = 32; \ const int32_t iLineSizeEnc = 32; \ int32_t tmpa, tmpb; \ int32_t iBestMode_c, iBestMode_a, iLambda = 50; \ int32_t lambda[2] = {iLambda << 2, iLambda}; \ int32_t iPredMode = rand() % 3; \ if (ASM) {\ int32_t iCpuCores = 0; \ uint32_t m_uiCpuFeatureFlag = WelsCPUFeatureDetect (&iCpuCores); \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ } \ ENFORCE_STACK_ALIGN_1D (uint8_t, pDec, iLineSizeDec << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pEnc, iLineSizeEnc << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pDst, 512, 16); \ for (int i = 0; i < (iLineSizeDec << 5); i++) \ pDec[i] = rand() % 256; \ for (int i = 0; i < (iLineSizeEnc << 5); i++) \ pEnc[i] = rand() % 256; \ for (int i = 0; i < 512; i++) \ pDst[i] = rand() % 256; \ tmpa = WelsSampleSatdIntra4x4Combined3_c (pDec + 128, iLineSizeDec, pEnc, iLineSizeEnc, pDst, &iBestMode_c, \ lambda[iPredMode == 2], lambda[iPredMode == 1], lambda[iPredMode == 0]); \ tmpb = func (pDec + 128, iLineSizeDec, pEnc, iLineSizeEnc, pDst, &iBestMode_a, \ lambda[iPredMode == 2], lambda[iPredMode == 1], lambda[iPredMode == 0]); \ ASSERT_EQ (tmpa, tmpb); \ ASSERT_EQ (iBestMode_c, iBestMode_a); \ } #define GENERATE_Intra8x8_UT(func, ref, ASM, CPUFLAGS) \ TEST (IntraSadSatdFuncTest, func) { \ const int32_t iLineSizeDec = 32; \ const int32_t iLineSizeEnc = 32; \ int32_t tmpa, tmpb; \ int32_t iBestMode_c, iBestMode_a, iLambda = 50; \ if (ASM) {\ int32_t iCpuCores = 0; \ uint32_t m_uiCpuFeatureFlag = WelsCPUFeatureDetect (&iCpuCores); \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ } \ ENFORCE_STACK_ALIGN_1D (uint8_t, pDecCb, iLineSizeDec << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pEncCb, iLineSizeEnc << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pDecCr, iLineSizeDec << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pEncCr, iLineSizeEnc << 5, 16); \ ENFORCE_STACK_ALIGN_1D (uint8_t, pDstChma, 512, 16); \ for (int i = 0; i < (iLineSizeDec << 5); i++) { \ pDecCb[i] = rand() % 256; \ pDecCr[i] = rand() % 256; \ } \ for (int i = 0; i < (iLineSizeEnc << 5); i++) { \ pEncCb[i] = rand() % 256; \ pEncCr[i] = rand() % 256; \ } \ for (int i = 0; i < 512; i++) \ pDstChma[i] = rand() % 256; \ tmpa = ref (pDecCb + 128, iLineSizeDec, pEncCb, iLineSizeEnc, &iBestMode_c, iLambda, \ pDstChma, pDecCr + 128, pEncCr); \ tmpb = func (pDecCb + 128, iLineSizeDec, pEncCb, iLineSizeEnc, &iBestMode_a, iLambda, \ pDstChma, pDecCr + 128, pEncCr); \ ASSERT_EQ (tmpa, tmpb); \ ASSERT_EQ (iBestMode_c, iBestMode_a); \ } #ifdef X86_ASM GENERATE_Intra16x16_UT(WelsIntra16x16Combined3Sad_ssse3, WelsSampleSadIntra16x16Combined3_c, 1, WELS_CPU_SSSE3) GENERATE_Intra16x16_UT(WelsIntra16x16Combined3Satd_sse41, WelsSampleSatdIntra16x16Combined3_c, 1, WELS_CPU_SSE41) GENERATE_Intra8x8_UT(WelsIntraChroma8x8Combined3Satd_sse41, WelsSampleSatdIntra8x8Combined3_c, 1, WELS_CPU_SSE41) GENERATE_Intra4x4_UT(WelsSampleSatdThree4x4_sse2, 1, WELS_CPU_SSE2) #endif #ifdef HAVE_NEON GENERATE_Intra16x16_UT(WelsIntra16x16Combined3Sad_neon, WelsSampleSadIntra16x16Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra16x16_UT(WelsIntra16x16Combined3Satd_neon, WelsSampleSatdIntra16x16Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra8x8_UT(WelsIntra8x8Combined3Satd_neon, WelsSampleSatdIntra8x8Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra8x8_UT(WelsIntra8x8Combined3Sad_neon, WelsSampleSadIntra8x8Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra4x4_UT(WelsIntra4x4Combined3Satd_neon, 1, WELS_CPU_NEON) #endif #ifdef HAVE_NEON_AARCH64 GENERATE_Intra16x16_UT(WelsIntra16x16Combined3Sad_AArch64_neon, WelsSampleSadIntra16x16Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra16x16_UT(WelsIntra16x16Combined3Satd_AArch64_neon, WelsSampleSatdIntra16x16Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra8x8_UT(WelsIntra8x8Combined3Satd_AArch64_neon, WelsSampleSatdIntra8x8Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra8x8_UT(WelsIntra8x8Combined3Sad_AArch64_neon, WelsSampleSadIntra8x8Combined3_c, 1, WELS_CPU_NEON) GENERATE_Intra4x4_UT(WelsIntra4x4Combined3Satd_AArch64_neon, 1, WELS_CPU_NEON) #endif #define ASSERT_MEMORY_FAIL2X(A, B) \ if (NULL == B) { \ pMemAlign->WelsFree(A, "Sad_SrcA");\ ASSERT_TRUE(0); \ } #define ASSERT_MEMORY_FAIL3X(A, B, C) \ if (NULL == C) { \ pMemAlign->WelsFree(A, "Sad_SrcA"); \ pMemAlign->WelsFree(B, "Sad_SrcB"); \ ASSERT_TRUE(0); \ } #define PIXEL_STRIDE 32 class SadSatdCFuncTest : public testing::Test { public: virtual void SetUp() { pMemAlign = new CMemoryAlign(0); m_iStrideA = rand() % 256 + PIXEL_STRIDE; m_iStrideB = rand() % 256 + PIXEL_STRIDE; m_pPixSrcA = (uint8_t*)pMemAlign->WelsMalloc(m_iStrideA << 5, "Sad_m_pPixSrcA"); ASSERT_TRUE(NULL != m_pPixSrcA); m_pPixSrcB = (uint8_t*)pMemAlign->WelsMalloc(m_iStrideB << 5, "Sad_m_pPixSrcB"); ASSERT_MEMORY_FAIL2X(m_pPixSrcA, m_pPixSrcB) m_pSad = (int32_t*)pMemAlign->WelsMalloc(4 * sizeof(int32_t), "m_pSad"); ASSERT_MEMORY_FAIL3X(m_pPixSrcA, m_pPixSrcB, m_pSad) } virtual void TearDown() { pMemAlign->WelsFree(m_pPixSrcA, "Sad_m_pPixSrcA"); pMemAlign->WelsFree(m_pPixSrcB, "Sad_m_pPixSrcB"); pMemAlign->WelsFree(m_pSad, "m_pSad"); delete pMemAlign; } public: uint8_t* m_pPixSrcA; uint8_t* m_pPixSrcB; int32_t m_iStrideA; int32_t m_iStrideB; int32_t* m_pSad; CMemoryAlign* pMemAlign; }; TEST_F(SadSatdCFuncTest, WelsSampleSad4x4_c) { for (int i = 0; i < (m_iStrideA << 2); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 2); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t iSumSad = 0; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { iSumSad += abs(pPixA[j] - pPixB[j]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } EXPECT_EQ(WelsSampleSad4x4_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSad8x4_c) { for (int i = 0; i < (m_iStrideA << 2); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 2); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t iSumSad = 0; for (int i = 0; i < 4; i++) { for (int j = 0; j < 8; j++) { iSumSad += abs(pPixA[j] - pPixB[j]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } EXPECT_EQ(WelsSampleSad8x4_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSad4x8_c) { for (int i = 0; i < (m_iStrideA << 3); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 3); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t iSumSad = 0; for (int i = 0; i < 8; i++) { for (int j = 0; j < 4; j++) { iSumSad += abs(pPixA[j] - pPixB[j]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } EXPECT_EQ(WelsSampleSad4x8_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSad8x8_c) { for (int i = 0; i < (m_iStrideA << 3); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 3); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t iSumSad = 0; for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { iSumSad += abs(pPixA[j] - pPixB[j]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } EXPECT_EQ(WelsSampleSad8x8_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSad16x8_c) { for (int i = 0; i < (m_iStrideA << 3); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 3); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t iSumSad = 0; for (int i = 0; i < 8; i++) { for (int j = 0; j < 16; j++) { iSumSad += abs(pPixA[j] - pPixB[j]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } EXPECT_EQ(WelsSampleSad16x8_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSad8x16_c) { for (int i = 0; i < (m_iStrideA << 4); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 4); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t iSumSad = 0; for (int i = 0; i < 16; i++) { for (int j = 0; j < 8; j++) { iSumSad += abs(pPixA[j] - pPixB[j]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } EXPECT_EQ(WelsSampleSad8x16_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSad16x16_c) { for (int i = 0; i < (m_iStrideA << 4); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 4); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t iSumSad = 0; for (int i = 0; i < 16; i++) { for (int j = 0; j < 16; j++) { iSumSad += abs(pPixA[j] - pPixB[j]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } EXPECT_EQ(WelsSampleSad16x16_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSatd4x4_c) { for (int i = 0; i < (m_iStrideA << 2); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 2); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB; int32_t W[16], T[16], Y[16], k = 0; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { W[k++] = pPixA[j] - pPixB[j]; } pPixA += m_iStrideA; pPixB += m_iStrideB; } T[0] = W[0] + W[4] + W[8] + W[12]; T[1] = W[1] + W[5] + W[9] + W[13]; T[2] = W[2] + W[6] + W[10] + W[14]; T[3] = W[3] + W[7] + W[11] + W[15]; T[4] = W[0] + W[4] - W[8] - W[12]; T[5] = W[1] + W[5] - W[9] - W[13]; T[6] = W[2] + W[6] - W[10] - W[14]; T[7] = W[3] + W[7] - W[11] - W[15]; T[8] = W[0] - W[4] - W[8] + W[12]; T[9] = W[1] - W[5] - W[9] + W[13]; T[10] = W[2] - W[6] - W[10] + W[14]; T[11] = W[3] - W[7] - W[11] + W[15]; T[12] = W[0] - W[4] + W[8] - W[12]; T[13] = W[1] - W[5] + W[9] - W[13]; T[14] = W[2] - W[6] + W[10] - W[14]; T[15] = W[3] - W[7] + W[11] - W[15]; Y[0] = T[0] + T[1] + T[2] + T[3]; Y[1] = T[0] + T[1] - T[2] - T[3]; Y[2] = T[0] - T[1] - T[2] + T[3]; Y[3] = T[0] - T[1] + T[2] - T[3]; Y[4] = T[4] + T[5] + T[6] + T[7]; Y[5] = T[4] + T[5] - T[6] - T[7]; Y[6] = T[4] - T[5] - T[6] + T[7]; Y[7] = T[4] - T[5] + T[6] - T[7]; Y[8] = T[8] + T[9] + T[10] + T[11]; Y[9] = T[8] + T[9] - T[10] - T[11]; Y[10] = T[8] - T[9] - T[10] + T[11]; Y[11] = T[8] - T[9] + T[10] - T[11]; Y[12] = T[12] + T[13] + T[14] + T[15]; Y[13] = T[12] + T[13] - T[14] - T[15]; Y[14] = T[12] - T[13] - T[14] + T[15]; Y[15] = T[12] - T[13] + T[14] - T[15]; int32_t iSumSatd = 0; for (int i = 0; i < 16; i++) { iSumSatd += abs(Y[i]); } EXPECT_EQ(WelsSampleSatd4x4_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), (iSumSatd + 1) >> 1); } TEST_F(SadSatdCFuncTest, WelsSampleSadFour16x16_c) { for (int i = 0; i < (m_iStrideA << 5); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 5); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB + m_iStrideB; int32_t iSumSad = 0; for (int i = 0; i < 16; i++) { for (int j = 0; j < 16; j++) { iSumSad += abs(pPixA[j] - pPixB[j - 1]); iSumSad += abs(pPixA[j] - pPixB[j + 1]); iSumSad += abs(pPixA[j] - pPixB[j - m_iStrideB]); iSumSad += abs(pPixA[j] - pPixB[j + m_iStrideB]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } WelsSampleSadFour16x16_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); EXPECT_EQ(m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSadFour16x8_c) { for (int i = 0; i < (m_iStrideA << 5); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 5); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB + m_iStrideB; int32_t iSumSad = 0; for (int i = 0; i < 8; i++) { for (int j = 0; j < 16; j++) { iSumSad += abs(pPixA[j] - pPixB[j - 1]); iSumSad += abs(pPixA[j] - pPixB[j + 1]); iSumSad += abs(pPixA[j] - pPixB[j - m_iStrideB]); iSumSad += abs(pPixA[j] - pPixB[j + m_iStrideB]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } WelsSampleSadFour16x8_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); EXPECT_EQ(m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSadFour8x16_c) { for (int i = 0; i < (m_iStrideA << 5); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 5); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB + m_iStrideB; int32_t iSumSad = 0; for (int i = 0; i < 16; i++) { for (int j = 0; j < 8; j++) { iSumSad += abs(pPixA[j] - pPixB[j - 1]); iSumSad += abs(pPixA[j] - pPixB[j + 1]); iSumSad += abs(pPixA[j] - pPixB[j - m_iStrideB]); iSumSad += abs(pPixA[j] - pPixB[j + m_iStrideB]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } WelsSampleSadFour8x16_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); EXPECT_EQ(m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSadFour8x8_c) { for (int i = 0; i < (m_iStrideA << 4); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 4); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB + m_iStrideB; int32_t iSumSad = 0; for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { iSumSad += abs(pPixA[j] - pPixB[j - 1]); iSumSad += abs(pPixA[j] - pPixB[j + 1]); iSumSad += abs(pPixA[j] - pPixB[j - m_iStrideB]); iSumSad += abs(pPixA[j] - pPixB[j + m_iStrideB]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } WelsSampleSadFour8x8_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); EXPECT_EQ(m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSadFour4x4_c) { for (int i = 0; i < (m_iStrideA << 3); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 3); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB + m_iStrideB; int32_t iSumSad = 0; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { iSumSad += abs(pPixA[j] - pPixB[j - 1]); iSumSad += abs(pPixA[j] - pPixB[j + 1]); iSumSad += abs(pPixA[j] - pPixB[j - m_iStrideB]); iSumSad += abs(pPixA[j] - pPixB[j + m_iStrideB]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } WelsSampleSadFour4x4_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); EXPECT_EQ(m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSadFour8x4_c) { for (int i = 0; i < (m_iStrideA << 3); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 3); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB + m_iStrideB; int32_t iSumSad = 0; for (int i = 0; i < 4; i++) { for (int j = 0; j < 8; j++) { iSumSad += abs(pPixA[j] - pPixB[j - 1]); iSumSad += abs(pPixA[j] - pPixB[j + 1]); iSumSad += abs(pPixA[j] - pPixB[j - m_iStrideB]); iSumSad += abs(pPixA[j] - pPixB[j + m_iStrideB]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } WelsSampleSadFour8x4_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); EXPECT_EQ(m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); } TEST_F(SadSatdCFuncTest, WelsSampleSadFour4x8_c) { for (int i = 0; i < (m_iStrideA << 4); i++) { m_pPixSrcA[i] = rand() % 256; } for (int i = 0; i < (m_iStrideB << 4); i++) { m_pPixSrcB[i] = rand() % 256; } uint8_t* pPixA = m_pPixSrcA; uint8_t* pPixB = m_pPixSrcB + m_iStrideB; int32_t iSumSad = 0; for (int i = 0; i < 8; i++) { for (int j = 0; j < 4; j++) { iSumSad += abs(pPixA[j] - pPixB[j - 1]); iSumSad += abs(pPixA[j] - pPixB[j + 1]); iSumSad += abs(pPixA[j] - pPixB[j - m_iStrideB]); iSumSad += abs(pPixA[j] - pPixB[j + m_iStrideB]); } pPixA += m_iStrideA; pPixB += m_iStrideB; } WelsSampleSadFour4x8_c(m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); EXPECT_EQ(m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); } class SadSatdAssemblyFuncTest : public testing::Test { public: virtual void SetUp() { int32_t iCpuCores = 0; m_uiCpuFeatureFlag = WelsCPUFeatureDetect(&iCpuCores); pMemAlign = new CMemoryAlign(16); m_iStrideA = m_iStrideB = PIXEL_STRIDE; m_pPixSrcA = (uint8_t*)pMemAlign->WelsMalloc(m_iStrideA << 5, "Sad_m_pPixSrcA"); ASSERT_TRUE(NULL != m_pPixSrcA); m_pPixSrcB = (uint8_t*)pMemAlign->WelsMalloc(m_iStrideB << 5, "Sad_m_pPixSrcB"); ASSERT_MEMORY_FAIL2X(m_pPixSrcA, m_pPixSrcB) m_pSad = (int32_t*)pMemAlign->WelsMalloc(4 * sizeof(int32_t), "m_pSad"); ASSERT_MEMORY_FAIL3X(m_pPixSrcA, m_pPixSrcB, m_pSad) } virtual void TearDown() { pMemAlign->WelsFree(m_pPixSrcA, "Sad_m_pPixSrcA"); pMemAlign->WelsFree(m_pPixSrcB, "Sad_m_pPixSrcB"); pMemAlign->WelsFree(m_pSad, "m_pSad"); delete pMemAlign; } public: uint32_t m_uiCpuFeatureFlag; uint8_t* m_pPixSrcA; uint8_t* m_pPixSrcB; int32_t m_iStrideA; int32_t m_iStrideB; int32_t* m_pSad; CMemoryAlign* pMemAlign; }; #define GENERATE_Sad4x4_UT(func, ref, CPUFLAGS) \ TEST_F (SadSatdAssemblyFuncTest, func) { \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ for (int i = 0; i < (m_iStrideA << 2); i++) \ m_pPixSrcA[i] = rand() % 256; \ for (int i = 0; i < (m_iStrideB << 2); i++) \ m_pPixSrcB[i] = rand() % 256; \ EXPECT_EQ (ref (m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), func (m_pPixSrcA, \ m_iStrideA, m_pPixSrcB, m_iStrideB)); \ } #define GENERATE_Sad8x8_UT(func, ref, CPUFLAGS) \ TEST_F (SadSatdAssemblyFuncTest, func) { \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ for (int i = 0; i < (m_iStrideA << 3); i++) \ m_pPixSrcA[i] = rand() % 256; \ for (int i = 0; i < (m_iStrideB << 3); i++) \ m_pPixSrcB[i] = rand() % 256; \ EXPECT_EQ (ref (m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), func (m_pPixSrcA, \ m_iStrideA, m_pPixSrcB, m_iStrideB)); \ } #define GENERATE_Sad8x16_UT(func, ref, CPUFLAGS) \ TEST_F (SadSatdAssemblyFuncTest, func) { \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ for (int i = 0; i < (m_iStrideA << 4); i++) \ m_pPixSrcA[i] = rand() % 256; \ for (int i = 0; i < (m_iStrideB << 4); i++) \ m_pPixSrcB[i] = rand() % 256; \ EXPECT_EQ (ref (m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), func (m_pPixSrcA, \ m_iStrideA, m_pPixSrcB, m_iStrideB)); \ } #define GENERATE_Sad16x8_UT(func, ref, CPUFLAGS) \ TEST_F (SadSatdAssemblyFuncTest, func) { \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ for (int i = 0; i < (m_iStrideA << 3); i++) \ m_pPixSrcA[i] = rand() % 256; \ for (int i = 0; i < (m_iStrideB << 3); i++) \ m_pPixSrcB[i] = rand() % 256; \ EXPECT_EQ (ref (m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), func (m_pPixSrcA, \ m_iStrideA, m_pPixSrcB, m_iStrideB)); \ } #define GENERATE_Sad16x16_UT(func, ref, CPUFLAGS) \ TEST_F (SadSatdAssemblyFuncTest, func) { \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ for (int i = 0; i < (m_iStrideA << 4); i++) \ m_pPixSrcA[i] = rand() % 256; \ for (int i = 0; i < (m_iStrideB << 4); i++) \ m_pPixSrcB[i] = rand() % 256; \ EXPECT_EQ (ref (m_pPixSrcA, m_iStrideA, m_pPixSrcB, m_iStrideB), func (m_pPixSrcA, \ m_iStrideA, m_pPixSrcB, m_iStrideB)); \ } #ifdef X86_ASM GENERATE_Sad4x4_UT(WelsSampleSad4x4_mmx, WelsSampleSad4x4_c, WELS_CPU_MMXEXT) GENERATE_Sad8x8_UT(WelsSampleSad8x8_sse21, WelsSampleSad8x8_c, WELS_CPU_SSE2) GENERATE_Sad8x16_UT(WelsSampleSad8x16_sse2, WelsSampleSad8x16_c, WELS_CPU_SSE2) GENERATE_Sad16x8_UT(WelsSampleSad16x8_sse2, WelsSampleSad16x8_c, WELS_CPU_SSE2) GENERATE_Sad16x16_UT(WelsSampleSad16x16_sse2, WelsSampleSad16x16_c, WELS_CPU_SSE2) GENERATE_Sad4x4_UT(WelsSampleSatd4x4_sse2, WelsSampleSatd4x4_c, WELS_CPU_SSE2) GENERATE_Sad8x8_UT(WelsSampleSatd8x8_sse2, WelsSampleSatd8x8_c, WELS_CPU_SSE2) GENERATE_Sad8x16_UT(WelsSampleSatd8x16_sse2, WelsSampleSatd8x16_c, WELS_CPU_SSE2) GENERATE_Sad16x8_UT(WelsSampleSatd16x8_sse2, WelsSampleSatd16x8_c, WELS_CPU_SSE2) GENERATE_Sad16x16_UT(WelsSampleSatd16x16_sse2, WelsSampleSatd16x16_c, WELS_CPU_SSE2) GENERATE_Sad4x4_UT(WelsSampleSatd4x4_sse41, WelsSampleSatd4x4_c, WELS_CPU_SSE41) GENERATE_Sad8x8_UT(WelsSampleSatd8x8_sse41, WelsSampleSatd8x8_c, WELS_CPU_SSE41) GENERATE_Sad8x16_UT(WelsSampleSatd8x16_sse41, WelsSampleSatd8x16_c, WELS_CPU_SSE41) GENERATE_Sad16x8_UT(WelsSampleSatd16x8_sse41, WelsSampleSatd16x8_c, WELS_CPU_SSE41) GENERATE_Sad16x16_UT(WelsSampleSatd16x16_sse41, WelsSampleSatd16x16_c, WELS_CPU_SSE41) #endif #ifdef HAVE_NEON GENERATE_Sad4x4_UT(WelsSampleSad4x4_neon, WelsSampleSad4x4_c, WELS_CPU_NEON) GENERATE_Sad8x8_UT(WelsSampleSad8x8_neon, WelsSampleSad8x8_c, WELS_CPU_NEON) GENERATE_Sad8x16_UT(WelsSampleSad8x16_neon, WelsSampleSad8x16_c, WELS_CPU_NEON) GENERATE_Sad16x8_UT(WelsSampleSad16x8_neon, WelsSampleSad16x8_c, WELS_CPU_NEON) GENERATE_Sad16x16_UT(WelsSampleSad16x16_neon, WelsSampleSad16x16_c, WELS_CPU_NEON) GENERATE_Sad4x4_UT(WelsSampleSatd4x4_neon, WelsSampleSatd4x4_c, WELS_CPU_NEON) GENERATE_Sad8x8_UT(WelsSampleSatd8x8_neon, WelsSampleSatd8x8_c, WELS_CPU_NEON) GENERATE_Sad8x16_UT(WelsSampleSatd8x16_neon, WelsSampleSatd8x16_c, WELS_CPU_NEON) GENERATE_Sad16x8_UT(WelsSampleSatd16x8_neon, WelsSampleSatd16x8_c, WELS_CPU_NEON) GENERATE_Sad16x16_UT(WelsSampleSatd16x16_neon, WelsSampleSatd16x16_c, WELS_CPU_NEON) #endif #ifdef HAVE_NEON_AARCH64 GENERATE_Sad4x4_UT(WelsSampleSad4x4_AArch64_neon, WelsSampleSad4x4_c, WELS_CPU_NEON) GENERATE_Sad8x8_UT(WelsSampleSad8x8_AArch64_neon, WelsSampleSad8x8_c, WELS_CPU_NEON) GENERATE_Sad8x16_UT(WelsSampleSad8x16_AArch64_neon, WelsSampleSad8x16_c, WELS_CPU_NEON) GENERATE_Sad16x8_UT(WelsSampleSad16x8_AArch64_neon, WelsSampleSad16x8_c, WELS_CPU_NEON) GENERATE_Sad16x16_UT(WelsSampleSad16x16_AArch64_neon, WelsSampleSad16x16_c, WELS_CPU_NEON) GENERATE_Sad4x4_UT(WelsSampleSatd4x4_AArch64_neon, WelsSampleSatd4x4_c, WELS_CPU_NEON) GENERATE_Sad8x8_UT(WelsSampleSatd8x8_AArch64_neon, WelsSampleSatd8x8_c, WELS_CPU_NEON) GENERATE_Sad8x16_UT(WelsSampleSatd8x16_AArch64_neon, WelsSampleSatd8x16_c, WELS_CPU_NEON) GENERATE_Sad16x8_UT(WelsSampleSatd16x8_AArch64_neon, WelsSampleSatd16x8_c, WELS_CPU_NEON) GENERATE_Sad16x16_UT(WelsSampleSatd16x16_AArch64_neon, WelsSampleSatd16x16_c, WELS_CPU_NEON) #endif #define GENERATE_SadFour_UT(func, CPUFLAGS, width, height) \ TEST_F (SadSatdAssemblyFuncTest, func) { \ if (0 == (m_uiCpuFeatureFlag & CPUFLAGS)) \ return; \ for (int i = 0; i < (m_iStrideA << 5); i++) \ m_pPixSrcA[i] = rand() % 256; \ for (int i = 0; i < (m_iStrideB << 5); i++) \ m_pPixSrcB[i] = rand() % 256; \ uint8_t* pPixA = m_pPixSrcA; \ uint8_t* pPixB = m_pPixSrcB + m_iStrideB; \ int32_t iSumSad = 0; \ for (int i = 0; i < height; i++) { \ for (int j = 0; j < width; j++) { \ iSumSad += abs (pPixA[j] - pPixB[j - 1]); \ iSumSad += abs (pPixA[j] - pPixB[j + 1]); \ iSumSad += abs (pPixA[j] - pPixB[j - m_iStrideB]); \ iSumSad += abs (pPixA[j] - pPixB[j + m_iStrideB]); \ } \ pPixA += m_iStrideA; \ pPixB += m_iStrideB; \ } \ func (m_pPixSrcA, m_iStrideA, m_pPixSrcB + m_iStrideB, m_iStrideB, m_pSad); \ EXPECT_EQ (m_pSad[0] + m_pSad[1] + m_pSad[2] + m_pSad[3], iSumSad); \ } #ifdef X86_ASM GENERATE_SadFour_UT(WelsSampleSadFour4x4_sse2, WELS_CPU_SSE2, 4, 4) GENERATE_SadFour_UT(WelsSampleSadFour8x8_sse2, WELS_CPU_SSE2, 8, 8) GENERATE_SadFour_UT(WelsSampleSadFour8x16_sse2, WELS_CPU_SSE2, 8, 16) GENERATE_SadFour_UT(WelsSampleSadFour16x8_sse2, WELS_CPU_SSE2, 16, 8) GENERATE_SadFour_UT(WelsSampleSadFour16x16_sse2, WELS_CPU_SSE2, 16, 16) #endif #ifdef HAVE_NEON GENERATE_SadFour_UT(WelsSampleSadFour4x4_neon, WELS_CPU_NEON, 4, 4) GENERATE_SadFour_UT(WelsSampleSadFour8x8_neon, WELS_CPU_NEON, 8, 8) GENERATE_SadFour_UT(WelsSampleSadFour8x16_neon, WELS_CPU_NEON, 8, 16) GENERATE_SadFour_UT(WelsSampleSadFour16x8_neon, WELS_CPU_NEON, 16, 8) GENERATE_SadFour_UT(WelsSampleSadFour16x16_neon, WELS_CPU_NEON, 16, 16) #endif #ifdef HAVE_NEON_AARCH64 GENERATE_SadFour_UT(WelsSampleSadFour4x4_AArch64_neon, WELS_CPU_NEON, 4, 4) GENERATE_SadFour_UT(WelsSampleSadFour8x8_AArch64_neon, WELS_CPU_NEON, 8, 8) GENERATE_SadFour_UT(WelsSampleSadFour8x16_AArch64_neon, WELS_CPU_NEON, 8, 16) GENERATE_SadFour_UT(WelsSampleSadFour16x8_AArch64_neon, WELS_CPU_NEON, 16, 8) GENERATE_SadFour_UT(WelsSampleSadFour16x16_AArch64_neon, WELS_CPU_NEON, 16, 16) #endif
[ "jason_yao" ]
jason_yao
c36724a6a765e93f920615f30082e48384ffe26f
2a5b3f4acc7f22ef232da6aee2f5b617d0b11762
/lab30/lab30.cpp
2e0dcb0d7d9d1b2d7dafc3dc0f7e14c470e555d4
[]
no_license
AlekzandrZablockis/alekzandrzablockis-CSCI20-Fall2017
c380f3d5a3c492b0fb357f7c677299b4099a0209
dd387873aa5fd05f401736f429406297c19f209b
refs/heads/master
2021-01-19T16:02:14.084762
2017-12-10T06:49:43
2017-12-10T06:49:43
100,983,333
0
0
null
null
null
null
UTF-8
C++
false
false
28,558
cpp
// Alekzandr Zablockis // 10/31/17 // This program is the childrens game Hi Ho! Cherry- O #include <iostream> #include <ctime> // For srand(time()) function to create truly randomly generated numbers using namespace std; /* The purpose of this class is to have the functions and variables that will all be used by the computer player */ class Computer { public: int TakeOneCherry(); int TakeTwoCherry(); int TakeThreeCherry(); int TakeFourCherry(); int Dog(); int Bird(); int SpilledBasket(); int computer_tree = 10; int computer_basket = 0; }; /* The purpose of this class is to have the functions and variables that will all be used by the computer player */ class Human { public: int TakeOneCherry(); int TakeTwoCherry(); int TakeThreeCherry(); int TakeFourCherry(); int Dog(); int Bird(); int SpilledBasket(); int human_tree = 10; // Base value int human_basket = 0; }; /* This function takes one cherry from the human players tree and puts in the human players basket. There is no input. The output is 1 cherry is removed from the human players tree and is put in the human players basket. */ int Human::TakeOneCherry() { human_tree = (human_tree - 1); human_basket = (human_basket + 1); } /*This function takes two cherry from the human players tree and puts in the human players basket. There is no input. The output is 2 cherry is removed from the human players tree and is put in the human players basket. */ int Human::TakeTwoCherry() { human_tree = (human_tree - 2); human_basket = (human_basket + 2); } /*This function takes three cherry from the human players tree and puts in the human players basket. There is no input. The output is 3 cherry is removed from the human players tree and is put in the human players basket. */ int Human::TakeThreeCherry() { human_tree = (human_tree - 3); human_basket = (human_basket + 3); } /*This function takes four cherry from the human players tree and puts in the human players basket. There is no input. The output is 4 cherry is removed from the human players tree and is put in the human players basket. */ int Human::TakeFourCherry() { human_tree = (human_tree - 4); human_basket = (human_basket + 4); } /* This function takes two, one or 0 cherries from the human players basket and puts them back onto the human players tree depending on how many cherries the player has There is no input The output is 2,1 or 0 cherry removed from the human players basket and put in the human players tree */ int Human::Dog() { if (human_basket == 0) { human_tree = human_tree; human_basket = human_basket; } else if (human_basket == 1) { human_tree = (human_tree + 1); human_basket = (human_basket - 1); } else { human_tree = (human_tree + 2); human_basket = (human_basket - 2); } } /* This function takes two, one or 0 cherries from the human players basket and puts them back onto the human players tree depending on how many cherries the player has There is no input The output is 2,1 or 0 cherry removed from the human players basket and put in the human players tree */ int Human::Bird() { if (human_basket == 0) { human_tree = human_tree; human_basket = human_basket; } else if (human_basket == 1) { human_tree = (human_tree + 1); human_basket = (human_basket - 1); } else { human_tree = (human_tree + 2); human_basket = (human_basket - 2); } } /* This function takes all of the human players cherries and puts them on the human players tree There is no input The output is the human players baskets cherries are all put on the human players tree */ int Human::SpilledBasket() { human_tree = (human_tree + human_basket); human_basket = (human_basket - human_basket); } /* This function takes one cherry from the computer players tree and puts in the computer players basket. There is no input. The output is 1 cherry is removed from the computers players tree and is put in the computer players basket. */ int Computer::TakeOneCherry() { computer_tree = (computer_tree - 1); computer_basket = (computer_basket + 1); } /* This function takes two cherry from the computer players tree and puts in the computer players basket. There is no input. The output is 2 cherry is removed from the computers players tree and is put in the computer players basket. */ int Computer::TakeTwoCherry() { computer_tree = (computer_tree - 2); computer_basket = (computer_basket + 2); } /* This function takes three cherry from the computer players tree and puts in the computer players basket. There is no input. The output is 3 cherry is removed from the computers players tree and is put in the computer players basket. */ int Computer::TakeThreeCherry() { computer_tree = (computer_tree - 3); computer_basket = (computer_basket + 3); } /* This function takes four cherry from the computer players tree and puts in the computer players basket. There is no input. The output is 4 cherry is removed from the computers players tree and is put in the computer players basket. */ int Computer::TakeFourCherry() { computer_tree = (computer_tree - 4); computer_basket = (computer_basket + 4); } /* This function takes two, one or 0 cherries from the computer players basket and puts them back onto the human players tree depending on how many cherries the player has There is no input The output is 2,1 or 0 cherry removed from the computer players basket and put in the computer players tree */ int Computer::Dog() { if (computer_basket == 0) { computer_tree = computer_tree; computer_basket = computer_basket; } else if (computer_basket == 1) { computer_tree = (computer_tree + 1); computer_basket = (computer_basket - 1); } else { computer_tree = (computer_tree + 2); computer_basket = (computer_basket - 2); } } /* This function takes two, one or 0 cherries from the computer players basket and puts them back onto the human players tree depending on how many cherries the player has There is no input The output is 2,1 or 0 cherry removed from the computer players basket and put in the computer players tree */ int Computer::Bird() { if (computer_basket == 0) { computer_tree = computer_tree; computer_basket = computer_basket; } else if (computer_tree== 1) { computer_tree = (computer_tree + 1); computer_basket = (computer_basket - 1); } else { computer_tree = (computer_tree + 2); computer_basket = (computer_basket - 2); } } /* This function takes all of the human players cherries and puts them on the human players tree There is no input The output is the human players baskets cherries are all put on the human players tree */ int Computer::SpilledBasket() { computer_tree = (computer_tree + computer_basket); computer_basket = (computer_basket - computer_basket); } int main() { Human human1; // The objects needed for the game Computer computer1; char spin = ' '; // Place Holder values int spin_result = 0; srand(time(0)); // Allows us to have truly random generated numbers while (human1.human_tree > 0 && computer1.computer_tree > 0) // This loop loops our game until someone wins { cout << "It is your turn!" << endl; cout << "Your tree has " << human1.human_tree << " cherries on it." << endl; cout << "Your basket has " << human1.human_basket << " cherries in it." << endl << endl;; cout << "Enter S to spin the spinner" << endl; cin >> spin; cout << endl; /* This switch takes a user input to create a random generated number The input is two possible char's from the user The output is that spin_result equals a randomly generated number */ switch(spin) { case 's': case 'S': spin_result = rand() % 7 + 1; break; } /* This switch allows us to use our randomly generated input to select a function at random to use The input for this is the spin result which is a randomly generated number The output is one of the 7 functions randomly selected */ switch(spin_result) { case 1: cout << "You spun onto the take one cherry spot! You take one Cherry!" << endl; human1.TakeOneCherry(); cout << endl; break; case 2: cout << "You spun onto the take two cherry spot! You take two Cherries!" << endl; human1.TakeTwoCherry(); cout << endl; break; case 3: cout << "You spun onto the take three cherry spot! You take three Cherries!" << endl; human1.TakeThreeCherry(); cout << endl; break; case 4: cout << "You spun onto the take 4 cherry spot! You take four Cherries!" << endl; human1.TakeOneCherry(); cout << endl; break; case 5: if (human1.human_basket == 0) { cout << "You spun onto the dog spot but you have no cherries!" << endl; } else if (human1.human_basket == 1) { cout << "You spun onto to the dog spot! You lose on cherry!" << endl; human1.Dog(); } else { cout << "You spun onto to the dog spot! You lose two cherries!" << endl; human1.Dog(); } cout << endl; break; case 6: if (human1.human_basket == 0) { cout << "You spun onto the bird spot but you have no cherries!" << endl; } else if (human1.human_basket == 1) { cout << "You spun onto to the bird spot! You lose one cherry!" << endl; human1.Bird(); } else { cout << "You spun onto to the bird spot! You lose two cherries!" << endl; human1.Bird(); } cout << endl; break; case 7: cout << "Oops! You spilt all of your cherries!" << endl; human1.SpilledBasket(); cout << endl; break; default: break; } cout << "It is the computers turn!" << endl; cout << "The computers tree has " << computer1.computer_tree << " cherries on it." << endl; cout << "The computers basket has " << computer1.computer_basket << " cherries in it." << endl; spin_result = rand() % 7 + 1; // Sets a randomly generated number to spin_result to be used in our switch /* This switch allows us to use our randomly generated input to select a function at random to use The input for this is the spin result which is a randomly generated number The output is one of the 7 functions randomly selected */ switch(spin_result) { case 1: cout << "The computer spun onto the take one cherry spot! The computer takes one Cherry!" << endl; computer1.TakeOneCherry(); cout << endl; break; case 2: cout << "The computer spun onto the take two cherry spot! The computer takes two Cherries!" << endl; computer1.TakeTwoCherry(); cout << endl; break; case 3: cout << "The computer spun onto the take three cherry spot! The computer takes three Cherries!" << endl; computer1.TakeThreeCherry(); cout << endl; break; case 4: cout << "The computer spun onto the take 4 cherry spot! The computer takes four Cherries!" << endl; computer1.TakeOneCherry(); cout << endl; break; case 5: if (computer1.computer_basket == 0) { cout << "The computer spun onto the dog spot but it has no cherries!" << endl; } else if (computer1.computer_basket == 1) { cout << "The computer spun onto to the dog spot! The computer loses on cherry!" << endl; computer1.Dog(); } else { cout << "The computer spun onto to the dog spot! The computer loses two cherries!" << endl; computer1.Dog(); } cout << endl; break; case 6: if (computer1.computer_basket == 0) { cout << "The computer spun onto the bird spot but it has no cherries!" << endl; } else if (computer1.computer_basket == 1) { cout << "The computer spun onto to the bird spot! The computer loses one cherry!" << endl; computer1.Bird(); } else { cout << "The computer spun onto to the bird spot! The computer loses two cherries!" << endl; computer1.Bird(); } cout << endl; break; case 7: cout << "Oops! The computer spilt all of its cherries!" << endl; computer1.SpilledBasket(); cout << endl; break; default: break; } } if (human1.human_basket >= 10) // Tells the user if they won the game { cout << "Cogratulations you picked all your cherries and won the game!" << endl; } else if (computer1.computer_basket >= 10) // Tells the user if they lost the game { cout << "The computer has picked all of its cherries and won the game!" << endl; cout << "u r rly bad get gud at teh game" << " gg no re :3" << endl; // Lets them know how bad they are at video games. } } /* OUTPUT 1: THE WIN Running /home/ubuntu/workspace/lab30/lab30.cpp It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. Oops! The computer spilt all of its cherries! It is your turn! Your tree has 7 cherries on it. Your basket has 3 cherries in it. Enter S to spin the spinner s You spun onto the take one cherry spot! You take one Cherry! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the take one cherry spot! The computer takes one Cherry! It is your turn! Your tree has 6 cherries on it. Your basket has 4 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 9 cherries on it. The computers basket has 1 cherries in it. The computer spun onto the take two cherry spot! The computer takes two Cherries! It is your turn! Your tree has 3 cherries on it. Your basket has 7 cherries in it. Enter S to spin the spinner s Oops! You spilt all of your cherries! It is the computers turn! The computers tree has 7 cherries on it. The computers basket has 3 cherries in it. The computer spun onto to the dog spot! The computer loses two cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take one cherry spot! You take one Cherry! It is the computers turn! The computers tree has 9 cherries on it. The computers basket has 1 cherries in it. Oops! The computer spilt all of its cherries! It is your turn! Your tree has 9 cherries on it. Your basket has 1 cherries in it. Enter S to spin the spinner s You spun onto the take two cherry spot! You take two Cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the bird spot but it has no cherries! It is your turn! Your tree has 7 cherries on it. Your basket has 3 cherries in it. Enter S to spin the spinner s You spun onto to the dog spot! You lose two cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the take two cherry spot! The computer takes two Cherries! It is your turn! Your tree has 9 cherries on it. Your basket has 1 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 8 cherries on it. The computers basket has 2 cherries in it. Oops! The computer spilt all of its cherries! It is your turn! Your tree has 6 cherries on it. Your basket has 4 cherries in it. Enter S to spin the spinner s You spun onto to the bird spot! You lose two cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the take three cherry spot! The computer takes three Cherries! It is your turn! Your tree has 8 cherries on it. Your basket has 2 cherries in it. Enter S to spin the spinner s You spun onto the take two cherry spot! You take two Cherries! It is the computers turn! The computers tree has 7 cherries on it. The computers basket has 3 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 6 cherries on it. Your basket has 4 cherries in it. Enter S to spin the spinner s Oops! You spilt all of your cherries! It is the computers turn! The computers tree has 6 cherries on it. The computers basket has 4 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s Oops! You spilt all of your cherries! It is the computers turn! The computers tree has 5 cherries on it. The computers basket has 5 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the bird spot but you have no cherries! It is the computers turn! The computers tree has 4 cherries on it. The computers basket has 6 cherries in it. The computer spun onto the take two cherry spot! The computer takes two Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take one cherry spot! You take one Cherry! It is the computers turn! The computers tree has 2 cherries on it. The computers basket has 8 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 9 cherries on it. Your basket has 1 cherries in it. Enter S to spin the spinner s Oops! You spilt all of your cherries! It is the computers turn! The computers tree has 1 cherries on it. The computers basket has 9 cherries in it. Oops! The computer spilt all of its cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the bird spot but you have no cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the take two cherry spot! The computer takes two Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the bird spot but you have no cherries! It is the computers turn! The computers tree has 8 cherries on it. The computers basket has 2 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s Oops! You spilt all of your cherries! It is the computers turn! The computers tree has 7 cherries on it. The computers basket has 3 cherries in it. The computer spun onto to the bird spot! The computer loses two cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 9 cherries on it. The computers basket has 1 cherries in it. Oops! The computer spilt all of its cherries! It is your turn! Your tree has 7 cherries on it. Your basket has 3 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 4 cherries on it. Your basket has 6 cherries in it. Enter S to spin the spinner s You spun onto the take 4 cherry spot! You take four Cherries! It is the computers turn! The computers tree has 9 cherries on it. The computers basket has 1 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 3 cherries on it. Your basket has 7 cherries in it. Enter S to spin the spinner s Oops! You spilt all of your cherries! It is the computers turn! The computers tree has 8 cherries on it. The computers basket has 2 cherries in it. The computer spun onto the take one cherry spot! The computer takes one Cherry! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 7 cherries on it. The computers basket has 3 cherries in it. The computer spun onto the take three cherry spot! The computer takes three Cherries! It is your turn! Your tree has 7 cherries on it. Your basket has 3 cherries in it. Enter S to spin the spinner s You spun onto to the dog spot! You lose two cherries! It is the computers turn! The computers tree has 4 cherries on it. The computers basket has 6 cherries in it. Oops! The computer spilt all of its cherries! It is your turn! Your tree has 9 cherries on it. Your basket has 1 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. Oops! The computer spilt all of its cherries! It is your turn! Your tree has 6 cherries on it. Your basket has 4 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the take three cherry spot! The computer takes three Cherries! It is your turn! Your tree has 3 cherries on it. Your basket has 7 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 7 cherries on it. The computers basket has 3 cherries in it. The computer spun onto the take two cherry spot! The computer takes two Cherries! Cogratulations you picked all your cherries and won the game! Process exited with code: 0 OUTPUT TWO: THE LOSS It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take one cherry spot! You take one Cherry! It is the computers turn! The computers tree has 10 cherries on it. The computers basket has 0 cherries in it. The computer spun onto the take one cherry spot! The computer takes one Cherry! It is your turn! Your tree has 9 cherries on it. Your basket has 1 cherries in it. Enter S to spin the spinner s You spun onto to the bird spot! You lose one cherry! It is the computers turn! The computers tree has 9 cherries on it. The computers basket has 1 cherries in it. The computer spun onto the take three cherry spot! The computer takes three Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take 4 cherry spot! You take four Cherries! It is the computers turn! The computers tree has 6 cherries on it. The computers basket has 4 cherries in it. The computer spun onto to the bird spot! The computer loses two cherries! It is your turn! Your tree has 9 cherries on it. Your basket has 1 cherries in it. Enter S to spin the spinner s You spun onto the take three cherry spot! You take three Cherries! It is the computers turn! The computers tree has 8 cherries on it. The computers basket has 2 cherries in it. The computer spun onto the take two cherry spot! The computer takes two Cherries! It is your turn! Your tree has 6 cherries on it. Your basket has 4 cherries in it. Enter S to spin the spinner s Oops! You spilt all of your cherries! It is the computers turn! The computers tree has 6 cherries on it. The computers basket has 4 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the take two cherry spot! You take two Cherries! It is the computers turn! The computers tree has 5 cherries on it. The computers basket has 5 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 8 cherries on it. Your basket has 2 cherries in it. Enter S to spin the spinner s You spun onto the take one cherry spot! You take one Cherry! It is the computers turn! The computers tree has 4 cherries on it. The computers basket has 6 cherries in it. The computer spun onto the take one cherry spot! The computer takes one Cherry! It is your turn! Your tree has 7 cherries on it. Your basket has 3 cherries in it. Enter S to spin the spinner s You spun onto to the dog spot! You lose two cherries! It is the computers turn! The computers tree has 3 cherries on it. The computers basket has 7 cherries in it. The computer spun onto to the dog spot! The computer loses two cherries! It is your turn! Your tree has 9 cherries on it. Your basket has 1 cherries in it. Enter S to spin the spinner s You spun onto to the dog spot! You lose on cherry! It is the computers turn! The computers tree has 5 cherries on it. The computers basket has 5 cherries in it. The computer spun onto the take three cherry spot! The computer takes three Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the dog spot but you have no cherries! It is the computers turn! The computers tree has 2 cherries on it. The computers basket has 8 cherries in it. The computer spun onto the take 4 cherry spot! The computer takes four Cherries! It is your turn! Your tree has 10 cherries on it. Your basket has 0 cherries in it. Enter S to spin the spinner s You spun onto the dog spot but you have no cherries! It is the computers turn! The computers tree has 1 cherries on it. The computers basket has 9 cherries in it. The computer spun onto the take two cherry spot! The computer takes two Cherries! The computer has picked all of its cherries and won the game! u r rly bad get gud at teh game gg no re :3 Process exited with code: 0 OUTPUT 3: It is not possible to tie in this gmae */
be34e4754f5dacbc41d4957569a876ad1f9a7925
21c9a61c287a8a63525ec473d56d43d30cce872e
/Core/src/Game.cpp
5524dec6536972f60285f4d7ceac27942cb08204
[]
no_license
lazarev-pv/robot-game
444242166766bc4753e170177522f6286ae46df5
f4f22f2f2f7da51c07eb3b148d844fbd187fe867
refs/heads/master
2021-01-10T09:17:15.792534
2015-10-01T16:57:54
2015-10-01T16:57:54
43,508,571
0
0
null
null
null
null
UTF-8
C++
false
false
5,388
cpp
#include <ChibiEngine/Game.h> #include <ChibiEngine/Render/Particles/ParticleSystem.h> #include <ChibiEngine/Render/Particles/EffectTempl.h> #include <ChibiEngine/Resource/FileSystem.h> #include <ChibiEngine/Render/ScreenSystem.h> #include <ChibiEngine/Render/Shaders.h> #include <ChibiEngine/Physics/Physics.h> #include <ChibiEngine/SoundSystem/SoundSystem.h> #include <ChibiEngine/Log/LoggingSystem.h> #include <ChibiEngine/Clock/ClockSystem.h> #include <ChibiEngine/Script/Script.h> #include <ChibiEngine/GameState/GameState.h> #include <ChibiEngine/GameState/Level.h> #include <ChibiEngine/Resource/Resources.h> #include <ChibiEngine/XMLParser/SettingsParser.h> #include <ChibiEngine/Common/ParserUtils.h> using namespace game; using namespace std; using namespace rapidxml; Game *Game::instance = nullptr; static string LOGGER_NAME = "GameLogger"; const string Game::DEFAULT_CONFIG_FILE = "settings.xml"; void Game::initCoreSystems(std::string configFile, const char *pathPrefix) { FileSystem::pathPrefix = pathPrefix; instance = new Game(); instance->logger.debug("Begin init FileSystem"); instance->fileSystem = make_unique<FileSystem>(configFile); instance->clockSystem = make_unique<ClockSystem>(); { instance->settings = make_unique<SettingsParserRoot>(createRoot<SettingsParserRoot>(configFile)); instance->configPath = FileSystem::getPath(configFile); { PropertiesList *pL = instance->settings->settings->properties; if (pL!=nullptr){ for (const auto& iter : pL->property) { instance->properties[iter->name]=iter->value; } } } } } void Game::initGraphSystems() { instance->shaderSystem = make_unique<ShaderSystem>(getConfigPath()+"/"+instance->settings->settings->screen->shaders); instance->screenSystem = make_unique<ScreenSystem>(instance->settings->settings->screen); instance->camera = make_unique<Camera>(instance->settings->settings->camera); } ProfileType *Game::getCurrentInputProfile() { InputConfigType *ic = settings->settings->inputConfig; if (ic == nullptr) return nullptr; for (auto iter : ic->profile) { if (iter->name == ic->activeProfile) return iter; } logger.error("Current Input profile not found: " + ic->activeProfile); return nullptr; } GameStateType *Game::findGameStateData(const string &name) { GameStateType *gameStateData = nullptr; for (auto iter : settings->settings->gameStates->state) { if (iter->name == name) { gameStateData = iter; } } if (gameStateData == nullptr) logger.error("Initial game state not found :" + name); return gameStateData; } void Game::initGameState() { const string &initial = settings->settings->gameStates->initial; eventSystem = make_unique<EventSystem>(); inputSystem = make_unique<InputSystem>(instance->getCurrentInputProfile()); ui = make_unique<UserInterface>(getInputSystem(), getEventSystem()); scriptSystem = make_unique<ScriptSystem>(); newGameState = initial; need2SwitchGameState = true; } Game::Game() : loggingSystem(make_unique<LoggingSystem>()), logger(loggingSystem->createLogger(LOGGER_NAME)), levelClock(nullptr){ } void Game::dispose() { delete instance; } std::string Game::getProperty(const std::string& name){ return instance->properties[name]; } ScreenType* Game::getScreenSettings(){ return instance->settings->settings->screen; } void Game::switchGameState(const std::string &stateName) { instance->newGameState = stateName; instance->need2SwitchGameState = true; } std::string Game::getConfigPath(){ return instance->configPath; } void Game::switchGameState() { GameStateType *data = findGameStateData(newGameState); if (data != nullptr) { if(levelClock) levelClock->reset(); else levelClock=Game::getClockSystem()->createClock(0); gameState.reset(nullptr); eventSystem.reset(new EventSystem()); inputSystem.reset(new InputSystem(instance->getCurrentInputProfile())); scriptSystem.reset(new ScriptSystem()); ui.reset(new UserInterface(getInputSystem(), getEventSystem())); resources.reset(new Resources(settings->settings->resources)); particleSystem.reset(new ParticleSystem()); soundSystem.reset(new SoundSystem()); physicsSystem.reset(new PhysicsSystem(settings->settings->physics, getLevelClock(), getEventSystem())); Game::getUserInterface()->loadFromFile(getConfigPath()+"/"+settings->settings->gameStates->userInterface); gameState.reset(new GameState(data)); } need2SwitchGameState = false; } void Game::setLevelFactory(const LevelFactory& factory) { instance->levelFactory=factory; instance->initGameState(); } const LookAndFeel& Game::getLookAndFeel() { return getScreen()->getLookAndFeel(); } const PrimitiveDrawer *Game::getPrimitiveDrawer() { return getUserInterface()->getPrimitiveDrawer(); } void Game::gameStep() { if (instance->need2SwitchGameState) { instance->switchGameState(); } if (instance->gameState != 0x0) { Game::getEventSystem()->processEvents(); instance->gameState->drawFrame(); } }
73563ddf8dee7d9b6e67ccfe0173086c8f00d506
baf32fa1a4d3ac49b59c35f0a9226ff2a786fbc6
/FenwikTree OR BIT/BinaryIndexTree.cpp
f004f4789ddaab0caf10493c71354755c035c7ce
[]
no_license
rajnishgeek/DSandAlgorithmPracticeSolution
1ef24f140a2a5d9d435b7fa36edf77074473f7b6
2cdd988c286f61552bd92ae995415e613d8af2fa
refs/heads/master
2023-07-14T21:15:24.016176
2021-09-01T18:00:04
2021-09-01T18:00:04
271,195,284
0
0
null
null
null
null
UTF-8
C++
false
false
932
cpp
#include <iostream> #include <bits/stdc++.h> using namespace std; //for upadation of BIT void updateBIT(int *bit, int index, int value) { while (index < bit.size()) { bit[index] += value; index += index & -index; } } //function for constructing binary index tree or fenwick tree int *constructBIT(int *arr, int n) { int *bit = new int[n + 1]; for (int i = 0; i <= n; i++) //make arr index value 0 bit[i] = 0; //contruction of binary index tree is same as updation of bit for (int i = 1; i <= n; i++) updateBIT(bit, i, arr[i - 1]); return bit; } //function for finding sum int sum(int *bit, int index) { int sumvalue = 0; index++; while (index > 0) { sumvalue += bit[index]; index -= index & -index; } return sumvalue; } int main() { int arr[] = {1, 2, 3, 4, 5}; int *binaryindextree = constructBIT(arr, arr.size()); }
ea9b36536d62565452ac96f02ce17058256235e8
7df531accf2de5622b944320861366a288accec6
/dmoj/ccc/ccc07s4 - Waterpark.cpp
4b3b788f5b10960b2f474f54dc64e0e2e66c7a7a
[]
no_license
chen-jy/competitive-programming
12b345bd1122e4d55ee02eb44bd0a06d52e4e851
50403d591738d2159d9409443aa8af61ab31677a
refs/heads/master
2020-05-01T12:44:55.736472
2019-03-25T01:28:28
2019-03-25T01:28:28
101,439,562
0
0
null
null
null
null
UTF-8
C++
false
false
671
cpp
#include <iostream> #include <vector> #include <cstring> using namespace std; vector<vector<int>> graph(10000); int memo[10000], n; int DFS(int x) { if (x == n) return 1; int t = 0; for (int i = 0; i < graph[x].size(); i++) { if (memo[graph[x][i]] != -1) t += memo[graph[x][i]]; else { memo[graph[x][i]] = DFS(graph[x][i]); t += memo[graph[x][i]]; } } return t; } int main() { cin.sync_with_stdio(0); cin.tie(0); //freopen("DATA.txt", "r", stdin); int x, y; cin >> n; while (cin >> x >> y, x != 0 && y != 0) graph[x].push_back(y); memset(memo, -1, sizeof(memo)); cout << DFS(1); return 0; }
b5b76dafdf5cfeb9b21729d830aea5f97b7cc7ca
ac5145eb52e42d5fbb123f111dab6339e96286a7
/v14he8k6/cpp/cnstrctr/cnstrct3.cpp
e53be1f6aaa68c50f0580bcb9d3378d66f4ae0a7
[]
no_license
ramakrishnakondapalli/My-Programs
fa854a13965371769c1eef99e1398aa9bfe5f311
9c17a489a65268e53be7f561206cbac14fb0e3c8
refs/heads/master
2020-06-20T19:42:01.031265
2016-11-25T07:54:30
2016-11-25T07:54:30
74,745,173
0
0
null
null
null
null
UTF-8
C++
false
false
739
cpp
#include<iostream> #include<cstring> using namespace std; class student { int roll_no; char *name; float marks; public: student() { /* cout<<"Enter roll no"<<endl; cin>>roll; cout<<"Enter name"<<endl; cin>>name; cout<<"Enter marks"<<endl; cin>>marks;*/ cout<<"In default constructor:"<<endl; roll_no=0;name=new char[10];cin>>name; marks=0.0; } student() { cout<<"In copy constuctor"<<endl; } public: void display() { cout<<roll_no<<endl; cout<<name<<endl; cout<<marks<<endl; } }; main() { student obj; obj.display(); }
4f2dcb4e45596629f42a92b574509528aa7b12e3
d5b797908c2fdf299f76d980c9d3e6a64d8e910f
/src/CAVLite/CACF.cpp
f9d2829450578d5a4e0f979bbaa2e6c476f5f8d0
[]
no_license
jiawlu/CAMLite
ee121cb87dcb76f40d9f0e1d4a3f705253504b1b
d19a508733b3eff73438d48f0a93541cf123f229
refs/heads/master
2023-07-07T01:43:40.214037
2023-06-22T14:35:52
2023-06-22T14:35:52
294,835,135
2
1
null
null
null
null
UTF-8
C++
false
false
12,693
cpp
#include "CACF.h" #include "stdafx.h" #include "CSVParser.h" #include "config.h" #include <iostream> float VehControllerCA::default_time_headway; int VehControllerCA::default_safe_headway_in_simu_interval; std::map<int, float> VehControllerCA::time_headway_dict; std::map<int, int> VehControllerCA::safe_headway_in_simu_interval_dict; float VehControllerCA::simulation_step; Network *VehControllerCA::net; void VehControllerCA::init(Network *net_, float simulation_step_) { cout << "Initializing CA car following model.\n"; simulation_step = simulation_step_; default_safe_headway_in_simu_interval = round(default_time_headway / simulation_step); net = net_; CCSVParser parser_hw; if (parser_hw.OpenCSVFile("CACF_time_headway.csv", true)) { cout << " CACF_time_headway.csv detected, loading data.\n"; int micro_node_id; float time_headway; while (parser_hw.ReadRecord()) { parser_hw.GetValueByFieldName("micro_node_id", micro_node_id); parser_hw.GetValueByFieldName("headway", time_headway); time_headway_dict[micro_node_id] = time_headway; safe_headway_in_simu_interval_dict[micro_node_id] = round(time_headway / simulation_step); } cout << " " << time_headway_dict.size() << " nodes loaded, default value (" << default_time_headway << " seconds) will apply to other nodes.\n"; } } void VehControllerCA::moveVeh(Agent *p_agent, int t) { MicroNode *current_node = &net->micro_node_vector[p_agent->micro_path_node_seq_no_vector.back()]; int current_node_idd = current_node->node_id; int node_time_headway_in_simu_interval; map<int, int>::iterator iter_hw; iter_hw = safe_headway_in_simu_interval_dict.find(current_node->node_id); if (iter_hw != safe_headway_in_simu_interval_dict.end()) node_time_headway_in_simu_interval = iter_hw->second; else node_time_headway_in_simu_interval = default_safe_headway_in_simu_interval; std::vector<int>::iterator ret; ret = std::find(net->meso_link_vector[p_agent->current_macro_link_seq_no].micro_outgoing_node_id_vector.begin(), net->meso_link_vector[p_agent->current_macro_link_seq_no].micro_outgoing_node_id_vector.end(), current_node->node_id); if (ret != net->meso_link_vector[p_agent->current_macro_link_seq_no].micro_outgoing_node_id_vector.end()) { if (p_agent->current_macro_path_seq_no == p_agent->meso_path_link_seq_no_vector.size() - 1) { //agent_remove_vector.push_back(p_agent->agent_id); p_agent->remove_flag = true; p_agent->arrival_time_in_simu_interval = t; p_agent->arrival_time_in_min = t * simulation_step / 60; p_agent->micro_destination_node_id = current_node->node_id; p_agent->m_bCompleteTrip = true; p_agent->travel_time_in_min = p_agent->arrival_time_in_min - p_agent->departure_time_in_min; current_node->available_sim_interval = t; return; // continue; } else { p_agent->current_macro_path_seq_no++; p_agent->current_macro_link_seq_no = p_agent->meso_path_link_seq_no_vector[p_agent->current_macro_path_seq_no]; if (p_agent->current_macro_path_seq_no < p_agent->meso_path_link_seq_no_vector.size() - 1) p_agent->next_macro_link_seq_no = p_agent->meso_path_link_seq_no_vector[p_agent->current_macro_path_seq_no + 1]; else p_agent->next_macro_link_seq_no = -1; } } MicroLink *outgoing_link_keeping = NULL; MicroNode *to_node_keeping = NULL; float cost_keeping; MicroLink *outgoing_link_changing = NULL; MicroNode *to_node_changing = NULL; float cost_changing; std::vector<MicroLink*> outgoing_link_changing_vector; std::vector<MicroNode*> to_node_changing_vector; std::vector<float> cost_changing_vector; float tree_cost; bool whitelist_flag = false; std::vector<int> whitelist_vector; std::map<int, std::map<int, std::vector<int>>>::iterator iter1 = net->meso_link_vector[p_agent->current_macro_link_seq_no].white_list_dict.find(p_agent->next_macro_link_seq_no); if (iter1 != net->meso_link_vector[p_agent->current_macro_link_seq_no].white_list_dict.end()) { std::map<int, std::vector<int>>::iterator iter2 = net->meso_link_vector[p_agent->current_macro_link_seq_no].white_list_dict[p_agent->next_macro_link_seq_no].find(current_node->node_id); if (iter2 != net->meso_link_vector[p_agent->current_macro_link_seq_no].white_list_dict[p_agent->next_macro_link_seq_no].end()) { whitelist_flag = true; whitelist_vector = net->meso_link_vector[p_agent->current_macro_link_seq_no].white_list_dict[p_agent->next_macro_link_seq_no][current_node->node_id]; } } for (int j = 0; j < current_node->m_outgoing_link_vector.size(); j++) { MicroLink *outgoing_link = &net->micro_link_vector[net->micro_link_id_to_seq_no_dict[current_node->m_outgoing_link_vector[j]]]; if (net->meso_link_id_to_seq_no_dict[outgoing_link->macro_link_id] != p_agent->current_macro_link_seq_no) continue; bool valid = true; if (whitelist_flag) { std::vector<int>::iterator iter1; iter1 = std::find(whitelist_vector.begin(), whitelist_vector.end(), outgoing_link->to_node_id); if (iter1 == whitelist_vector.end()) valid = false; } if (outgoing_link->cell_type == 1) //travelling cell { outgoing_link_keeping = outgoing_link; to_node_keeping = &net->micro_node_vector[net->micro_node_id_to_seq_no_dict[outgoing_link->to_node_id]]; if (!valid) { cost_keeping = _MAX_COST_TREE; continue; } tree_cost = net->meso_link_vector[p_agent->current_macro_link_seq_no].estimated_cost_tree_for_each_movement[p_agent->next_macro_link_seq_no][to_node_keeping->node_seq_no]; if (tree_cost == _MAX_COST_TREE) { cost_keeping = _MAX_COST_TREE; } else if (to_node_keeping->available_sim_interval > t + outgoing_link->free_flow_travel_time_in_simu_interval) { cost_keeping = _MAX_TIME_INTERVAL; } else { cost_keeping = outgoing_link->free_flow_travel_time_in_simu_interval + outgoing_link->additional_cost + tree_cost; } } else { //lane changing cell outgoing_link_changing_vector.push_back(outgoing_link); to_node_changing = &net->micro_node_vector[net->micro_node_id_to_seq_no_dict[outgoing_link->to_node_id]]; if (!valid) { cost_changing = _MAX_COST_TREE; to_node_changing_vector.push_back(to_node_changing); cost_changing_vector.push_back(cost_changing); continue; } tree_cost = net->meso_link_vector[p_agent->current_macro_link_seq_no].estimated_cost_tree_for_each_movement[p_agent->next_macro_link_seq_no][to_node_changing->node_seq_no]; if (tree_cost == _MAX_COST_TREE) { cost_changing = _MAX_COST_TREE; } else if (to_node_changing->available_sim_interval > t + outgoing_link->free_flow_travel_time_in_simu_interval) { //cost_changing = to_node_changing->available_sim_interval + outgoing_link->additional_cost + // g_macro_link_vector[p_agent->current_macro_link_seq_no].estimated_cost_tree_for_each_movement[p_agent->next_macro_link_seq_no][to_node_changing->node_seq_no]; cost_changing = _MAX_TIME_INTERVAL; } else { cost_changing = outgoing_link->free_flow_travel_time_in_simu_interval + outgoing_link->additional_cost + tree_cost; } to_node_changing_vector.push_back(to_node_changing); cost_changing_vector.push_back(cost_changing); } } if (to_node_keeping == NULL) { p_agent->m_Veh_LinkDepartureTime_in_simu_interval.back()++; return; // continue; } if (cost_changing_vector.empty()) { if (cost_keeping == _MAX_COST_TREE) { //remove //agent_remove_vector.push_back(p_agent->agent_id); p_agent->remove_flag = true; p_agent->m_bCompleteTrip = false; current_node->available_sim_interval = t; std::cout << "Warning: vehicle " << p_agent->agent_id << " was removed from micronode " << current_node->node_id << " at time " << \ t * simulation_step / 60 << " due to accessibility\n"; } else if (cost_keeping < _MAX_TIME_INTERVAL) { to_node_keeping->available_sim_interval = _MAX_TIME_INTERVAL; current_node->available_sim_interval = t + node_time_headway_in_simu_interval; p_agent->micro_path_node_seq_no_vector.push_back(to_node_keeping->node_seq_no); p_agent->micro_path_link_seq_no_vector.push_back(outgoing_link_keeping->link_seq_no); p_agent->micro_path_node_id_vector.push_back(to_node_keeping->node_id); p_agent->micro_path_link_id_vector.push_back(outgoing_link_keeping->link_id); p_agent->m_Veh_LinkArrivalTime_in_simu_interval.push_back(t); p_agent->m_Veh_LinkDepartureTime_in_simu_interval.push_back(t + outgoing_link_keeping->free_flow_travel_time_in_simu_interval); } else { p_agent->m_Veh_LinkDepartureTime_in_simu_interval.back()++; return; // continue; } } else { std::vector<float>::iterator smallest = std::min_element(std::begin(cost_changing_vector), std::end(cost_changing_vector)); int smallest_position = std::distance(std::begin(cost_changing_vector), smallest); cost_changing = cost_changing_vector[smallest_position]; to_node_changing = to_node_changing_vector[smallest_position]; outgoing_link_changing = outgoing_link_changing_vector[smallest_position]; if (cost_keeping == _MAX_COST_TREE && cost_changing == _MAX_COST_TREE) { //remove //agent_remove_vector.push_back(p_agent->agent_id); p_agent->remove_flag = true; p_agent->m_bCompleteTrip = false; current_node->available_sim_interval = t; std::cout << "Warning: vehicle " << p_agent->agent_id << " was removed from micronode " << current_node->node_id << " at time " << \ t * simulation_step / 60 << " due to accessibility\n"; return; // continue; } if (cost_keeping < _MAX_TIME_INTERVAL && cost_keeping < cost_changing) { to_node_keeping->available_sim_interval = _MAX_TIME_INTERVAL; current_node->available_sim_interval = t + node_time_headway_in_simu_interval; p_agent->micro_path_node_seq_no_vector.push_back(to_node_keeping->node_seq_no); p_agent->micro_path_link_seq_no_vector.push_back(outgoing_link_keeping->link_seq_no); p_agent->micro_path_node_id_vector.push_back(to_node_keeping->node_id); p_agent->micro_path_link_id_vector.push_back(outgoing_link_keeping->link_id); p_agent->m_Veh_LinkArrivalTime_in_simu_interval.push_back(t); p_agent->m_Veh_LinkDepartureTime_in_simu_interval.push_back(t + outgoing_link_keeping->free_flow_travel_time_in_simu_interval); } else if (cost_changing < _MAX_TIME_INTERVAL && cost_changing < cost_keeping) { to_node_changing->available_sim_interval = _MAX_TIME_INTERVAL; current_node->available_sim_interval = t + node_time_headway_in_simu_interval; p_agent->micro_path_node_seq_no_vector.push_back(to_node_changing->node_seq_no); p_agent->micro_path_link_seq_no_vector.push_back(outgoing_link_changing->link_seq_no); p_agent->micro_path_node_id_vector.push_back(to_node_changing->node_id); p_agent->micro_path_link_id_vector.push_back(outgoing_link_changing->link_id); p_agent->m_Veh_LinkArrivalTime_in_simu_interval.push_back(t); p_agent->m_Veh_LinkDepartureTime_in_simu_interval.push_back(t + outgoing_link_changing->free_flow_travel_time_in_simu_interval); } else if (cost_keeping < _MAX_TIME_INTERVAL && abs(cost_keeping - cost_changing) < 0.1) { if (rand() / double(RAND_MAX) < 0.06) { to_node_changing->available_sim_interval = _MAX_TIME_INTERVAL; current_node->available_sim_interval = t + node_time_headway_in_simu_interval; p_agent->micro_path_node_seq_no_vector.push_back(to_node_changing->node_seq_no); p_agent->micro_path_link_seq_no_vector.push_back(outgoing_link_changing->link_seq_no); p_agent->micro_path_node_id_vector.push_back(to_node_changing->node_id); p_agent->micro_path_link_id_vector.push_back(outgoing_link_changing->link_id); p_agent->m_Veh_LinkArrivalTime_in_simu_interval.push_back(t); p_agent->m_Veh_LinkDepartureTime_in_simu_interval.push_back(t + outgoing_link_changing->free_flow_travel_time_in_simu_interval); } else { to_node_keeping->available_sim_interval = _MAX_TIME_INTERVAL; current_node->available_sim_interval = t + node_time_headway_in_simu_interval; p_agent->micro_path_node_seq_no_vector.push_back(to_node_keeping->node_seq_no); p_agent->micro_path_link_seq_no_vector.push_back(outgoing_link_keeping->link_seq_no); p_agent->micro_path_node_id_vector.push_back(to_node_keeping->node_id); p_agent->micro_path_link_id_vector.push_back(outgoing_link_keeping->link_id); p_agent->m_Veh_LinkArrivalTime_in_simu_interval.push_back(t); p_agent->m_Veh_LinkDepartureTime_in_simu_interval.push_back(t + outgoing_link_keeping->free_flow_travel_time_in_simu_interval); } } else { p_agent->m_Veh_LinkDepartureTime_in_simu_interval.back()++; //continue; } } }
4af9e9e6e3ef59042086f571e16b4c627be5cc6d
8ac12207906fd0ee9e99071e56bd089915747593
/components/rollkit/include/rollkit/accessory.hpp
d8de3c570dfeadfbbd3af7887f6138d5e2ba8a1c
[ "MIT" ]
permissive
NeilBetham/rollkit
2465e60a40e66da2b5ba6841342408dc8dd8f2a2
e82026397c892b5f0d3b53891d5efa51d941fd9d
refs/heads/master
2021-06-14T12:06:56.211319
2021-02-25T05:40:19
2021-02-25T05:40:19
134,494,094
4
1
null
null
null
null
UTF-8
C++
false
false
659
hpp
#ifndef ACCESSORY_HPP #define ACCESSORY_HPP #include <cstdint> #include <list> #include "json.hpp" #include "rollkit/instance_id_manager.hpp" #include "rollkit/service.hpp" namespace rollkit { class Accessory { public: Accessory() : _instance_id(get_id_manager().get_acc_id()) {} uint64_t get_id() const { return _instance_id; }; const std::list<Service>& get_services() const { return _services; }; void register_service(const Service& service) { _services.push_back(service); }; nlohmann::json serialize() const; private: uint64_t _instance_id; std::list<Service> _services; }; } // namespace rollkit #endif // ACCESSORY_HPP
41364ec3f73881e5e7634746906d514d5530bf04
c260cc49e94210f1895d2ad19206c163c7c0f7ca
/src/xml/tinystr.cpp
607a692b20609352e1f2b4a15b84faaedd7bc3bb
[]
no_license
GuillaumeSeg/IMAineCraft
3074aa8f4da068bcfbba6e1bd825c9173eb3c8fa
f8d2d207e123170db758cecee19902a107ac027d
refs/heads/master
2021-01-10T19:12:40.957657
2013-01-11T14:36:06
2013-01-11T14:36:06
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,525
cpp
/* www.sourceforge.net/projects/tinyxml This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. */ #ifndef TIXML_USE_STL #include "../../include/xml/tinystr.h" // Error value for find primitive const TiXmlString::size_type TiXmlString::npos = static_cast< TiXmlString::size_type >(-1); // Null rep. TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, { '\0' } }; void TiXmlString::reserve (size_type cap) { if (cap > capacity()) { TiXmlString tmp; tmp.init(length(), cap); memcpy(tmp.start(), data(), length()); swap(tmp); } } TiXmlString& TiXmlString::assign(const char* str, size_type len) { size_type cap = capacity(); if (len > cap || cap > 3*(len + 8)) { TiXmlString tmp; tmp.init(len); memcpy(tmp.start(), str, len); swap(tmp); } else { memmove(start(), str, len); set_size(len); } return *this; } TiXmlString& TiXmlString::append(const char* str, size_type len) { size_type newsize = length() + len; if (newsize > capacity()) { reserve (newsize + capacity()); } memmove(finish(), str, len); set_size(newsize); return *this; } TiXmlString operator + (const TiXmlString & a, const TiXmlString & b) { TiXmlString tmp; tmp.reserve(a.length() + b.length()); tmp += a; tmp += b; return tmp; } TiXmlString operator + (const TiXmlString & a, const char* b) { TiXmlString tmp; TiXmlString::size_type b_len = static_cast<TiXmlString::size_type>( strlen(b) ); tmp.reserve(a.length() + b_len); tmp += a; tmp.append(b, b_len); return tmp; } TiXmlString operator + (const char* a, const TiXmlString & b) { TiXmlString tmp; TiXmlString::size_type a_len = static_cast<TiXmlString::size_type>( strlen(a) ); tmp.reserve(a_len + b.length()); tmp.append(a, a_len); tmp += b; return tmp; } #endif // TIXML_USE_STL
715f077d1d847c782b6023565ef92abf98f4ce8f
9df24e9110f06ea1004588c87a908c68497b22c0
/2016/lugo/P1144.cpp
5ec6f832b679758a29047853ef7339f9adf271ff
[]
no_license
zhangz5434/code
b98f9df50f9ec687342737a4a2eaa9ef5bbf5579
def5fdcdc19c01f34ab08c5f27fe9d1b7253ba4f
refs/heads/master
2020-07-02T17:24:14.355545
2019-03-13T12:39:45
2019-03-13T12:39:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,257
cpp
#include <iostream> #include <cstdio> #include <algorithm> #include <cstring> using namespace std; const int MAXN=100005; const int MAXM=200005; const int INF=0x7fffff; const int MOD=100003; struct Edge { int to,next; Edge() { to=next=-1; } }e[MAXM<<1]; int first[MAXN]; int q[MAXN]; int d[MAXN]; int p[MAXN]; bool in[MAXN]; int n,m,tot; int front,rear; int ans; inline void Add_Edge(int x,int y) { tot++; e[tot].to=y; e[tot].next=first[x]; first[x]=tot; } void init() { int x,y; cin>>n>>m; memset(first,-1,sizeof(first)); for(int i=1;i<=m;i++) { cin>>x>>y; Add_Edge(x,y); Add_Edge(y,x); } for(int i=1;i<=n;i++) d[i]=INF; } void SPFA(int s) { q[rear++]=s; in[s]=1; d[s]=0; p[1]=1; while(front!=rear) { int u=q[front++]; front%=(MAXN-1); in[u]=0; for(int i=first[u];i!=-1;i=e[i].next) { int v=e[i].to; if(d[v]>d[u]+1) { d[v]=d[u]+1; p[v]=p[u]; if(!in[v]) { in[v]=1; q[rear++]=v; rear%=(MAXN-1); } } else if(d[v]==d[u]+1) { p[v]=(p[v]+p[u])%MOD; } } } } void out() { for(int i=1;i<=n;i++) cout<<p[i]<<endl; } int main() { init(); SPFA(1); out(); return 0; }
2718810b36ca862706b80c2f26da588eb85fe129
980ad4d2992e81a0f9a8c8a24399b2e8c038bc16
/src/checkpoints.cpp
eb5d2f71fddaf3510d15d93997f0318c2bcb904c
[ "MIT" ]
permissive
mjk22/neodash-testing
8ad7879908c5123d809bd5583afdcae6da2572d8
1fc9a8164cc3d5365637a849a416d288b103ca7e
refs/heads/master
2021-05-05T13:32:25.758541
2018-01-21T16:30:01
2018-01-21T16:30:01
118,398,563
0
0
null
2018-01-22T02:57:39
2018-01-22T02:57:39
null
UTF-8
C++
false
false
3,334
cpp
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2017-2018 The Neodash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "checkpoints.h" #include "chain.h" #include "chainparams.h" #include "main.h" #include "uint256.h" #include <stdint.h> #include <boost/foreach.hpp> namespace Checkpoints { /** * How many times slower we expect checking transactions after the last * checkpoint to be (from checking signatures, which is skipped up to the * last checkpoint). This number is a compromise, as it can't be accurate * for every system. When reindexing from a fast disk with a slow CPU, it * can be up to 20, while when downloading from a slow network with a * fast multicore CPU, it won't be much higher than 1. */ static const double SIGCHECK_VERIFICATION_FACTOR = 5.0; //! Guess how far we are in the verification process at the given block index double GuessVerificationProgress(const CCheckpointData& data, CBlockIndex *pindex, bool fSigchecks) { if (pindex==NULL) return 0.0; int64_t nNow = time(NULL); double fSigcheckVerificationFactor = fSigchecks ? SIGCHECK_VERIFICATION_FACTOR : 1.0; double fWorkBefore = 0.0; // Amount of work done before pindex double fWorkAfter = 0.0; // Amount of work left after pindex (estimated) // Work is defined as: 1.0 per transaction before the last checkpoint, and // fSigcheckVerificationFactor per transaction after. if (pindex->nChainTx <= data.nTransactionsLastCheckpoint) { double nCheapBefore = pindex->nChainTx; double nCheapAfter = data.nTransactionsLastCheckpoint - pindex->nChainTx; double nExpensiveAfter = (nNow - data.nTimeLastCheckpoint)/86400.0*data.fTransactionsPerDay; fWorkBefore = nCheapBefore; fWorkAfter = nCheapAfter + nExpensiveAfter*fSigcheckVerificationFactor; } else { double nCheapBefore = data.nTransactionsLastCheckpoint; double nExpensiveBefore = pindex->nChainTx - data.nTransactionsLastCheckpoint; double nExpensiveAfter = (nNow - pindex->GetBlockTime())/86400.0*data.fTransactionsPerDay; fWorkBefore = nCheapBefore + nExpensiveBefore*fSigcheckVerificationFactor; fWorkAfter = nExpensiveAfter*fSigcheckVerificationFactor; } return fWorkBefore / (fWorkBefore + fWorkAfter); } int GetTotalBlocksEstimate(const CCheckpointData& data) { const MapCheckpoints& checkpoints = data.mapCheckpoints; if (checkpoints.empty()) return 0; return checkpoints.rbegin()->first; } CBlockIndex* GetLastCheckpoint(const CCheckpointData& data) { const MapCheckpoints& checkpoints = data.mapCheckpoints; BOOST_REVERSE_FOREACH(const MapCheckpoints::value_type& i, checkpoints) { const uint256& hash = i.second; BlockMap::const_iterator t = mapBlockIndex.find(hash); if (t != mapBlockIndex.end()) return t->second; } return NULL; } } // namespace Checkpoints
cd1073168be8414a755953a27193312c4b7752ad
db5bba94cf3eae6f1a16b1e780aa36f4b8c3c2da
/yundun-ds/src/model/CreateDataLimitRequest.cc
6ac7f803c05fed41c98969e193e82472d812372c
[ "Apache-2.0" ]
permissive
chaomengnan/aliyun-openapi-cpp-sdk
42eb87a6119c25fd2d2d070a757b614a5526357e
bb7d12ae9db27f2d1b3ba7736549924ec8d9ef85
refs/heads/master
2020-07-25T00:15:29.526225
2019-09-12T15:34:29
2019-09-12T15:34:29
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,089
cc
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include <alibabacloud/yundun-ds/model/CreateDataLimitRequest.h> using AlibabaCloud::Yundun_ds::Model::CreateDataLimitRequest; CreateDataLimitRequest::CreateDataLimitRequest() : RpcServiceRequest("yundun-ds", "2019-01-03", "CreateDataLimit") {} CreateDataLimitRequest::~CreateDataLimitRequest() {} std::string CreateDataLimitRequest::getPassword()const { return password_; } void CreateDataLimitRequest::setPassword(const std::string& password) { password_ = password; setCoreParameter("Password", password); } std::string CreateDataLimitRequest::getSourceIp()const { return sourceIp_; } void CreateDataLimitRequest::setSourceIp(const std::string& sourceIp) { sourceIp_ = sourceIp; setCoreParameter("SourceIp", sourceIp); } std::string CreateDataLimitRequest::getConnector()const { return connector_; } void CreateDataLimitRequest::setConnector(const std::string& connector) { connector_ = connector; setCoreParameter("Connector", connector); } std::string CreateDataLimitRequest::getDataLimitList()const { return dataLimitList_; } void CreateDataLimitRequest::setDataLimitList(const std::string& dataLimitList) { dataLimitList_ = dataLimitList; setCoreParameter("DataLimitList", dataLimitList); } std::string CreateDataLimitRequest::getLang()const { return lang_; } void CreateDataLimitRequest::setLang(const std::string& lang) { lang_ = lang; setCoreParameter("Lang", lang); } int CreateDataLimitRequest::getResourceType()const { return resourceType_; } void CreateDataLimitRequest::setResourceType(int resourceType) { resourceType_ = resourceType; setCoreParameter("ResourceType", std::to_string(resourceType)); } std::string CreateDataLimitRequest::getServiceRegionId()const { return serviceRegionId_; } void CreateDataLimitRequest::setServiceRegionId(const std::string& serviceRegionId) { serviceRegionId_ = serviceRegionId; setCoreParameter("ServiceRegionId", serviceRegionId); } std::string CreateDataLimitRequest::getParentId()const { return parentId_; } void CreateDataLimitRequest::setParentId(const std::string& parentId) { parentId_ = parentId; setCoreParameter("ParentId", parentId); } std::string CreateDataLimitRequest::getUserName()const { return userName_; } void CreateDataLimitRequest::setUserName(const std::string& userName) { userName_ = userName; setCoreParameter("UserName", userName); }
05dba636bbf9622d80bd11c7288e8551ea60c1a9
3ad968797a01a4e4b9a87e2200eeb3fb47bf269a
/TurboDLL_src/TurboDemo/TurboDemo.h
72960f8d45277a20e06044bc13d0c67a6ff06960
[]
no_license
LittleDrogon/MFC-Examples
403641a1ae9b90e67fe242da3af6d9285698f10b
1d8b5d19033409cd89da3aba3ec1695802c89a7a
refs/heads/main
2023-03-20T22:53:02.590825
2020-12-31T09:56:37
2020-12-31T09:56:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,308
h
// TurboDemo.h : main header file for the TURBODEMO application // #if !defined(AFX_TURBODEMO_H__8825189A_02DF_4D98_A1A0_924167BA32CE__INCLUDED_) #define AFX_TURBODEMO_H__8825189A_02DF_4D98_A1A0_924167BA32CE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CTurboDemoApp: // See TurboDemo.cpp for the implementation of this class // class CTurboDemoApp : public CWinApp { public: CTurboDemoApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CTurboDemoApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CTurboDemoApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_TURBODEMO_H__8825189A_02DF_4D98_A1A0_924167BA32CE__INCLUDED_)
68cc62189aa6994e0406410c46b3b103da40f16e
39f91dc49461df23550f292ee76249b26bcbcad4
/devel/.private/darknet_ros_msgs/include/darknet_ros_msgs/BoundingBoxes.h
9d1ebf93d35d6e186c02f3214db0881e4f53f4da
[]
no_license
dkrystall/robosub_detection
efb997d5c87338c02bcb6dd59790d5a2717c8ca8
c1b70ab3017d2c367e8f458a5ee5870e815cc4e1
refs/heads/master
2022-12-01T23:40:59.044889
2021-01-21T19:50:20
2021-01-21T19:50:20
178,419,681
0
0
null
2022-11-22T05:46:45
2019-03-29T14:23:12
Makefile
UTF-8
C++
false
false
7,636
h
// Generated by gencpp from file darknet_ros_msgs/BoundingBoxes.msg // DO NOT EDIT! #ifndef DARKNET_ROS_MSGS_MESSAGE_BOUNDINGBOXES_H #define DARKNET_ROS_MSGS_MESSAGE_BOUNDINGBOXES_H #include <string> #include <vector> #include <map> #include <ros/types.h> #include <ros/serialization.h> #include <ros/builtin_message_traits.h> #include <ros/message_operations.h> #include <std_msgs/Header.h> #include <std_msgs/Header.h> #include <darknet_ros_msgs/BoundingBox.h> namespace darknet_ros_msgs { template <class ContainerAllocator> struct BoundingBoxes_ { typedef BoundingBoxes_<ContainerAllocator> Type; BoundingBoxes_() : header() , image_header() , bounding_boxes() { } BoundingBoxes_(const ContainerAllocator& _alloc) : header(_alloc) , image_header(_alloc) , bounding_boxes(_alloc) { (void)_alloc; } typedef ::std_msgs::Header_<ContainerAllocator> _header_type; _header_type header; typedef ::std_msgs::Header_<ContainerAllocator> _image_header_type; _image_header_type image_header; typedef std::vector< ::darknet_ros_msgs::BoundingBox_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::darknet_ros_msgs::BoundingBox_<ContainerAllocator> >::other > _bounding_boxes_type; _bounding_boxes_type bounding_boxes; typedef boost::shared_ptr< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> const> ConstPtr; }; // struct BoundingBoxes_ typedef ::darknet_ros_msgs::BoundingBoxes_<std::allocator<void> > BoundingBoxes; typedef boost::shared_ptr< ::darknet_ros_msgs::BoundingBoxes > BoundingBoxesPtr; typedef boost::shared_ptr< ::darknet_ros_msgs::BoundingBoxes const> BoundingBoxesConstPtr; // constants requiring out of line definition template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> & v) { ros::message_operations::Printer< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> >::stream(s, "", v); return s; } } // namespace darknet_ros_msgs namespace ros { namespace message_traits { // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True} // {'sensor_msgs': ['/opt/ros/melodic/share/sensor_msgs/cmake/../msg'], 'darknet_ros_msgs': ['/home/david/yolocam_catkin_ws/src/darknet_ros/darknet_ros_msgs/msg', '/home/david/yolocam_catkin_ws/devel/.private/darknet_ros_msgs/share/darknet_ros_msgs/msg'], 'actionlib_msgs': ['/opt/ros/melodic/share/actionlib_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/melodic/share/geometry_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/melodic/share/std_msgs/cmake/../msg']} // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types'] template <class ContainerAllocator> struct IsFixedSize< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > : FalseType { }; template <class ContainerAllocator> struct IsFixedSize< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> const> : FalseType { }; template <class ContainerAllocator> struct IsMessage< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct IsMessage< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> const> : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > : TrueType { }; template <class ContainerAllocator> struct HasHeader< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> const> : TrueType { }; template<class ContainerAllocator> struct MD5Sum< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > { static const char* value() { return "c03e7499c2e5b938e301fea76459b092"; } static const char* value(const ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator>&) { return value(); } static const uint64_t static_value1 = 0xc03e7499c2e5b938ULL; static const uint64_t static_value2 = 0xe301fea76459b092ULL; }; template<class ContainerAllocator> struct DataType< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > { static const char* value() { return "darknet_ros_msgs/BoundingBoxes"; } static const char* value(const ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator>&) { return value(); } }; template<class ContainerAllocator> struct Definition< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > { static const char* value() { return "Header header\n\ Header image_header\n\ BoundingBox[] bounding_boxes\n\ \n\ ================================================================================\n\ MSG: std_msgs/Header\n\ # Standard metadata for higher-level stamped data types.\n\ # This is generally used to communicate timestamped data \n\ # in a particular coordinate frame.\n\ # \n\ # sequence ID: consecutively increasing ID \n\ uint32 seq\n\ #Two-integer timestamp that is expressed as:\n\ # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\ # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\ # time-handling sugar is provided by the client library\n\ time stamp\n\ #Frame this data is associated with\n\ # 0: no frame\n\ # 1: global frame\n\ string frame_id\n\ \n\ ================================================================================\n\ MSG: darknet_ros_msgs/BoundingBox\n\ string Class\n\ float64 probability\n\ int64 xmin\n\ int64 ymin\n\ int64 xmax\n\ int64 ymax\n\ \n\ "; } static const char* value(const ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator>&) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.header); stream.next(m.image_header); stream.next(m.bounding_boxes); } ROS_DECLARE_ALLINONE_SERIALIZER }; // struct BoundingBoxes_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::darknet_ros_msgs::BoundingBoxes_<ContainerAllocator>& v) { s << indent << "header: "; s << std::endl; Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); s << indent << "image_header: "; s << std::endl; Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.image_header); s << indent << "bounding_boxes[]" << std::endl; for (size_t i = 0; i < v.bounding_boxes.size(); ++i) { s << indent << " bounding_boxes[" << i << "]: "; s << std::endl; s << indent; Printer< ::darknet_ros_msgs::BoundingBox_<ContainerAllocator> >::stream(s, indent + " ", v.bounding_boxes[i]); } } }; } // namespace message_operations } // namespace ros #endif // DARKNET_ROS_MSGS_MESSAGE_BOUNDINGBOXES_H
24d3d69f6d3687dd549b7d5a5d0c4d0c982d5759
d64150646f11e6d153be161c8653fc852e7eb05d
/存储类、链接和内存管理/掷骰子/掷骰子/manydice.cpp
18ec649772f558478d71d56d3c212ef4170d1f05
[]
no_license
Hackergeek/C
019e99da67624ee798954be57c4723ded7f1129b
cc73cc391e749825ef0235f019260b57ee8be3a0
refs/heads/master
2021-01-09T20:29:40.042076
2018-09-30T04:00:04
2018-09-30T04:00:04
61,952,229
0
0
null
null
null
null
UTF-8
C++
false
false
600
cpp
#include "diceroll.h" #include<stdio.h> #include<time.h> #include<stdlib.h> int main(void) { int dice,roll; int sides; srand((unsigned int) time(0)); printf("Enter the number of sides per die, 0 to stop.\n"); while (scanf_s("%d", &sides) == 1 && sides > 0) { printf("How many dice?\n"); scanf_s("%d", &dice); roll = roll_n_dice(dice, sides); printf("You have rolled a %d using %d %d-sided dice.\n", roll, dice, sides); printf("How many sides? Enter 0 to stop.\n"); } printf("The rollem() function was called %d times.\n", roll_count); printf("GOOD FORTUNE TO YOU!\n"); return 0; }
85e5b230260918997d3979b6ab1acb912b9eb638
e54e314a50b4b8fd7f6589492ce23436958ec091
/Operator overloading/Relational operator overloading/smaller bw two number.cpp
665b93d741ba0b0bc684a8a698505e2a76000ecd
[]
no_license
gauravsingh9891/C-Programming-
edaa7e15449010eeb6c5c2ef152e1112f193a0b9
57e48f9ac4916eff7bc0457fb3ccafe4f53b46c0
refs/heads/master
2020-08-03T09:51:48.189252
2020-01-24T20:04:50
2020-01-24T20:04:50
211,708,764
0
0
null
null
null
null
UTF-8
C++
false
false
578
cpp
#include<iostream> #include<conio.h> using namespace std; class Smaller { private: int x; public: Smaller() { x=0; } void get() { cout<<"Enter the value of x ="; cin>>x; } void show() { cout<<"Value of x ="<<x<<endl; } int operator <(Smaller s) { if(x<s.x) { return(1); } else { return(0); } } }; main(void) { Smaller s1,s2; s1.get(); s2.get(); s1.show(); s2.show(); if(s1<s2) { cout<<"The First number is small"; } else { cout<<"The Second number is small"; } getch(); }
2c4ac4aa8a68e44cb21676e2693707271040aa53
9185e2aefea655690f26571848cccd12a4145d2a
/BAT-0.9.3/benchmarks/test/BCIntegrate_TEST.cxx
5418809c7484d812dada115ba5dcfccc0ae624ed
[ "DOC" ]
permissive
yannmu/Gator_2020
f7460509f8df984bf3b895f0adc1e1964b16351f
8042371ec8d8ca63fe6b0fa75cf1ad6a90572ac4
refs/heads/master
2023-04-19T02:13:53.520283
2021-05-04T14:53:35
2021-05-04T14:53:35
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,516
cxx
/* * Copyright (C) 2013, Daniel Greenwald and Frederik Beaujean * All rights reserved. * * For the licensing terms see doc/COPYING. */ #include <config.h> #include "IntegrationModel.h" #include "GaussModel.h" #include "test.h" #include <BAT/BCMath.h> #include <BAT/BCParameter.h> using namespace test; class BCIntegrateTest : public TestCase { public: struct Precision { double monteCarlo, vegas, suave, divonne, cuhre; // Turn off checks by default Precision(double value = -1) { Set(value); } void Set(double value) { monteCarlo = vegas = suave = divonne = cuhre = value; } }; BCIntegrateTest() : TestCase("BCIntegrate test") { } static IntegrationModel Factory(unsigned dim, unsigned modality, unsigned complexity) { IntegrationModel m; m.SetDimensionality(dim); m.SetModality(modality); m.SetComplexity(complexity); m.PopulatePolynomialDegrees(); m.MCMCSetRandomSeed(1346); return m; } #if HAVE_CUBA_H static void IntegrateCuba(IntegrationModel & m, BCIntegrate::BCCubaMethod method, const double & eps) { // aim for higher precision, as naively 1/3 of tests would lie outside interval // if eps were used m.SetRelativePrecision(eps / 2.); m.SetCubaIntegrationMethod(method); TEST_CHECK_RELATIVE_ERROR(m.Integrate(), m.Integral(), eps); } #endif static void IntegrateBat(IntegrationModel & m, BCIntegrate::BCIntegrationMethod method, const double & eps) { // aim for higher precision, as naively 1/3 of tests would lie outside interval // if eps were used m.SetRelativePrecision(eps / 2.); TEST_CHECK_RELATIVE_ERROR(m.Integrate(method), m.Integral(), eps); } static void IntegrateAllMethods(unsigned dim, unsigned modality, unsigned complexity, const Precision & p) { IntegrationModel m = Factory(dim, modality, complexity); std::cout << "Computing single integration test in " << dim << " dimensions with modality = " << modality << " and complexity = " << complexity << ".\n"; if (p.monteCarlo > 0) IntegrateBat(m, BCIntegrate::kIntMonteCarlo, p.monteCarlo); #if HAVE_CUBA_H if (p.vegas > 0) IntegrateCuba(m, BCIntegrate::kCubaVegas, p.vegas); if (p.suave > 0) IntegrateCuba(m, BCIntegrate::kCubaSuave, p.suave); if (p.divonne> 0) IntegrateCuba(m, BCIntegrate::kCubaDivonne, p.divonne); if (p.cuhre > 0) IntegrateCuba(m, BCIntegrate::kCubaCuhre, p.cuhre); #endif } void Optimization() const { // two modes at 0 and 1 IntegrationModel m = Factory(1,1,1); m.MCMCSetRandomSeed(1346); TEST_CHECK_NEARLY_EQUAL(m.FindMode(std::vector<double>(1, 0.1)).front(), 0, 1e-3); TEST_CHECK_NEARLY_EQUAL(m.FindMode(BCIntegrate::kOptMinuit, std::vector<double>(1, 0.1)).front(), 0, 1e-10); TEST_CHECK_NEARLY_EQUAL(m.FindMode(BCIntegrate::kOptMinuit, std::vector<double>(1, 0.9)).front(), 1, 1e-10); TEST_CHECK_NEARLY_EQUAL(m.FindMode(BCIntegrate::kOptSimAnn, std::vector<double>(1, 0.1)).front(), 1, 1e-3); TEST_CHECK_NEARLY_EQUAL(m.FindMode(BCIntegrate::kOptSimAnn, std::vector<double>(1, 0.9)).front(), 1, 1e-3); TEST_CHECK_NEARLY_EQUAL(m.FindMode(BCIntegrate::kOptMetropolis).front(), 1, 1e-3); m.PrintSummary(); m.PrintShortFitSummary(); } void FixedParameters() const { static const unsigned ndim = 4; GaussModel m("Fixed parameter example", ndim); m.MCMCSetRandomSeed(613); m.GetParameter(3)->Fix(0.5); // integrate over normalized Gaussian likelihood // evidence = 1 / parameter volume * N(mu | \theta_3) double evidence = 1; for (unsigned i = 0 ; i < m.GetNParameters() ; ++i) { const BCParameter * p = m.GetParameter(i); if (p->Fixed()) evidence *= exp(BCMath::LogGaus(p->GetFixedValue(), 0.0, 2.0, true)); else evidence /= p->GetRangeWidth(); } std::cout << "Correct evidence: " << evidence << std::endl; static const double eps = 3e-2; m.SetRelativePrecision(eps); m.SetAbsolutePrecision(1e-12); TEST_CHECK_RELATIVE_ERROR(m.Integrate(BCIntegrate::kIntMonteCarlo), evidence, eps); #if HAVE_CUBA_H m.SetIntegrationMethod(BCIntegrate::kIntCuba); m.SetCubaIntegrationMethod(BCIntegrate::kCubaVegas); TEST_CHECK_RELATIVE_ERROR(m.Integrate(), evidence, eps); m.SetCubaIntegrationMethod(BCIntegrate::kCubaSuave); TEST_CHECK_RELATIVE_ERROR(m.Integrate(), evidence, eps); m.SetCubaIntegrationMethod(BCIntegrate::kCubaDivonne); TEST_CHECK_RELATIVE_ERROR(m.Integrate(), evidence, eps); m.SetCubaIntegrationMethod(BCIntegrate::kCubaCuhre); TEST_CHECK_RELATIVE_ERROR(m.Integrate(), evidence, eps); #endif } void Integration() const { // top down: normalization should work automatically { IntegrationModel m = Factory(2, 1, 1); static const double eps = 1e-2; m.SetRelativePrecision(eps); m.Normalize(); TEST_CHECK_RELATIVE_ERROR(m.GetIntegral(), m.Integral(), eps * 1.3); } { Precision p; p.monteCarlo = 1e-2; p.vegas = 2e-2; p.suave = 1e-2; p.divonne = 2; // fails in 1D p.cuhre = 2; // fails in 1D IntegrateAllMethods(1, 1, 1, p); } { Precision p(1e-2); p.divonne = p.cuhre = -2e-3; IntegrateAllMethods(2, 1, 1, p); } { Precision p(5e-3); p.suave = -1; IntegrateAllMethods(5, 1, 1, p); } // tough case: all cuba methods far off, but sample mean surprisingly good // todo bug if modality is >3, results not reproducible, probably accessing random memory locations in likelihood { Precision p(5e-2); p.monteCarlo = 0.3; p.vegas = p.suave = p.divonne = p.cuhre = -1; IntegrateAllMethods(15, 1, 1, p); } } void Slice() const { GaussModel m("slice", 1); BCParameter * p = m.GetParameter(0); // set bins of width 0.1 // maximum should be at the center of one of the bins that have an edge at zero p->SetLimits(-3, 3); p->SetNbins(60); m.MarginalizeAll(BCIntegrate::kMargGrid); TEST_CHECK_RELATIVE_ERROR(0.05, std::abs(m.GetBestFitParameter(0)), 1e-14); // mode finding should start from previous solution and converge to (0, 0) m.FindMode(); TEST_CHECK_NEARLY_EQUAL(0, m.GetBestFitParameter(0), 5e-5); } virtual void run() const { Integration(); Optimization(); FixedParameters(); Slice(); } } bcIntegrateTest;
f8e1e308c8ca82a58e445c3e01bdd382b3fa02f4
838dc822982d934996ed3c8c7980c5b6b305206b
/src/clientversion.cpp
1a11b8823f02eeccf6c904274b746d2fb047eb4f
[ "MIT" ]
permissive
gncoincc/gncoin
9eb6034bb4e83172bb009a3551feb0c42d6779e5
e65a7481c7465f67f5ef9fef9e6e0a8d0b508e91
refs/heads/master
2020-06-17T17:53:38.545030
2019-07-09T11:54:40
2019-07-09T11:54:40
195,998,106
0
0
null
null
null
null
UTF-8
C++
false
false
3,961
cpp
// Copyright (c) 2012-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "clientversion.h" #include "tinyformat.h" #include <string> /** * Name of client reported in the 'version' message. Report the same name * for both gncoind and gncoin-qt, to make it harder for attackers to * target servers or GUI users specifically. */ const std::string CLIENT_NAME("GNC Core"); /** * Client version number */ #define CLIENT_VERSION_SUFFIX "" /** * The following part of the code determines the CLIENT_BUILD variable. * Several mechanisms are used for this: * * first, if HAVE_BUILD_INFO is defined, include build.h, a file that is * generated by the build environment, possibly containing the output * of git-describe in a macro called BUILD_DESC * * secondly, if this is an exported version of the code, GIT_ARCHIVE will * be defined (automatically using the export-subst git attribute), and * GIT_COMMIT will contain the commit id. * * then, three options exist for determining CLIENT_BUILD: * * if BUILD_DESC is defined, use that literally (output of git-describe) * * if not, but GIT_COMMIT is defined, use v[maj].[min].[rev].[build]-g[commit] * * otherwise, use v[maj].[min].[rev].[build]-unk * finally CLIENT_VERSION_SUFFIX is added */ //! First, include build.h if requested #ifdef HAVE_BUILD_INFO #include "build.h" #endif //! git will put "#define GIT_ARCHIVE 1" on the next line inside archives. #ifdef GIT_ARCHIVE #define GIT_COMMIT_ID "cbcb549" #define GIT_COMMIT_DATE "Tue, 9 Feb 2016 16:54:57 -0500" #endif #define BUILD_DESC_WITH_SUFFIX(maj, min, rev, build, suffix) \ "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-" DO_STRINGIZE(suffix) #define BUILD_DESC_FROM_COMMIT(maj, min, rev, build, commit) \ "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-g" commit #define BUILD_DESC_FROM_UNKNOWN(maj, min, rev, build) \ "v" DO_STRINGIZE(maj) "." DO_STRINGIZE(min) "." DO_STRINGIZE(rev) "." DO_STRINGIZE(build) "-unk" #ifndef BUILD_DESC #ifdef BUILD_SUFFIX #define BUILD_DESC BUILD_DESC_WITH_SUFFIX(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD, BUILD_SUFFIX) #elif defined(GIT_COMMIT_ID) #define BUILD_DESC BUILD_DESC_FROM_COMMIT(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD, GIT_COMMIT_ID) #else #define BUILD_DESC BUILD_DESC_FROM_UNKNOWN(CLIENT_VERSION_MAJOR, CLIENT_VERSION_MINOR, CLIENT_VERSION_REVISION, CLIENT_VERSION_BUILD) #endif #endif #ifndef BUILD_DATE #ifdef GIT_COMMIT_DATE #define BUILD_DATE GIT_COMMIT_DATE #else #define BUILD_DATE __DATE__ ", " __TIME__ #endif #endif const std::string CLIENT_BUILD(BUILD_DESC CLIENT_VERSION_SUFFIX); const std::string CLIENT_DATE(BUILD_DATE); static std::string FormatVersion(int nVersion) { if (nVersion % 100 == 0) return strprintf("%d.%d.%d", nVersion / 1000000, (nVersion / 10000) % 100, (nVersion / 100) % 100); else return strprintf("%d.%d.%d.%d", nVersion / 1000000, (nVersion / 10000) % 100, (nVersion / 100) % 100, nVersion % 100); } std::string FormatFullVersion() { return CLIENT_BUILD; } /** * Format the subversion field according to BIP 14 spec (https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki) */ std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments) { std::ostringstream ss; ss << "/"; ss << name << ":" << FormatVersion(nClientVersion); if (!comments.empty()) { std::vector<std::string>::const_iterator it(comments.begin()); ss << "(" << *it; for (++it; it != comments.end(); ++it) ss << "; " << *it; ss << ")"; } ss << "/"; return ss.str(); }
182145a8b112220fff03b06ffee7374f5ce60da8
4a3e68203e0a9ae20bebb6c30ed2e2095a86810d
/SAT_AppStorage/SAT_AppStorage.cpp
5e66a2295075081afca647bdf4922baa9e5a0472
[]
no_license
Unaim6/ArduSatSDK
2310c2735dcae236bf9ae3b6c99cf025c7576687
f69a22ec42f8adfc8ba0f44c3312ac2d3133aa2b
refs/heads/master
2021-01-16T20:21:31.269876
2013-05-14T23:41:48
2013-05-14T23:41:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,942
cpp
/* SAT_AppStorage.cpp - Library to write arduino application data from arduino->supervisor. Copyright (C) 2013 Jorge Ortiz for NanoSatisfi Copyright 2013 NanoSatisfi, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ /****************************************************************************** * Includes ******************************************************************************/ #include <stdio.h> #include <string.h> #include <I2C_add.h> #include "SAT_AppStorage.h" /****************************************************************************** * Definitions ******************************************************************************/ /****************************************************************************** * Constructors ******************************************************************************/ SAT_AppStorage::SAT_AppStorage(uint8_t id){ _local_address = id; commLayer = new OnboardCommLayer(MULTIMASTER, _local_address); } /****************************************************************************** * Private functions ******************************************************************************/ /****************************************************************************** * User API ******************************************************************************/ /* Passes the experiment data to the comm layer; the comm layer enqueues if for sending upon request from master; */ void SAT_AppStorage::store_exp_data(SAT_ExperimentData* edata){ if(edata!=NULL){ exp_data_t* data = edata->get_exp_data(); message_t msg; msg.t = APPEND; msg.node_addr = _local_address; nano_datamsg_t* datamsg = (nano_datamsg_t*)&msg.data; datamsg->len = sizeof(exp_data_t); memcpy(datamsg->buf, data, sizeof(exp_data_t)); commLayer->send(&msg, I2C_ADD_SUPERVISOR); } } /* Passes the experiment data to the comm layer; the comm layer enqueues if for sending upon request from master; The data comes in raw form. */ void SAT_AppStorage::store_exp_data(const uint8_t* buf, size_t len){ if(buf!=NULL){ message_t msg; msg.t = APPEND; msg.node_addr = _local_address; nano_datamsg_t* datamsg = (nano_datamsg_t*)&msg.data; datamsg->len = len; memcpy(datamsg->buf, buf, len); commLayer->send(&msg, I2C_ADD_SUPERVISOR); } }
ccef1eb18a64a9fc3ae918c3a88dd9afcb3fede9
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/CondFormats/AlignmentRecord/src/ESAlignmentErrorExtendedRcd.cc
d697303b96ddffb8bb49c3849add1e5e67906e18
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
C++
false
false
207
cc
#include "CondFormats/AlignmentRecord/interface/ESAlignmentErrorExtendedRcd.h" #include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" EVENTSETUP_RECORD_REG(ESAlignmentErrorExtendedRcd);
e1a40a60d0d45a07783cb435b9cb726e7b2a05e8
0ce926697d8284a137eb6ccf999b45106e6c10e8
/Plonk/AnimatedSprite.h
6dcdb07fa9f0a4c9ff73f28b6c2e9795638706c2
[]
no_license
HexyWitch/sfml-plonk
b57a0d1334c0d808ad14fdfff3adafe2b5a5a866
ab184d9769c377d6fa5e70eed7213a9351e33bec
refs/heads/master
2023-01-29T09:18:38.425904
2013-08-02T12:16:08
2013-08-02T12:16:08
null
0
0
null
null
null
null
UTF-8
C++
false
false
470
h
#pragma once #include "SpriteSheet.h" #include "Animation.h" #include <string> #include <map> class AnimatedSprite : public SpriteSheet { public: AnimatedSprite(sf::Vector2i tileSize, sf::Vector2i sheetSize); void AddAnimation(std::string name, std::vector<int> frames, float frameRate, bool loopAnimation); void Start(std::string name); void Stop(); void Update(float dTime); private: std::map<std::string, Animation*> animations; std::string current; };
48af257895ea9509f0d8fd226901166151f92203
a1f009fbc7700cd17fffcd97518bda1593064e33
/source_code/C/multithread/sum_thread.cpp
ab5879901b11f950bcef1a00ae45c6525ed36b7b
[]
no_license
Alrin12/ComputerScienceSchool
2db06f9d198f67ad587535b3cab0dabd8a4b8e5c
7543ae686394fc573f80bf680ae4371a2871dede
refs/heads/master
2021-01-23T15:04:22.672139
2017-07-17T15:32:31
2017-07-17T15:32:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,320
cpp
#include <stdio.h> #include <Windows.h> #include <process.h> #define ARR_SIZE 100 #define THREAD_NUM 4 long long gSum = 0; int cnt = 0; HANDLE hMutex; unsigned WINAPI SumArr(void *); int main(int argc, char ** argv) { unsigned int threadIDArr[THREAD_NUM]; //threadArray HANDLE threadArray[THREAD_NUM]; hMutex = CreateMutex(NULL, FALSE, NULL); int arr[ARR_SIZE]; int offset = ARR_SIZE / 4; for (int i = 0; i < ARR_SIZE; i++) arr[i] = i + 1; for (int i = 0; i < THREAD_NUM; i++) { threadArray[i] = (HANDLE)_beginthreadex(NULL, 0, SumArr, (void*)(arr+ (i * offset)), 0, &threadIDArr[i]); printf("threadID %d is running \n", threadIDArr[i]); } WaitForMultipleObjects(4, threadArray, TRUE, INFINITE); printf("the gSum is %d \n", gSum); printf("the number of threads is %d \n", cnt); CloseHandle(hMutex); /* //to compare the sum with single thread! int sum = 0; for (int i = 0; i < ARR_SIZE; i++) sum += (i + 1); printf("single thread sum is %d \n", sum); */ return 0; } unsigned WINAPI SumArr(void * arg) { long long sum = 0; int * arr = (int*)arg; int end_point = ARR_SIZE / 4; for (int i = 0; i < end_point; i++) { sum += arr[i]; printf("%d is added!\n", arr[i]); } WaitForSingleObject(hMutex, INFINITE); gSum += sum; cnt++; ReleaseMutex(hMutex); return 0; }
9d1b5484645c7b6d3b1ec23d4341f95c9718d2ae
2c5c6aa01ae2d09c4c73911a6ed20dac8637ae3e
/Gzdoom/src/g_shared/a_weaponpiece.cpp
fe36951112191b06adad23e8fec8597611934bbe
[]
no_license
Xeomuz/Doom-Port-Source-Code
ae095d4540b65eec209f3c2f9ac8586a2b90f859
6fe301ea5916de0bd8f06bdcd4bfe926a995dc6b
refs/heads/master
2020-12-24T08:49:39.084300
2016-09-05T05:50:54
2016-09-05T05:50:54
5,394,666
1
0
null
null
null
null
UTF-8
C++
false
false
3,676
cpp
#include "a_pickups.h" #include "a_weaponpiece.h" #include "doomstat.h" #include "farchive.h" IMPLEMENT_CLASS (AWeaponHolder) void AWeaponHolder::Serialize (FArchive &arc) { Super::Serialize(arc); arc << PieceMask << PieceWeapon; } IMPLEMENT_POINTY_CLASS (AWeaponPiece) DECLARE_POINTER (FullWeapon) END_POINTERS void AWeaponPiece::Serialize (FArchive &arc) { Super::Serialize (arc); arc << WeaponClass << FullWeapon << PieceValue; } //========================================================================== // // TryPickupWeaponPiece // //========================================================================== bool AWeaponPiece::TryPickup (AActor *&toucher) { AInventory * inv; AWeaponHolder * hold=NULL; bool shouldStay = PrivateShouldStay (); int gaveAmmo; AWeapon * Defaults=(AWeapon*)GetDefaultByType(WeaponClass); FullWeapon=NULL; for(inv=toucher->Inventory;inv;inv=inv->Inventory) { if (inv->IsKindOf(RUNTIME_CLASS(AWeaponHolder))) { hold=static_cast<AWeaponHolder*>(inv); if (hold->PieceWeapon==WeaponClass) break; hold=NULL; } } if (!hold) { hold=static_cast<AWeaponHolder*>(Spawn(RUNTIME_CLASS(AWeaponHolder), 0, 0, 0, NO_REPLACE)); hold->BecomeItem(); hold->AttachToOwner(toucher); hold->PieceMask=0; hold->PieceWeapon=WeaponClass; } if (shouldStay) { // Cooperative net-game if (hold->PieceMask & PieceValue) { // Already has the piece return false; } toucher->GiveAmmo (Defaults->AmmoType1, Defaults->AmmoGive1); toucher->GiveAmmo (Defaults->AmmoType2, Defaults->AmmoGive2); } else { // Deathmatch or singleplayer game gaveAmmo = toucher->GiveAmmo (Defaults->AmmoType1, Defaults->AmmoGive1) + toucher->GiveAmmo (Defaults->AmmoType2, Defaults->AmmoGive2); if (hold->PieceMask & PieceValue) { // Already has the piece, check if mana needed if (!gaveAmmo) return false; GoAwayAndDie(); return true; } } hold->PieceMask |= PieceValue; // Check if weapon assembled if (hold->PieceMask== (1<<Defaults->health)-1) { if (!toucher->FindInventory (WeaponClass)) { FullWeapon= static_cast<AWeapon*>(Spawn(WeaponClass, 0, 0, 0, NO_REPLACE)); // The weapon itself should not give more ammo to the player! FullWeapon->AmmoGive1=0; FullWeapon->AmmoGive2=0; FullWeapon->AttachToOwner(toucher); FullWeapon->AmmoGive1=Defaults->AmmoGive1; FullWeapon->AmmoGive2=Defaults->AmmoGive2; } } GoAwayAndDie(); return true; } bool AWeaponPiece::ShouldStay () { return PrivateShouldStay (); } bool AWeaponPiece::PrivateShouldStay () { // We want a weapon piece to behave like a weapon, so follow the exact // same logic as weapons when deciding whether or not to stay. if (((multiplayer && (!deathmatch && !alwaysapplydmflags)) || (dmflags & DF_WEAPONS_STAY)) && !(flags&MF_DROPPED)) { return true; } return false; } //=========================================================================== // // PickupMessage // // Returns the message to print when this actor is picked up. // //=========================================================================== const char *AWeaponPiece::PickupMessage () { if (FullWeapon) { return FullWeapon->PickupMessage(); } else { return Super::PickupMessage(); } } //=========================================================================== // // DoPlayPickupSound // // Plays a sound when this actor is picked up. // //=========================================================================== void AWeaponPiece::PlayPickupSound (AActor *toucher) { if (FullWeapon) { FullWeapon->PlayPickupSound(toucher); } else { Super::PlayPickupSound(toucher); } }
751b8ca5f229f9eac6f15ef33a8e4558cc2e899e
a3077f14d1657e39d70e3b13c69064cd170b22ce
/aufgabe5/tlibrary.h
47b4cd1fea73ce63b63907e4a80a9cb88ee4fc77
[]
no_license
theevanich/CppKempfer
ceb9dd0726beaab2ac4205c8f76f3793e65c8a46
408baad33b3f4fcee4e3d91b040359b18f613e92
refs/heads/master
2021-01-19T16:10:34.971030
2017-07-23T12:00:08
2017-07-23T12:00:08
88,253,635
1
2
null
2017-07-23T12:00:09
2017-04-14T09:23:20
C++
UTF-8
C++
false
false
1,160
h
#ifndef TLIBRARY_H #define TLIBRARY_H #include <fstream> #include <iostream> #include <string> #include <vector> #include "tdate.h" #include "tlocation.h" #include "taddress.h" #include "tperson.h" #include "tmedium.h" #include "temployee.h" #include "tcustomer.h" #include "tprintedmedium.h" #include "tbook.h" #include "tmagazine.h" #include "tdvd.h" #include "tcd.h" #include "taudiobook.h" #include "xml.h" class TLibrary { protected: private: string Name; TAddress* address; TEmployee* Manager; vector<TMedium*>MediumList; void load(ifstream&); public: TLibrary(string, TAddress*, TEmployee*); TLibrary(ifstream&); ~TLibrary(); void setName(string); void setAddress(TAddress*); void setManager(TEmployee*); void setMediumList(vector<TMedium*>); void print(); string get_name() const; TAddress* get_address() const; TEmployee* get_manager() const; vector<TMedium*>getMediumList() const; void add(TMedium*); }; #endif // TLibrary_h
6b413cdeeda32be877eaf2e564d0e20058e74ede
c5457e86f179fdf0382da6f8085e156946a97d96
/Tetris visual/Main.cpp
e09cf88924ea3f4ca8842a908b1cb8ff518585f5
[]
no_license
DianaCardoso/Tetris
353743526241d519470d9378986cbcb0cd7a0353
39a66fefa9f438bab94d0cdee628569c03652449
refs/heads/master
2021-08-26T05:02:22.359824
2017-11-21T17:21:18
2017-11-21T17:21:18
111,579,312
0
0
null
null
null
null
ISO-8859-1
C++
false
false
462
cpp
#include "Tetris.h" #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <Windows.h> //kbhit(); //Sleep(milis); int main() { srand(time(NULL)); inicializa(20,20); //inicializa o jogo, informando as dimensões da tela telainicial(); while (!quit()) { executajogo(); //função que executa o jogo //Sleep(rand() % rand()%rand()%10); //tentativa de forçar relogio do sistema para evitar padrões ao gerar peças } return 0; }
7bccbc6edb15600f38473fc682948e378e444c75
b4cb38c956f17f8383a602f79734aec91b9a7904
/source/FAST/Examples/Interoperability/qtInteroperability.cpp
eadf6f43a4aaa9de78c7c8bfb8341d1e545ddd5a
[ "Apache-2.0", "BSD-2-Clause", "LGPL-2.0-or-later", "MIT" ]
permissive
smistad/FAST
db47ca4378c77548600cbf0c404792d4330e6b22
73209765d7fedc1df7e3fd3cd5b7e8540eb0d74d
refs/heads/master
2023-08-16T01:39:23.106440
2023-08-15T11:21:47
2023-08-15T11:26:52
17,882,588
375
95
BSD-2-Clause
2023-03-08T12:34:38
2014-03-18T21:26:28
C++
UTF-8
C++
false
false
573
cpp
/** * Examples/Interoperability/qtInteroperability.cpp * * If you edit this example, please also update the wiki and source code file in the repository. */ #include "qtInteroperability.hpp" int main(int argc, char** argv) { // Create Qt Application QScopedPointer<QApplication> app(new QApplication(argc, argv)); // Create Qt widget QScopedPointer<WindowWidget> window(new WindowWidget); // Show widget window->show(); // Start application event handling (this call blocks until application is closed) app->exec(); return 0; }
19fb7cec30171329c63381bea532b6c0ad31d9c8
ff2ecf52daba1c0f29ad1f5e6d1b3f146e561230
/Chodnik.cpp
4e114557622eb05b630152eca42e85e3da60c63e
[]
no_license
asikson/Algorithms
2792581f6694af2b6b91feddb07ee9ec9d062719
b7ded9da1de80d7cafc70d28bc5e7f20afe41450
refs/heads/master
2022-11-25T09:31:17.744661
2020-07-30T21:13:15
2020-07-30T21:13:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,233
cpp
// Joanna Mielniczuk #include <bits/stdc++.h> using namespace std; int n; int cycleCTRL; struct plate { int l; int m; int r; }; bool Visited[10001]; // visited vertices vector<plate> Path; // used plates vector<plate> Edges[10001]; // list of edges void DFS(int vertice) { Visited[vertice] = true; for (int i=0; i < Edges[vertice].size(); i++) { plate newPlate = Edges[vertice][i]; if (newPlate.r == 0) { Path.push_back(newPlate); cycleCTRL++; return; } else if (!(Visited[newPlate.r])) { Path.push_back(newPlate); DFS(newPlate.r); if (cycleCTRL > 0) return; } } Path.pop_back(); } int main() { cycleCTRL = 0; scanf("%d", &n); int d1, d2, d3; for (int i=0; i<n; i++) { scanf("%d %d %d", &d1, &d2, &d3); plate newPlate = {d1, d2, d3}; Edges[d1].push_back(newPlate); } DFS(0); if (cycleCTRL == 1) { printf("%lu\n", Path.size()); for (int i=0; i < Path.size(); i++) printf("%d %d %d\n", Path[i].l, Path[i].m, Path[i].r); } else printf("BRAK\n"); return 0; }
[ "Asikson" ]
Asikson
679e06be16fca044d9140cecc081b56b96d1a811
619023beac5024be874417cbbb4c878519b78777
/iolib/He/he.threads.h
b9e4a89857a9e61dd3075fe523016537aab066a3
[ "Apache-2.0", "MIT", "MS-PL", "Libpng", "Zlib", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SerVB/pph-native
73feea2036d7d5597b651f1c004bc4a811212bf4
22a6ff265158c57413c4e74443b6c2fd1538ff29
refs/heads/master
2023-08-29T15:26:11.981956
2021-11-04T15:14:04
2021-11-04T15:14:04
420,064,860
2
0
null
null
null
null
UTF-8
C++
false
false
10,818
h
/* * This file is a part of Pocket Heroes Game project * http://www.pocketheroes.net * https://code.google.com/p/pocketheroes/ * * Copyright 2004-2010 by Robert Tarasov and Anton Stuk (iO UPG) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** @file * @brief Multithreading synchronization handling wrappers implementation */ /** @addtogroup iolib_he * @{ */ #ifndef _IOLIB_HELIUM_THREADS_H_ #define _IOLIB_HELIUM_THREADS_H_ #include "he.std.h" // Const const uint32 MULTILOCK_HANDLES = 4; // Thread exec. function decl typedef INT (CDECL* ThreadFunction)(void*); /// Base syncronization object class class iSyncObject { public: /// Destructor virtual ~iSyncObject(); /// Implicit return handle virtual inline operator HANDLE (); /// Wait for access for this object. /// Return if successful in timeout specified. /// Zero timeout checks and returns w/o delay Lock and Wait are equivalent. virtual bool Lock( uint32 timeout = INFINITE ); /// Wait for access for this object. inline bool Wait( uint32 timeout = INFINITE ); /// Unlock access to this object. virtual bool Unlock(); /// Unlock access to this object. inline bool Signal(); /// Unlock access to this object, returns true if successful. virtual bool Unlock( uint32 count ); /// Tests for lock virtual bool IsLocked(); protected: HANDLE m_Handle; // Handle for sync object const iCharT* m_Name; // Name of the object /// diagnostic friend class iSingleLock; /// Create sync object with it's name iSyncObject( const iCharT* aname ); /// Create nameless sync object iSyncObject(); }; ///Critical section - faster single process mutex class iCriticalSection : public iSyncObject { public: /// Create a new critical section iCriticalSection( const iCharT* name = NULL ); /// Cleanup c/s virtual inline ~iCriticalSection(); /// Aquire lock to the c/s virtual bool Lock( uint32 timeout = INFINITE ); /// Release lock virtual bool Unlock(); /// Release lock virtual bool Unlock( uint32 count ); /// Tests for lock virtual bool IsLocked(); /// Sets the spin count for the c/s uint32 SetSpinCount( uint32 spincount ); private: CRITICAL_SECTION m_CritSec; }; /// @brief Mutex - only one thread at a time can own the mutex. If the thread trys to lock mutex that already owned by another thread it will be block ( for the timeout ) until owning thread unlock the mutex. /// Mutexes are typically used to protect shared resources that can be accessed only by one thread of execution. class iMutex : public iSyncObject { public: /// Constructs mutex with optional identifier iMutex( bool owned = false, const iCharT* ID = NULL ); /// Destructor virtual inline ~iMutex(); /// Unlock access to the object virtual bool Unlock(); /// Unlock access to the object virtual bool Unlock( uint32 count ); }; /// @brief More than one thread can lock a semaphore class at the same time. /// If the thread attempts to lock the semaphore and the maximum number of locks has been reached it will block ( for the timeout ) until one of the owners unlocks the semaphore. /// Semaphores are typically used to protect shared resources that can be accessed by limited number threads of execution at the same time. class iSemaphore : public iSyncObject { public: /// Constructs semaphore with initial and max counts iSemaphore( uint32 initial = 0, uint32 max = 1, const iCharT* id = NULL ); /// Destructor virtual inline ~iSemaphore(); /// Unlock virtual bool Unlock(); /// Unlock virtual bool Unlock( uint32 count ); }; /// @brief A WEvent object exists in two states - signaled and non-signaled. /// When signaled threads attempting to lock this object do not block - otherwise the threads are blocked until the object changes to the signaled state. class iWEvent : public iSyncObject { public: /// Constructor iWEvent( bool manual = false, bool initial = false, const iCharT* id = NULL ); /// Destructor virtual inline ~iWEvent(); /// Unlocks the access to this object virtual bool Unlock(); /// Set the events as signaled void Set(); /// Pulse(signal) the event, releasing waiting threads and then return to the non-signaled state. void Pulse(); /// Reset to the non-signaled state void Reset(); }; /// This object allows multithreading execution. class iThread : public iSyncObject { public: /// Priority classes enumeration enum Priority { TIME_CRITICAL = 15, HIGHEST = 2, ABOVE_NORMAL = 1, NORMAL = 0, BELOW_NORMAL = -1, LOWEST = -2, IDLE = -15 }; /// Constructor iThread( ThreadFunction func, void* arg = NULL ); /// Destructor virtual ~iThread(); /// Implicit return the handle for this object virtual inline operator HANDLE (); /// Get the priority Priority GetPriority() const; /// Set the priority void SetPriority( Priority priority ); /// Returns true if the thread signaled to stop. bool IsDone() const; /// Returns true if the thread are alive. FALSE if terminated bool IsAlive() const; /// Returns true if the thread started ok bool IsStartedOk() const; /// Suspend execution of thread bool Suspend(); /// Resumes execution of thread bool Resume(); /// Terminate execution of thread. Returns result uint32 Terminate(); /// Disable termination then destructed inline void DisableTermination(); /// End this thread with specified result void End( uint32 result = 0 ); /// Returns the id of current thread static uint32 GetCurrentId(); /// Returns the id of the process static uint32 GetProcessId(); /// Pass buffer to hold process name static void GetProcessName( iCharT* name ); /// Pass the PID of the process to test static bool IsProcessAlive( uint32 pid ); private: iWEvent m_Done; // Event to signal completion of thread bool m_Terminate; // True if thread termination requested ThreadFunction m_Function; // function to execute void* m_Data; bool m_Started; // thread started ok /// Start the thread static UINT __stdcall Start( void* threadInfo ); /// An exception wrapped start function that calls the user's thread func static INT __cdecl SafeStart( void* threadInfo ); }; /// @brief Single lock object contains only one sync object so it may be locked by one thread at a time. \ /// If another thread attemps to lock an object that has already been locked by another thread, that requesting thread will block until the owning thread unlocks the object. /// WARNING: Can't wait for critical sections ! class iSingleLock { public: /// Constructs the single lock object from synctonization object, that cannot be NULL. /// If initialLock is true the object is locked then it constructed. iSingleLock( iSyncObject* syncObject, bool initalLock = false ); /// Destruct this single lock. If it has a lock on a syncronization object it will be released ~iSingleLock(); /// Lock the sync object. Returns false if not successful bool Lock( uint32 timeout = INFINITE ); /// Unlocks the sync object. Retunrs false if not successful bool Unlock(); /// Unlocks the sync object for specified count which must be greather than zero. Returns false if not successful. bool Unlock( uint32 count ); /// Test the syncronization object for the locked state. inline bool IsLocked() const; private: iSyncObject* m_SyncObject; // Locking object bool m_Acquired; // true if already locked }; /// @brief Multi-lock object contains more the one sync object. /// When a threads requests a lock, the first available one is returned. If none are available, the task blocks - for the given timeout. Alternatively a thread can requests all locks at once. /// WARNING: Can't wait for critical sections ! class iMultiLock { public: /// Result type enumeration enum Result { FAILED = 0, TIMEOUT, OBJECT = 0x10000000, ABANDONED = 0x20000000 }; /// @brief Constructs a multi-lock from the specified syncronizaion objects that cannot be NULL. /// If initialLock is true the object is locked when this is constructed. /// NOTE: syncObjects must live for the lifetime of multilock. iMultiLock( iSyncObject** syncObjects, uint32 numObjects, bool initialLock = false ); /// Destruct this multilock. If it has a lock on a sync object it will be released. ~iMultiLock(); /// @brief Locks the syncronization object. /// Returns (FAILED) if lock failed. Returns (OBJECT) to (OBJECT+num-1) an index into the array of objects, indicating which object satisfied the wait. ( if more then one - smallest index returned ) Result Lock( uint32 timeout = INFINITE, bool all = false ); /// Unlocks the syncronization object. Always return true. bool Unlock(); /// Unlocks the syncronizaion object for specified count which must be greather than zero. Returns false if not successful bool Unlock( uint32 count ); /// Test the sync object at the specified index for the locked state. Returns true if it is locked. inline bool IsLocked( uint32 index ) const; private: HANDLE* m_Handle; // Internal handle bool* m_Acquired; // Array of flags to mark which s/o are locked uint32 m_NumObjects; iSyncObject** m_Objects; }; ///////////////////////////////////////////////////////////////////////// // Impl // SyncObject inline iSyncObject::operator HANDLE () { return m_Handle; } inline bool iSyncObject::Signal() { return Unlock(); } inline bool iSyncObject::Wait( uint32 timeout ) { return Lock( timeout ); } // Mutex inline iMutex::~iMutex() { } // Semaphore inline iSemaphore::~iSemaphore() { } // WEvent inline iWEvent::~iWEvent() { } // Thread inline iThread::operator HANDLE () { return m_Done; } inline void iThread::DisableTermination() { m_Terminate = false; } // SingleLock inline bool iSingleLock::IsLocked() const { return m_Acquired; } // MultiLock inline bool iMultiLock::IsLocked( uint32 index ) const { return m_Acquired[index]; } #endif //_IOLIB_HELIUM_THREADS_H_ /** @} */ // iolib_he
63f1a6502ed3d6ee3b0dacfe2f94d763748a845a
f7eb5e14c2e15e446009e813b274261d72a0f529
/platforms/android/aace/src/main/cpp/include/aace/phonecontrol/PhoneCallControllerBinder.h
c9dd74551ac717e1e01a71ead4c36043e29df3f6
[ "GPL-2.0-only", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
syl22-00/aac-sdk
e3630bbfc52c755aefead2dc9f5bfa35953ad547
79696da55b0bca09a4c68f361ef1f47efb8f717e
refs/heads/1.0
2020-03-26T22:10:47.610192
2018-08-20T15:47:50
2018-08-20T15:47:50
145,437,671
0
0
Apache-2.0
2018-08-20T15:42:44
2018-08-20T15:42:44
null
UTF-8
C++
false
false
1,688
h
/* * Copyright 2017-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ // aace/phoneCallController/PhoneCallController.h #ifndef AACE_PHONE_CALL_CONTROLLER_PHONE_CALL_CONTROLLER_BINDER_H #define AACE_PHONE_CALL_CONTROLLER_PHONE_CALL_CONTROLLER_BINDER_H #include "AACE/PhoneCallController/PhoneCallController.h" #include "aace/core/PlatformInterfaceBinder.h" class PhoneCallControllerBinder : public PlatformInterfaceBinder, public aace::phoneCallController::PhoneCallController { public: PhoneCallControllerBinder() = default; protected: void initialize( JNIEnv* env ) override; public: bool dial( const std::string& payload ) override; public: aace::phoneCallController::PhoneCallControllerEngineInterface::ConnectionState convertConnectionState( JNIEnv* env, jobject obj ); private: jobject convert( aace::phoneCallController::PhoneCallControllerEngineInterface::ConnectionState state ); private: jmethodID m_javaMethod_dial_payload = nullptr; // ErrorType ObjectRef m_enum_ConnectionState_CONNECTED; ObjectRef m_enum_ConnectionState_DISCONNECTED; }; #endif //AACE_PHONE_CALL_CONTROLLER_PHONE_CALL_CONTROLLER_BINDER_H
10f5c4696e9a5380ed730501954f1e338d5aee7b
9aabc1932a8fed3843aa914cacf88a2f33641a33
/Speck/SpeckEngine/MaterialShaderStructure.h
d6c9b01aa840c3ec11afe9efecb054ade1aeca8d
[ "MIT" ]
permissive
Bojanovski/Speck
1df8d9ab7eaa68ffd5178eaa8a3712149656c09c
41d64de63c54424e06b66f653e854cab8a1cc6f8
refs/heads/master
2021-01-23T02:15:17.090086
2020-01-12T01:24:47
2020-01-12T01:24:47
85,975,191
5
0
null
null
null
null
UTF-8
C++
false
false
1,273
h
#ifndef MATERIAL_SHADER_STRUCTURES_H #define MATERIAL_SHADER_STRUCTURES_H #include "SpeckEngineDefinitions.h" #include "MathHelper.h" namespace Speck { struct Material { Material() = default; virtual ~Material() = default; // Basic constants DirectX::XMFLOAT4 DiffuseAlbedo = { 1.0f, 1.0f, 1.0f, 1.0f }; DirectX::XMFLOAT3 FresnelR0 = { 0.01f, 0.01f, 0.01f }; float Roughness = 0.25f; // Index into constant buffer corresponding to this material. int MatCBIndex = -1; // Dirty flag indicating the material has changed and we need to update the constant buffer. // Because we have a material constant buffer for each FrameResource, we have to apply the // update to each FrameResource. Thus, when we modify a material we should set // NumFramesDirty = NUM_FRAME_RESOURCES so that each frame resource gets the update. int NumFramesDirty = NUM_FRAME_RESOURCES; }; // Material that uses diffuse and normal map. struct PBRMaterial : public Material { PBRMaterial() = default; virtual ~PBRMaterial() override = default; // SRV heap for textures. Microsoft::WRL::ComPtr<ID3D12DescriptorHeap> mSrvDescriptorHeap = nullptr; // Used in texture mapping. DirectX::XMFLOAT4X4 TexTransform = MathHelper::Identity4x4(); }; } #endif
[ "Bojan" ]
Bojan
ecbcf5fdbbebbbb72f835bb8e5741781d2f14571
054c59cd22145c7eea26429c39795c31843eb8c2
/comments.cpp
837f682aba4db99575832acb8f667d9f4f8f34d5
[ "MIT" ]
permissive
u1tbmo/cpp-basics
ef532295bf53744d06db478423036f6a9115fe89
d2d0d3f2c4c7de128f4359ad936a58ceb15fc5d7
refs/heads/main
2023-06-10T16:50:27.507560
2021-06-28T16:51:14
2021-06-28T16:51:14
380,520,644
0
0
MIT
2021-06-28T16:54:07
2021-06-26T14:24:02
C++
UTF-8
C++
false
false
484
cpp
//Comments by u1tbmo #include <iostream> using namespace std; int main(){ //This is a single line comment. cout << "This is obviously not a comment." << endl; cout << "This is also obviously not a comment." << endl; // This is also a single line comment. /* All lines between // with asterisks are considered comments */ //The following code exists but will never run as it is a comment. // cout << "This should not run." << endl; return 0; }
fe3b089cec8f69c57a590c39420afc4a4fc36f9e
ff5c60b14b382dd50e75816b0def2c3a1d979c3e
/Gems/DragonCrashGameManager/Code/Source/DragonCrashGameManagerSystemComponent.cpp
d3c5b7e421098765acdf8aef848099a70efbc907
[]
no_license
Dragoncrash/DragonCrash-Core-Release
4c54ace2516cbeb2308079565241b32e6d2ddeb6
eba70386adec12a51d8acf1a3a58a251c64b3c11
refs/heads/master
2021-06-12T02:12:37.181224
2017-02-10T05:42:24
2017-02-10T05:42:24
77,488,266
0
0
null
null
null
null
UTF-8
C++
false
false
2,294
cpp
#include "StdAfx.h" #include <AzCore/Serialization/SerializeContext.h> #include <AzCore/Serialization/EditContext.h> #include "DragonCrashGameManagerSystemComponent.h" namespace DragonCrashGameManager { void DragonCrashGameManagerSystemComponent::Reflect(AZ::ReflectContext* context) { if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context)) { serialize->Class<DragonCrashGameManagerSystemComponent, AZ::Component>() ->Version(0) ->SerializerForEmptyClass(); if (AZ::EditContext* ec = serialize->GetEditContext()) { ec->Class<DragonCrashGameManagerSystemComponent>("DragonCrashGameManager", "[Description of functionality provided by this System Component]") ->ClassElement(AZ::Edit::ClassElements::EditorData, "") // ->Attribute(AZ::Edit::Attributes::Category, "") Set a category ->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC("System")) ->Attribute(AZ::Edit::Attributes::AutoExpand, true) ; } } } void DragonCrashGameManagerSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided) { provided.push_back(AZ_CRC("DragonCrashGameManagerService")); } void DragonCrashGameManagerSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible) { incompatible.push_back(AZ_CRC("DragonCrashGameManagerService")); } void DragonCrashGameManagerSystemComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required) { (void)required; } void DragonCrashGameManagerSystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent) { (void)dependent; } void DragonCrashGameManagerSystemComponent::Init() { } void DragonCrashGameManagerSystemComponent::Activate() { DragonCrashGameManagerRequestBus::Handler::BusConnect(); } void DragonCrashGameManagerSystemComponent::Deactivate() { DragonCrashGameManagerRequestBus::Handler::BusDisconnect(); } }
da3f9ce1236d21ac21f6741b2623ce03c081dd8b
3bff7d994799234468e163ecfe6fd4ecd9176061
/networking_dwnld_file/src/RawHeaderView.hpp
3d60d8d07649637488159548ca3aae42f315720f
[ "Apache-2.0" ]
permissive
iasoule/Cascades-Samples
fd3efb99a3a94e88a3bca55534ab260067f1b3d2
7db43398b8af96238dabf7e254dc7c53ed226b25
refs/heads/master
2020-12-25T23:20:00.213170
2014-03-21T18:27:37
2014-03-21T18:27:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,209
hpp
/* * Copyright (c) 2011-2014 BlackBerry Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. * See the License for the specific language governing permissions * and limitations under the License. */ #ifndef RAWHEADERVIEW_HPP_ #define RAWHEADERVIEW_HPP_ #include <QObject> #include <QtNetwork> class RawHeaderView : public QObject { Q_OBJECT Q_PROPERTY(bool visible READ visible WRITE setVisible NOTIFY visibleChanged) public: RawHeaderView (); virtual ~RawHeaderView (){} void setVisible(bool visible); bool visible() const; public Q_SLOTS: void show(); signals: void visibleChanged(); private: bool m_dialogVisible; }; #endif /* RAWHEADERVIEW_HPP_ */
0e988fb39410ca2d2132f0a99018d9928c110e83
e615b29d95e8b2e61d40daed9579b1319662ab03
/examples/hello/hello_world_lib_bench.cpp
963e8008fe4aef266680451fd6cf2864eed81c46
[ "Unlicense" ]
permissive
juugcatm/bazel_environment
e532fd5d90b1398dde868a71dc122f4acf6e40a4
248cfb923ea83a270082883079af617e507cc760
refs/heads/master
2020-06-04T04:27:07.044993
2019-10-09T20:56:16
2019-10-09T20:56:16
191,872,689
5
0
null
null
null
null
UTF-8
C++
false
false
537
cpp
#include "benchmark/benchmark.h" #include "examples/hello/hello_world.pb.h" #include "examples/hello/hello_world_lib.h" static void BM_HelloPrint (benchmark::State& s_) { hello::proto::Hello bench_options; for (auto _ : s_) { hello::print(bench_options); } } BENCHMARK(BM_HelloPrint); static void BM_HelloPrintExtra (benchmark::State& s_) { hello::proto::Hello bench_options; bench_options.set_extra_message("extra message"); for (auto _ : s_) { hello::print(bench_options); } } BENCHMARK(BM_HelloPrintExtra);
9f267d58fb86259a9d90e653aea51e7fc31936de
f0bd42c8ae869dee511f6d41b1bc255cb32887d5
/Codeforces/_Gym/2016-2017 CT S03E04/E. The Bavarian Beer Party.cpp
d6990098638e37abda8de1ba512be0017317f039
[]
no_license
osamahatem/CompetitiveProgramming
3c68218a181d4637c09f31a7097c62f20977ffcd
a5b54ae8cab47b2720a64c68832a9c07668c5ffb
refs/heads/master
2021-06-10T10:21:13.879053
2020-07-07T14:59:44
2020-07-07T14:59:44
113,673,720
3
1
null
null
null
null
UTF-8
C++
false
false
754
cpp
/* * E. The Bavarian Beer Party.cpp * * Created on: Oct 11, 2016 * Author: Osama Hatem */ #include <bits/stdtr1c++.h> #include <ext/numeric> using namespace std; int arr[1000], dp[1005][1005]; int solve(int s, int e) { if (s >= e) return 0; int& ret = dp[s][e]; if (~ret) return ret; for (int i = s + 1; i <= e; i += 2) ret = max(ret, solve(s + 1, i - 1) + solve(i + 1, e) + (arr[s] == arr[i])); return ret; } int main() { #ifndef ONLINE_JUDGE freopen("in.in", "r", stdin); // freopen("out.out", "w", stdout); #endif int T; scanf("%d", &T); while (T--) { int n; scanf("%d", &n); for (int i = 0; i < n; i++) scanf("%d", &arr[i]); memset(dp, -1, sizeof dp); printf("%d\n", solve(0, n - 1)); } return 0; }
4b59af0cd59ceac330c96a5eec929f1f0552eeb9
977873dc4cffcf38940d639a4f69a76cf69d3150
/practise/202105/20210507.cpp
8cbbc586822268543e4d350fa2d9724f6b7e988b
[]
no_license
truly-ic/bofan
dfe1e297bfd31033dbf8d5bb7a96cbc937248fd9
fcbc1ed4b6ff191063cbbde5ec8e3cd08da14c87
refs/heads/master
2023-08-26T16:25:27.655802
2021-11-01T13:34:51
2021-11-01T13:34:51
423,458,091
0
0
null
null
null
null
UTF-8
C++
false
false
2,968
cpp
#include<iostream> using namespace std; void bigger(); void getMod(); void countNum(); void n2Times(); void bigCommonDivisor(); void getTop2of4(); void printTrigleStars(); void printRectangle(); void printBlankTrigle(); void gcd2(); int gcdR(int a, int b); int c; int main() { //call the bigger function //bigger(); //call the mod function //getMod(); //call add sequence number //countNum(); //call 2's n times laster digit //n2Times(); //call greatest common divisor //bigCommonDivisor(); //call top 2 //getTop2of4(); //print trigle //printTrigleStars(); //print blank rectangle //printRectangle(); //printBlankTrigle(); gcd2(); } void gcd2() { int a,b; c=0; cout<<"Please input 2 numbers:"<<endl; cin>>a>>b; cout<<"The Greatest Common Divisor is:"<<gcdR(a,b)<<endl; cout<<"Riverse Times is :"<<c<<endl; } //recursive function for GCD int gcdR(int a,int b) { c +=1; if(a%b==0) return b; else return gcdR(b%a,a); } void printBlankTrigle() { int n,i,j; cout<<"Please input a number for blank trigle lines:"<<endl; cin>>n; for(i=0;i<n;i++) { for(j=0;j<n/2-i/2;j++) cout<<" "; for(j=0;j<=i;j++) if(j==0 || j==i || i==n-1) cout<<"*"; else cout<<" "; cout<<endl; } } void printRectangle() { int a,b,i,j; cout<<"Please input 2 numbers for rectangle's width and height:"<<endl; cin>>a>>b; for(i=0;i<b;i++) { for(j=0;j<a;j++) { if(i==0 || i==b-1 || j==0 || j==a-1) cout<<"*"; else cout<<" "; } cout<<endl; } } void printTrigleStars() { int n,i,j; cout<<"Please input a number for lines:"<<endl; cin>>n; for(i=0;i<n;i++) { for(j=0;j<=i;j++) cout<<"*"; cout<<endl; } } void getTop2of4() { int a[4],t,i; cout<<"Please input 4 numbers seperated by blank for bigger:"<<endl; cin>>a[0]>>a[1]>>a[2]>>a[3]; for(i=0;i<2;i++) for(int j=1;j<4;j++) if(a[i]<a[j]) { t=a[i]; a[i] = a[j]; a[j] = t; } cout<<"Numbers:"; for(i=0;i<2;i++) cout<<a[i]<<" "; cout<<endl; } void bigger() { int a,b; cout<<"Please input 2 numbers seperated by blank for bigger:"<<endl; cin>>a>>b; if(a>b) cout<<"the number:"<<a<<" is bigger."<<endl; else cout<<"the number:"<<b<<" is bigger."<<endl; } void getMod() { int a,b; cout<<"Please input 2 numbers seperated by blank for mod:"<<endl; cin>>a>>b; cout<<a<<" mod "<<b<<" is "<<a%b<<endl; } void countNum() { int num,i,r; num = 1000; r = 0; for(i=1;i<=1000;i++) { r += i; } cout<<"1+2+3+...+"<<num<<"="<<r<<endl; } void n2Times() { int n,i,b; cout<<"Please input a number for times:"<<endl; cin>>n; b=1; for(i=1;i<=n;i++) b=b*2; b=b%10; cout<<"after 2's "<<b<<" times,the last number is: "<<b<<endl; } void bigCommonDivisor() { int a,b,i,max=0; cout<<"Please input 2 numbers seperated by blank for greatest common divisor:"<<endl; cin>>a>>b; for(i=1;i<=a;i++) if(a%i==0 && b%i==0) max=i; cout<<a<<" and "<<b<<"'s greatest common divisor is: "<<max<<endl; }
476b5d8fd061ce2e052a88a96189bab35bd3ad67
7997399e66ef439742e0c84e78fed527a944ecae
/include/brushmenuwidget.h
458d3cde4e43fe8fd05a2a7fbad1e53552f2a181
[]
no_license
dprandle/bbtoolkit
2ced1d529a1e13df5da85164cc5a435919a291bf
3c6ef72a5a4183b2ea82b48ea172e2fc1ae7fa91
refs/heads/master
2021-05-16T04:22:38.636799
2017-10-14T16:52:57
2017-10-14T16:52:57
39,462,243
0
0
null
null
null
null
UTF-8
C++
false
false
726
h
#ifndef BRUSHMENUWIDGET_H #define BRUSHMENUWIDGET_H // Inlcudes #include <ui_brushmenuwidget.h> #include <qwidget.h> class nsengine; class Toolkit; class QToolBar; class nsentity; class BrushMenuWidget : public QWidget { Q_OBJECT public: BrushMenuWidget(QWidget * parent = NULL); ~BrushMenuWidget(); nsentity * selectedItem(); void init(); void setupLW(); void setSelectedItem(nsentity * ent); public slots: void onDeleteBrush(); void onEditBrush(); void onDoubleClick(); void onNewBrush(); void onSelectionChanged(); signals: void brushChange(QListWidgetItem*); void brushDoubleClick(); private: QToolBar * mTB; Ui_BrushMenuWidget mUI; }; #endif
1ea582d1ea2890b53fa5e9b17a21b4a3bb1d4d94
7ad3607feeff61b51fb8a3c101691e1e99671138
/Breadth First Search/Big P and Party.cpp
890285f5a18d4583e96d259182a6a8adf19f14ed
[]
no_license
Md-Johaer-Plabon/Hackerearth-Solution
15c0662ef860798b5ce06272d07edc843c3cf75a
36743c23cea0b67ccf541dce276132453c9f0d9b
refs/heads/main
2023-02-21T10:22:59.722264
2021-01-18T08:10:51
2021-01-18T08:10:51
329,932,989
0
0
null
null
null
null
UTF-8
C++
false
false
479
cpp
#include <bits/stdc++.h> using namespace std; int main() { int n,m,x,y; cin>>n>>m; vector<int>v[n+5]; while(m--)cin>>x>>y, v[x].push_back(y), v[y].push_back(x); int dis[2005]={0},vis[2005]={0}; vis[0]=1; queue<int>q; q.push(0); while(!q.empty()){ int temp=q.front(); q.pop(); for(int i=0;i<v[temp].size();i++) if(!vis[v[temp][i]])q.push(v[temp][i]),dis[v[temp][i]]=dis[temp]+1,vis[v[temp][i]]=1; } for(int i=1;i<n;i++)cout<<dis[i]<<endl; return 0; }
7fa4f4d7a697b89360ed5344702d81e9a2a798ce
6dd87ed823edbef45a3f040e4ae2f1395c221f1d
/common/macro_define.hpp
439f7124cf1eabeda81f32cde0cdf4a54619d3f1
[ "MIT" ]
permissive
xiao00kang/moon
972656b4d8d965aa0285e75ee3784bf7e25e6cbc
f82898d531b7372b9a6ddf111dc8a181935fecdc
refs/heads/master
2021-04-04T07:10:14.009859
2020-03-14T06:02:38
2020-03-14T06:02:38
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,653
hpp
#pragma once #include "platform_define.hpp" #include <cinttypes> #include <string_view> #include <algorithm> #include <cstdint> #include <cassert> #include <string> #include <cstdarg> #include <iomanip> #include <fstream> #include <thread> #include <mutex> #include <shared_mutex> #include <atomic> #include <condition_variable> #include <functional> #include <vector> #include <map> #include <unordered_map> #include <unordered_set> #include <deque> #include <array> #include <forward_list> #include <queue> #include <memory> #include "exception.hpp" using namespace std::literals::string_literals; using namespace std::literals::string_view_literals; namespace moon { using string_view_t = std::string_view; using wstring_view_t = std::wstring_view; } #undef min #undef max #ifndef INLINE #define INLINE inline #endif #define BREAK_IF(x) if(x) break; #define SAFE_DELETE(x) if(nullptr != x) {delete x; x = nullptr;} #define SAFE_DELETE_ARRAY(x) if(nullptr != x) {delete []x; x = nullptr;} #define VA_ARGS_NUM(...) std::tuple_size<decltype(std::make_tuple(__VA_ARGS__))>::value #define DECLARE_SHARED_PTR(classname)\ class classname;\ using classname##_ptr_t = std::shared_ptr<classname>; #define DECLARE_UNIQUE_PTR(classname)\ class classname;\ using classname##_ptr_t = std::unique_ptr<classname>; #define DECLARE_WEAK_PTR(classname)\ class classname;\ using classname##_wptr_t = std::weak_ptr<classname>; #define thread_sleep(x) std::this_thread::sleep_for(std::chrono::milliseconds(x)); namespace moon { enum class state { unknown, init, ready, stopping, exited }; }
5f53abb8255d6e96c87078e30482800b30a97ad6
cc7d44e82053bedf3e73c15d31c789894f836aa4
/基数排序.cpp
a58afa0d06a86beaabcb351b9422ddacaa063729
[]
no_license
Simanzeng/Sort
311c90781e3c06f60cee76bbe76f4fb9157b07ea
ac5fd2ae27afeb7c32723c9a1bb54fd97909d76e
refs/heads/master
2021-01-10T15:42:16.485753
2016-03-13T07:25:21
2016-03-13T07:25:21
53,772,133
0
0
null
null
null
null
GB18030
C++
false
false
1,810
cpp
///基数排序 #include <iostream> #include<vector> using namespace std; int maxbit(vector<int> &vec) //辅助函数,求数据的最大位数 { int n=vec.size(); int d = 1; //保存最大的位数 int p =10; for(int i = 0;i < n; ++i) { while(vec[i]>= p) { p *= 10; ++d; } } return d; } void radixsort(vector<int> &vec) //基数排序 { int n=vec.size(); int d = maxbit(vec); int * tmp = new int[n]; int * count = new int[10]; //计数器 int i,j,k; int radix = 1; for(i = 1; i<= d;i++) //进行d次排序 { for(j = 0;j < 10;j++) count[j] = 0; //每次分配前清空计数器 for(j = 0;j < n; j++) { k = (vec[j]/radix)%10; //统计每个桶中的记录数 count[k]++; } for(j = 1;j < 10;j++) count[j] = count[j-1] + count[j]; //将tmp中的位置依次分配给每个桶 for(j = n-1;j >= 0;j--) //将所有桶中记录依次收集到tmp中 { k = (vec[j]/radix)%10; tmp[count[k]-1] = vec[j]; count[k]--; } for(j = 0;j < n;j++) //将临时数组的内容复制到data中 vec[j] = tmp[j]; radix = radix*10; } delete [] tmp; delete [] count; } int main() { vector<int> vec; int n; cout<<"请输入一组整数(按热键Ctrl+Z结束):"; while(cin>>n) vec.push_back(n); radixsort(vec); cout<<"这组整数从小到大的排序为:"; for(vector<int>::iterator iter=vec.begin();iter!=vec.end();++iter) //输出vec中的值 { cout<<*iter<<" "; } cout<<endl; return 0; }
5158d22b9ffbc56902110b0419b1883ef3ff5e03
7c24e0c9c781a39c4abb3da1ec8026474d5adcc0
/DrawHere/Source/DrawHere/PaintingGameMode_2.cpp
9857812c7f322060f7424c244587408afdc5ad07
[]
no_license
hyunjaesung/drawhere-unreal4.21
addef1b862a2f86965f5db6ebc28791e093c44cf
d514e6c79dc00b4c817ab95447644eb0bc05ad77
refs/heads/master
2021-09-26T20:27:00.905487
2018-11-02T06:18:15
2018-11-02T06:18:15
154,311,249
3
0
null
null
null
null
UTF-8
C++
false
false
1,366
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "PaintingGameMode_2.h" #include "Saving/PainterSaveGame.h" #include "Engine/World.h" #include "Kismet/StereoLayerFunctionLibrary.h" #include "Kismet/GameplayStatics.h" void APaintingGameMode_2::InitGame(const FString & MapName, const FString & Option, FString & ErrorMessage)// must start at beginpaly { Super::InitGame(MapName, Option, ErrorMessage); SlotName = UGameplayStatics::ParseOption(Option, "SlotName"); UE_LOG(LogTemp, Warning, TEXT("SlotName : %s"), *SlotName); } void APaintingGameMode_2::BeginPlay() { Super::BeginPlay(); Load(); UStereoLayerFunctionLibrary::HideSplashScreen(); // if we had a splashscreen it gives low frame rate } void APaintingGameMode_2::Save() // save for this slot { UPainterSaveGame * Painting = UPainterSaveGame::Load(SlotName); if (Painting) { Painting->SerializeFromWorld(GetWorld()); Painting->Save(); } } void APaintingGameMode_2::Load()//from VRPawn { UPainterSaveGame * Painting = UPainterSaveGame::Load(SlotName); if (Painting) { Painting->DeserializeToWorld(GetWorld()); } else { UE_LOG(LogTemp, Warning, TEXT("Game Slot Not Found : %s"), *SlotName); } } void APaintingGameMode_2::SaveAndQuit() { Save(); UGameplayStatics::OpenLevel(GetWorld(), TEXT("MainMenu")); // return }
e83a70757c6f450b157056496e845ba0dc2d1b7d
ceed8ee18ab314b40b3e5b170dceb9adedc39b1e
/android/external/pdfium/xfa/src/fxfa/src/app/xfa_ffimage.h
98bc63e667091e3552e6f5552cebcb348f0ecfc2
[ "BSD-3-Clause" ]
permissive
BPI-SINOVOIP/BPI-H3-New-Android7
c9906db06010ed6b86df53afb6e25f506ad3917c
111cb59a0770d080de7b30eb8b6398a545497080
refs/heads/master
2023-02-28T20:15:21.191551
2018-10-08T06:51:44
2018-10-08T06:51:44
132,708,249
1
1
null
null
null
null
UTF-8
C++
false
false
778
h
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #ifndef _XFA_DRAW_IMAGE_IMP_H #define _XFA_DRAW_IMAGE_IMP_H class CXFA_FFImage : public CXFA_FFDraw { public: CXFA_FFImage(CXFA_FFPageView* pPageView, CXFA_WidgetAcc* pDataAcc); virtual ~CXFA_FFImage(); virtual void RenderWidget(CFX_Graphics* pGS, CFX_Matrix* pMatrix = NULL, FX_DWORD dwStatus = 0, int32_t iRotate = 0); virtual FX_BOOL IsLoaded(); virtual FX_BOOL LoadWidget(); virtual void UnloadWidget(); }; #endif
[ "Justin" ]
Justin
7e515783dc0be9dabca4e17423de7ad3c3b68dfa
53f3f38eac3ed44f23f8f58d34aa8bd89555eaef
/src/msvc/include/AutoGemmKernelSources/cgemm_Col_CC_B1_ML032_NL032_KX01_src.cpp
38d15d512c63bb45204ff53e9149eae4587e51fb
[ "Apache-2.0" ]
permissive
gajgeospatial/clBLAS-1.10
16039ddfad67b6c26a00767f33911e7c6fe374dc
2f5f1347e814e23b93262cd6fa92ec1d228963ac
refs/heads/master
2022-06-27T09:08:34.399452
2020-05-12T16:50:46
2020-05-12T16:50:46
263,172,549
0
0
null
null
null
null
UTF-8
C++
false
false
7,552
cpp
/******************************************************************************* * This file was auto-generated using the AutoGemm.py python script. * DO NOT modify this file! Instead, make changes to scripts in * clBLAS/src/library/blas/AutoGemm/ then re-generate files * (otherwise local changes will be lost after re-generation). ******************************************************************************/ #ifndef KERNEL_CGEMM_COL_CC_B1_ML032_NL032_KX01_SRC_H #define KERNEL_CGEMM_COL_CC_B1_ML032_NL032_KX01_SRC_H const unsigned int cgemm_Col_CC_B1_ML032_NL032_KX01_workGroupNumRows = 16; const unsigned int cgemm_Col_CC_B1_ML032_NL032_KX01_workGroupNumCols = 16; const unsigned int cgemm_Col_CC_B1_ML032_NL032_KX01_microTileNumRows = 2; const unsigned int cgemm_Col_CC_B1_ML032_NL032_KX01_microTileNumCols = 2; const unsigned int cgemm_Col_CC_B1_ML032_NL032_KX01_unroll = 1; const char * const cgemm_Col_CC_B1_ML032_NL032_KX01_src ="\n" "/* cgemm_Col_CC_B1_ML032_NL032_KX01 */\n" "\n" "/* kernel parameters */\n" "#define WG_NUM_ROWS 16\n" "#define WG_NUM_COLS 16\n" "#define MICRO_TILE_NUM_ROWS 2\n" "#define MICRO_TILE_NUM_COLS 2\n" "#define MACRO_TILE_NUM_ROWS 32\n" "#define MACRO_TILE_NUM_COLS 32\n" "#define NUM_UNROLL_ITER 1\n" "\n" "#define LOCAL_ROW_PAD 0\n" "#define LOCAL_COL_PAD 0\n" "\n" "/* global memory indices */\n" "#define GET_GLOBAL_INDEX_A(ROW,COL) ((ROW)*lda+(COL))\n" "#define GET_GLOBAL_INDEX_B(ROW,COL) ((ROW)*ldb+(COL))\n" "#define GET_GLOBAL_INDEX_C(ROW,COL) ((COL)*ldc+(ROW))\n" "\n" "/* local memory indices */\n" "#define GET_LOCAL_INDEX_A(ROW,COL) ((ROW) + (COL)*((MACRO_TILE_NUM_ROWS)+(LOCAL_COL_PAD)) )\n" "#define GET_LOCAL_INDEX_B(ROW,COL) ((COL) + (ROW)*((MACRO_TILE_NUM_COLS)+(LOCAL_ROW_PAD)) )\n" "\n" "/* data types */\n" "#define DATA_TYPE_STR float2\n" "#define TYPE_MAD(MULA,MULB,DST) \\\n" " DST.s0 = mad( MULA.s0, MULB.s0, DST.s0 ); \\\n" " DST.s0 = mad( MULA.s1, -MULB.s1, DST.s0 ); \\\n" " DST.s1 = mad( MULA.s0, -MULB.s1, DST.s1 ); \\\n" " DST.s1 = mad( -MULA.s1, MULB.s0, DST.s1 );\n" "#define TYPE_MAD_WRITE( DST, ALPHA, REG, BETA ) \\\n" " /* (1) */ \\\n" " type_mad_tmp = REG.s0; \\\n" " REG.s0 *= ALPHA.s0; \\\n" " REG.s0 = mad( -ALPHA.s1, REG.s1, REG.s0 ); \\\n" " REG.s1 *= ALPHA.s0; \\\n" " REG.s1 = mad( ALPHA.s1, type_mad_tmp, REG.s1 ); \\\n" " /* (2) */ \\\n" " REG.s0 = mad( BETA.s0, DST.s0, REG.s0 ); \\\n" " REG.s0 = mad( -BETA.s1, DST.s1, REG.s0 ); \\\n" " REG.s1 = mad( BETA.s1, DST.s0, REG.s1 ); \\\n" " REG.s1 = mad( BETA.s0, DST.s1, REG.s1 ); \\\n" " /* (3) */ \\\n" " DST = REG;\n" "\n" "/* 2x2 micro-tile */\n" "#define MICRO_TILE \\\n" " rA[0] = localA[offA + 0*WG_NUM_ROWS]; \\\n" " rA[1] = localA[offA + 1*WG_NUM_ROWS]; \\\n" " rB[0] = localB[offB + 0*WG_NUM_COLS]; \\\n" " rB[1] = localB[offB + 1*WG_NUM_COLS]; \\\n" " offA += (MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD); \\\n" " offB += (MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD); \\\n" " TYPE_MAD(rA[0],rB[0],rC[0][0]); \\\n" " TYPE_MAD(rA[0],rB[1],rC[0][1]); \\\n" " TYPE_MAD(rA[1],rB[0],rC[1][0]); \\\n" " TYPE_MAD(rA[1],rB[1],rC[1][1]); \\\n" " mem_fence(CLK_LOCAL_MEM_FENCE);\n" "\n" "__attribute__((reqd_work_group_size(WG_NUM_COLS,WG_NUM_ROWS,1)))\n" "__kernel void cgemm_Col_CC_B1_ML032_NL032_KX01(\n" " __global DATA_TYPE_STR const * restrict A,\n" " __global DATA_TYPE_STR const * restrict B,\n" " __global DATA_TYPE_STR * C,\n" " DATA_TYPE_STR const alpha,\n" " DATA_TYPE_STR const beta,\n" " uint const M,\n" " uint const N,\n" " uint const K,\n" " uint const lda,\n" " uint const ldb,\n" " uint const ldc,\n" " uint const offsetA,\n" " uint const offsetB,\n" " uint const offsetC\n" ") {\n" "\n" " /* apply offsets */\n" " A += offsetA;\n" " B += offsetB;\n" " C += offsetC;\n" "\n" " /* allocate registers */\n" " DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = { {0} };\n" " DATA_TYPE_STR rA[MICRO_TILE_NUM_ROWS];\n" " DATA_TYPE_STR rB[MICRO_TILE_NUM_COLS];\n" "\n" " /* allocate local memory */\n" " __local DATA_TYPE_STR localA[NUM_UNROLL_ITER*(MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD)];\n" " __local DATA_TYPE_STR localB[NUM_UNROLL_ITER*(MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD)];\n" "\n" " /* work item indices */\n" " uint groupRow = M / 32; // last row\n" " uint groupCol = N / 32; // last column\n" " uint localRow = get_local_id(0);\n" " uint localCol = get_local_id(1);\n" " uint localSerial = localRow + localCol*WG_NUM_ROWS;\n" "\n" " /* global indices being loaded */\n" "#define globalARow(LID) (groupRow*MACRO_TILE_NUM_ROWS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/NUM_UNROLL_ITER)\n" "#define globalACol(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%NUM_UNROLL_ITER)\n" "#define globalBRow(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/MACRO_TILE_NUM_COLS)\n" "#define globalBCol(LID) (groupCol*MACRO_TILE_NUM_COLS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%MACRO_TILE_NUM_COLS)\n" "\n" " /* loop over k */\n" " uint block_k = K / NUM_UNROLL_ITER;\n" " do {\n" "\n" " /* local indices being written */\n" "#define localARow (localSerial / NUM_UNROLL_ITER)\n" "#define localACol (localSerial % NUM_UNROLL_ITER)\n" "#define localAStride (WG_NUM_ROWS*WG_NUM_COLS/NUM_UNROLL_ITER)\n" "#define localBRow ( localSerial / MACRO_TILE_NUM_COLS )\n" "#define localBCol ( localSerial % MACRO_TILE_NUM_COLS )\n" "#define localBStride (WG_NUM_ROWS*WG_NUM_COLS)\n" " __local DATA_TYPE_STR *lA = localA + GET_LOCAL_INDEX_A(localARow, localACol);\n" " __local DATA_TYPE_STR *lB = localB + GET_LOCAL_INDEX_B(localBRow, localBCol);\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" "\n" " /* load global -> local */\n" " if ( localSerial + 0*WG_NUM_ROWS*WG_NUM_COLS < (WG_NUM_ROWS*MICRO_TILE_NUM_ROWS*NUM_UNROLL_ITER) ) {\n" " lA[ 0*localAStride ] = ( globalARow(0) >= M) ? (float2)(0.f, 0.f) : A[ GET_GLOBAL_INDEX_A( globalARow(0), globalACol(0) ) ];\n" " }\n" " if ( localSerial + 0*WG_NUM_ROWS*WG_NUM_COLS < (WG_NUM_COLS*MICRO_TILE_NUM_COLS*NUM_UNROLL_ITER) ) {\n" " lB[ 0*localBStride ] = (globalBCol(0) >= N) ? (float2)(0.f, 0.f) : B[ GET_GLOBAL_INDEX_B( globalBRow(0), globalBCol(0) ) ];\n" " }\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" " uint offA = localRow;\n" " uint offB = localCol;\n" "\n" " /* do mads */\n" " MICRO_TILE\n" "\n" " /* shift to next k block */\n" " A += NUM_UNROLL_ITER;\n" " B += ldb*NUM_UNROLL_ITER;\n" "\n" " } while (--block_k > 0);\n" "\n" "\n" " /* which global Cij index */\n" " uint globalCRow = groupRow * MACRO_TILE_NUM_ROWS + localRow;\n" " uint globalCCol = groupCol * MACRO_TILE_NUM_COLS + localCol;\n" "\n" " /* write global Cij */\n" " float type_mad_tmp;\n" " if (globalCRow+0*WG_NUM_ROWS < M) if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[0][0], beta )}\n" " if (globalCRow+0*WG_NUM_ROWS < M) if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[0][1], beta )}\n" " if (globalCRow+1*WG_NUM_ROWS < M) if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[1][0], beta )}\n" " if (globalCRow+1*WG_NUM_ROWS < M) if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[1][1], beta )}\n" "\n" "}\n" ""; #else #endif
3c31c385523d77ca9ba2341daffad589d75ec41d
e20087104206b48e86cdf135145cd8d2f3c665e3
/gv_framework/world/gv_2d_helper.hpp
b72b9a40619248c2bc060dc3d01697ccf60b0e7d
[ "MIT" ]
permissive
dragonsn/gv_game_engine
5929ecdadf0403ac68b74130ecf9f72b62ddd624
92595a63148d15a989859c93223a55168a1861b5
refs/heads/master
2022-11-19T01:48:46.783547
2022-11-08T10:24:45
2022-11-08T10:24:45
159,043,827
2
1
null
null
null
null
UTF-8
C++
false
false
1,466
hpp
namespace gv { void gv_2d_helper::to_2d(const gv_vector3& v, gv_vector2i& v_2d, gv_int& height) { v_2d.set(gv_math_fixed::to_fixed(v.x), gv_math_fixed::to_fixed(v.z)); height = gv_math_fixed::to_fixed(v.y); }; void gv_2d_helper::to_2d(const gv_vector3& v, gv_vector2i& v_2d) { v_2d.set(gv_math_fixed::to_fixed(v.x), gv_math_fixed::to_fixed(v.z)); }; gv_vector2i gv_2d_helper::to_2d(const gv_vector3& v) { gv_vector2i v_2d; to_2d(v, v_2d); return v_2d; }; gv_vector2i gv_2d_helper::to_2d(const gv_vector3i& v) { return gv_vector2i(v.x, v.z); }; gv_recti gv_2d_helper::to_2d(const gv_boxi& box) { return gv_recti(to_2d(box.min_p), to_2d(box.max_p)); }; void gv_2d_helper::to_3d(const gv_vector2i& v_2d, gv_int height, gv_vector3& v) { v.set(gv_math_fixed::to_float(v_2d.x), gv_math_fixed::to_float(height), gv_math_fixed::to_float(v_2d.y)); }; void gv_2d_helper::to_3d(const gv_vector2i& v_2d, gv_vector3& v) { v.set(gv_math_fixed::to_float(v_2d.x), 0, gv_math_fixed::to_float(v_2d.y)); }; void gv_2d_helper::to_2d(const gv_box& box, gv_recti& rect) { gv_int h = 0; gv_vector2i s; to_2d(box.get_size(), s, h); to_2d(box.min_p, rect.min_p, h); to_2d(box.max_p, rect.max_p, h); // make sure size is 2 times rect.min_p = rect.min_p / 2 * 2; rect.max_p = rect.max_p / 2 * 2; }; void gv_2d_helper::to_3d(const gv_recti& rect, gv_box& box) { gv_int h = 0; to_3d(rect.min_p, h, box.min_p); to_3d(rect.max_p, h, box.max_p); }; }
9e70e440d93e49a024371b6d3e25832f2a34b65e
7b51037085fd60e6b8af86f4e39b85ed91ce4ab8
/0304/boj_2217.cpp
742eb83d27415c10852b40887b8c2a8111557a58
[]
no_license
algorithm2020/Algorithm_PJH
5db895de757a6cf9658700c29c6d69433b3de9e6
28c4ba546ac03f8055fd61d3da2e9518642dfa66
refs/heads/master
2020-12-28T06:34:17.464063
2020-04-06T13:14:56
2020-04-06T13:14:56
238,212,481
0
0
null
null
null
null
UTF-8
C++
false
false
526
cpp
#include <iostream> #include <vector> #include <algorithm> int n; std::vector<int> rope; std::vector<int> result; bool comp(int a, int b) { if (a > b) return true; else return false; } int main() { std::cin >> n; for (int i = 0; i < n; i++) { int temp; std::cin >> temp; rope.push_back(temp); } std::sort(rope.begin(), rope.end()); for (int i = n , j = 0; i > 0; i--, j++) { result.push_back(i * rope[j]); } std::sort(result.begin(), result.end(), comp); std::cout << result.front(); return 0; }
3b7c273adba220679883ddd80465d89134618140
c5c222595d74a843afd273be2e3ffd93c093ada9
/107AEA002_HW3/107AEA002_HW3/main.cpp
af6d94bfc61c3810cbf8664724f4ee2d719a8439
[]
no_license
SanoTaco/CPP_homework
6b03c52dd7d1dfb740d7c99627c1d400ea1aaf18
1fb6914f7d51aba33ed034f0f1a82e41a48b2dfa
refs/heads/master
2021-01-25T23:15:37.455967
2020-03-02T09:07:39
2020-03-02T09:07:39
243,222,684
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
821
cpp
/* 107AEA002_HW3 107AEA002 Zhang Yulu ¶þ¼¼ê‘Éú Define a class for a type called Circle. An object of type Circle is used to display the area, diameter, and circumference of a circle based on the radius of that object. Include a mutator function that sets the radius to a value given as an argument. Include member function to calculate the area, diameter, and circumference of the circle. Also include a member function that returns the radius of the circle. Embed your class definition in a test program. */ #include <iostream> #include "Circle.h" using namespace std; int main() { Circle circle;//declaration of the objecy circle.SetRadius();//set radius circle.GetInformation();//function contains the calculation of diameter area and so on system("pause"); return 0; }
c28d95c13f2c3ae95e71f3a4cd941de48dc316d9
ef3f4f3bfde1605cec20ca9639cf7018bca19e0c
/Win32_process_KodisoftTask/event_logg.h
5f27e606f3fac657b9d27cf4efdd5c72f28ac2b4
[]
no_license
zhsfei/Process-monitor
57a2ecf973670dd58a7f3860a635ae6df5822503
1efe1964b7fa6e32d9b7bb619c80bb05b5bf58a4
refs/heads/master
2021-05-29T15:44:46.683036
2015-07-12T22:27:58
2015-07-12T22:27:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
816
h
/*********************************************************************** "event_logg.h" contains class that log all events to files. First file to write call/exit functions , second - to write events. Copyright (c) Tribel Artem. *************************************************************************/ #pragma once #include <fstream> #include "stdafx.h" class EventLogger { private: std::ofstream eventFile; // to write events only std::ofstream dbgFile; // to write call/exit functions std::string funcName; int lineNumb; static std::string indent; //to create indent in dbgFile static int flag; public: EventLogger() {}; EventLogger( std::string funcName,int lineNumber ); ~EventLogger(); void SetDateTime(); }; #define LOG_TRACE EventLogger EventLogger( __FUNCTION__, __LINE__ );
b9f71c5df4b63526b108ed024e4ef113a18731d7
be0282afa8dd436619c71d6118c9db455eaf1a29
/Intermediate/Build/Win64/Design3D/Inc/Engine/VirtualTextureSpace.generated.h
416d5ba893d4b88221a04a9f770733d9d82db70b
[]
no_license
Quant2017/Design3D
0f915580b222af40ab911021cceef5c26375d7f9
94a22386be4aa37aa0f546354cc62958820a4bf6
refs/heads/master
2022-04-23T10:44:12.398772
2020-04-22T01:02:39
2020-04-22T01:02:39
262,966,755
1
0
null
2020-05-11T07:12:37
2020-05-11T07:12:36
null
UTF-8
C++
false
false
9,466
h
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. /*=========================================================================== Generated code exported from UnrealHeaderTool. DO NOT modify this manually! Edit the corresponding .h files instead! ===========================================================================*/ #include "UObject/ObjectMacros.h" #include "UObject/ScriptMacros.h" PRAGMA_DISABLE_DEPRECATION_WARNINGS #ifdef ENGINE_VirtualTextureSpace_generated_h #error "VirtualTextureSpace.generated.h already included, missing '#pragma once' in VirtualTextureSpace.h" #endif #define ENGINE_VirtualTextureSpace_generated_h #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_20_GENERATED_BODY \ friend struct Z_Construct_UScriptStruct_FVirtualTextureLayer_Statics; \ ENGINE_API static class UScriptStruct* StaticStruct(); template<> ENGINE_API UScriptStruct* StaticStruct<struct FVirtualTextureLayer>(); #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_RPC_WRAPPERS #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_RPC_WRAPPERS_NO_PURE_DECLS #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_ARCHIVESERIALIZER \ DECLARE_FSTRUCTUREDARCHIVE_SERIALIZER(UVirtualTextureSpace, NO_API) #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_INCLASS_NO_PURE_DECLS \ private: \ static void StaticRegisterNativesUVirtualTextureSpace(); \ friend struct Z_Construct_UClass_UVirtualTextureSpace_Statics; \ public: \ DECLARE_CLASS(UVirtualTextureSpace, UObject, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/Engine"), NO_API) \ DECLARE_SERIALIZER(UVirtualTextureSpace) \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_ARCHIVESERIALIZER #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_INCLASS \ private: \ static void StaticRegisterNativesUVirtualTextureSpace(); \ friend struct Z_Construct_UClass_UVirtualTextureSpace_Statics; \ public: \ DECLARE_CLASS(UVirtualTextureSpace, UObject, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/Engine"), NO_API) \ DECLARE_SERIALIZER(UVirtualTextureSpace) \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_ARCHIVESERIALIZER #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_STANDARD_CONSTRUCTORS \ /** Standard constructor, called after all reflected properties have been initialized */ \ NO_API UVirtualTextureSpace(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); \ DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UVirtualTextureSpace) \ DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UVirtualTextureSpace); \ DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UVirtualTextureSpace); \ private: \ /** Private move- and copy-constructors, should never be used */ \ NO_API UVirtualTextureSpace(UVirtualTextureSpace&&); \ NO_API UVirtualTextureSpace(const UVirtualTextureSpace&); \ public: #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_ENHANCED_CONSTRUCTORS \ /** Standard constructor, called after all reflected properties have been initialized */ \ NO_API UVirtualTextureSpace(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()) : Super(ObjectInitializer) { }; \ private: \ /** Private move- and copy-constructors, should never be used */ \ NO_API UVirtualTextureSpace(UVirtualTextureSpace&&); \ NO_API UVirtualTextureSpace(const UVirtualTextureSpace&); \ public: \ DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, UVirtualTextureSpace); \ DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(UVirtualTextureSpace); \ DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(UVirtualTextureSpace) #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_PRIVATE_PROPERTY_OFFSET #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_52_PROLOG #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_GENERATED_BODY_LEGACY \ PRAGMA_DISABLE_DEPRECATION_WARNINGS \ public: \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_PRIVATE_PROPERTY_OFFSET \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_RPC_WRAPPERS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_INCLASS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_STANDARD_CONSTRUCTORS \ public: \ PRAGMA_ENABLE_DEPRECATION_WARNINGS #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_GENERATED_BODY \ PRAGMA_DISABLE_DEPRECATION_WARNINGS \ public: \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_PRIVATE_PROPERTY_OFFSET \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_RPC_WRAPPERS_NO_PURE_DECLS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_INCLASS_NO_PURE_DECLS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_55_ENHANCED_CONSTRUCTORS \ static_assert(false, "Unknown access specifier for GENERATED_BODY() macro in class VirtualTextureSpace."); \ PRAGMA_ENABLE_DEPRECATION_WARNINGS template<> ENGINE_API UClass* StaticClass<class UVirtualTextureSpace>(); #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_RPC_WRAPPERS #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_RPC_WRAPPERS_NO_PURE_DECLS #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_INCLASS_NO_PURE_DECLS \ private: \ static void StaticRegisterNativesULightMapVirtualTextureSpace(); \ friend struct Z_Construct_UClass_ULightMapVirtualTextureSpace_Statics; \ public: \ DECLARE_CLASS(ULightMapVirtualTextureSpace, UVirtualTextureSpace, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/Engine"), NO_API) \ DECLARE_SERIALIZER(ULightMapVirtualTextureSpace) #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_INCLASS \ private: \ static void StaticRegisterNativesULightMapVirtualTextureSpace(); \ friend struct Z_Construct_UClass_ULightMapVirtualTextureSpace_Statics; \ public: \ DECLARE_CLASS(ULightMapVirtualTextureSpace, UVirtualTextureSpace, COMPILED_IN_FLAGS(0), CASTCLASS_None, TEXT("/Script/Engine"), NO_API) \ DECLARE_SERIALIZER(ULightMapVirtualTextureSpace) #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_STANDARD_CONSTRUCTORS \ /** Standard constructor, called after all reflected properties have been initialized */ \ NO_API ULightMapVirtualTextureSpace(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()); \ DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(ULightMapVirtualTextureSpace) \ DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, ULightMapVirtualTextureSpace); \ DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(ULightMapVirtualTextureSpace); \ private: \ /** Private move- and copy-constructors, should never be used */ \ NO_API ULightMapVirtualTextureSpace(ULightMapVirtualTextureSpace&&); \ NO_API ULightMapVirtualTextureSpace(const ULightMapVirtualTextureSpace&); \ public: #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_ENHANCED_CONSTRUCTORS \ /** Standard constructor, called after all reflected properties have been initialized */ \ NO_API ULightMapVirtualTextureSpace(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get()) : Super(ObjectInitializer) { }; \ private: \ /** Private move- and copy-constructors, should never be used */ \ NO_API ULightMapVirtualTextureSpace(ULightMapVirtualTextureSpace&&); \ NO_API ULightMapVirtualTextureSpace(const ULightMapVirtualTextureSpace&); \ public: \ DECLARE_VTABLE_PTR_HELPER_CTOR(NO_API, ULightMapVirtualTextureSpace); \ DEFINE_VTABLE_PTR_HELPER_CTOR_CALLER(ULightMapVirtualTextureSpace); \ DEFINE_DEFAULT_OBJECT_INITIALIZER_CONSTRUCTOR_CALL(ULightMapVirtualTextureSpace) #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_PRIVATE_PROPERTY_OFFSET #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_116_PROLOG #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_GENERATED_BODY_LEGACY \ PRAGMA_DISABLE_DEPRECATION_WARNINGS \ public: \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_PRIVATE_PROPERTY_OFFSET \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_RPC_WRAPPERS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_INCLASS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_STANDARD_CONSTRUCTORS \ public: \ PRAGMA_ENABLE_DEPRECATION_WARNINGS #define Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_GENERATED_BODY \ PRAGMA_DISABLE_DEPRECATION_WARNINGS \ public: \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_PRIVATE_PROPERTY_OFFSET \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_RPC_WRAPPERS_NO_PURE_DECLS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_INCLASS_NO_PURE_DECLS \ Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h_119_ENHANCED_CONSTRUCTORS \ static_assert(false, "Unknown access specifier for GENERATED_BODY() macro in class LightMapVirtualTextureSpace."); \ PRAGMA_ENABLE_DEPRECATION_WARNINGS template<> ENGINE_API UClass* StaticClass<class ULightMapVirtualTextureSpace>(); #undef CURRENT_FILE_ID #define CURRENT_FILE_ID Engine_Source_Runtime_Engine_Classes_VT_VirtualTextureSpace_h #define FOREACH_ENUM_PAGETABLEFORMAT(op) \ op(PTF_16) \ op(PTF_32) PRAGMA_ENABLE_DEPRECATION_WARNINGS
88c5521b66818bfd57be4b381f632169bff8135d
7ed7aa5e28bd3cdea44e809bbaf8a527a61259fb
/UVa/11635(1) - Hotel booking.cpp
01212eb67a42c1c427097b0df778449305aec926
[]
no_license
NaiveRed/Problem-solving
bdbf3d355ee0cb2390cc560d8d35f5e86fc2f2c3
acb47328736a845a60f0f1babcb42f9b78dfdd10
refs/heads/master
2022-06-16T03:50:18.823384
2022-06-12T10:02:23
2022-06-12T10:02:23
38,728,377
4
7
null
null
null
null
UTF-8
C++
false
false
3,115
cpp
#include <cstdio> #include <cstring> #include <vector> #include <queue> #include <algorithm> #define N 10001 #define E 600 using namespace std; struct node { int v, w; node(int a, int b) : v(a), w(b) {} }; vector<node> adj_list[N]; //[i]: i -> v, time: w int n; //number of cities int n_to_hotel[N]; //map, index to city id which has hotel. (1: 1, 2: n) int hotel[105][105] = {}; //the new adj_matrix of hotels(include 1 and n) int d[N]; //time from source to each city bool inQ[N]; //int parent[N]; 不處理反而比較快 void SPFA(int source) { //init memset(inQ, false, sizeof inQ); fill(d, d + n + 1, 1e9); queue<node> Q; Q.emplace(source, 0); d[source] = 0; while (!Q.empty()) { int now = Q.front().v; Q.pop(); inQ[now] = false; for (node next : adj_list[now]) { int tmp = d[now] + next.w; if (tmp < d[next.v]) { d[next.v] = tmp; if (!inQ[next.v]) { Q.emplace(next.v, tmp); inQ[next.v] = true; } } } } } inline int input() { int n = 0; char c; while ((c = getchar()) != '\n' && c != ' ') n = n * 10 + c - '0'; return n; } int main() { //freopen("test.out", "w", stdout); int h, m; while (scanf("%d", &n) && n) { scanf("%d ", &h); int tmp, idx = 2; //take 1 and n as a hotel for the convenience of the new adjacency matrix n_to_hotel[1] = 1; n_to_hotel[2] = n; for (int i = 0; i < h; ++i) { //scanf("%d", &tmp); tmp = input(); n_to_hotel[++idx] = tmp; } scanf("%d ", &m); int u, v, w; for (int i = 0; i < m; ++i) { //scanf("%d%d%d", &u, &v, &w); u = input(); v = input(); w = input(); adj_list[u].emplace_back(v, w); adj_list[v].emplace_back(u, w); } //build the new adj_matrix of hotels(include 1 and n) for (int i = 1; i <= idx; ++i) for (int j = 1; j <= idx; ++j) hotel[i][j] = 1e9; for (int i = 1; i <= idx; ++i) { hotel[i][i] = 0; SPFA(n_to_hotel[i]); for (int j = 1; j <= idx; ++j) if (i != j && d[n_to_hotel[j]] <= E) hotel[i][j] = 1; } //Floyd-Warshall for (int k = 1; k <= idx; ++k) for (int i = 1; i <= idx; ++i) for (int j = 1; j <= idx; ++j) if (hotel[i][k] + hotel[k][j] < hotel[i][j]) hotel[i][j] = hotel[i][k] + hotel[k][j]; //Minus one, since he does not need to spend the night in the destination (n). printf("%d\n", hotel[1][2] != 1e9 ? (hotel[1][2] - 1) : -1); //init memset(hotel, 0, sizeof hotel); for (int i = 1; i <= n; ++i) adj_list[i].clear(); } return 0; }
b029822cffbca305b10ea79f7a51ead25b8fcae6
c70d2f720e1e7645ad27898a8c4f633f04038ce8
/imager/pylon/private/DeviceSpecificInstantCamera.h
2324bd0cf465c17fb9eae48a82a05ebd8a4043d3
[]
no_license
BMIunic/Sensorimotor_BMI
874400bb18310adcb9ddd9cc13fb4c034639c189
4bb9b0e5fbeeca6cd59c0ec38a37bdea12a565d3
refs/heads/master
2021-04-30T02:07:20.062826
2018-03-09T08:54:38
2018-03-09T08:54:38
121,494,796
0
0
null
null
null
null
UTF-8
C++
false
false
20,727
h
//----------------------------------------------------------------------------- // Basler pylon SDK // Copyright (c) 2010-2015 Basler AG // http://www.baslerweb.com // Author: Andreas Gau //----------------------------------------------------------------------------- /*! \file \brief Template for device specific instant camera class. */ #ifndef INCLUDED_DEVICESPECIFICINSTANTCAMERA_H_4510266 #define INCLUDED_DEVICESPECIFICINSTANTCAMERA_H_4510266 #include <pylon/stdinclude.h> #include <pylon/InstantCamera.h> #include <pylon/private/DeviceSpecificConfigurationEventHandlerTie.h> #include <pylon/private/DeviceSpecificImageEventHandlerTie.h> #include <pylon/private/DeviceSpecificCameraEventHandlerTie.h> //! Macro for defining a custom instant camera class. #define PYLON_DEFINE_INSTANT_CAMERA(ClassName, BaseClass) \ class ClassName : public BaseClass \ { \ public: \ /*! \copybrief CInstantCamera::CInstantCamera() \copydetails CInstantCamera::CInstantCamera() */ \ ClassName() {} \ /*! \copybrief CInstantCamera::CInstantCamera( IPylonDevice* , ECleanup ) \copydetails CInstantCamera::CInstantCamera( IPylonDevice* , ECleanup ) */ \ ClassName(IPylonDevice* pDevice, ECleanup cleanupProcedure = Cleanup_Delete) \ : BaseClass(pDevice, cleanupProcedure) {} \ /*! \copybrief CInstantCamera::~CInstantCamera \copydetails CInstantCamera::~CInstantCamera */ \ ~ClassName() \ { \ Attach( NULL); \ InternalShutdownEventHandlers(); \ } \ protected: \ /*Create device specific grab result data. This is subject to change without notice*/ \ virtual CGrabResultData* CreateDeviceSpecificGrabResultData() \ { \ return new GrabResultData_t(); \ } \ }; namespace Pylon { /*! \class CDeviceSpecificInstantCameraT \brief Implementation Detail: Header only implementation class for creating device specific Instant Camera classes. */ template <typename CameraTraitsT> class CDeviceSpecificInstantCameraT : public CInstantCamera, public CameraTraitsT::CameraParams_t, public CameraTraitsT { public: /*! \copybrief Pylon::CInstantCamera::CInstantCamera() \copydetails Pylon::CInstantCamera::CInstantCamera() */ CDeviceSpecificInstantCameraT(); /*! \copybrief Pylon::CInstantCamera::CInstantCamera( IPylonDevice* , ECleanup ) \copydetails Pylon::CInstantCamera::CInstantCamera( IPylonDevice* , ECleanup ) */ CDeviceSpecificInstantCameraT( IPylonDevice* pDevice, ECleanup cleanupProcedure = Cleanup_Delete); /* \copybrief Pylon::CInstantCamera::Attach \copydetails Pylon::CInstantCamera::Attach */ virtual void Attach( IPylonDevice* pDevice, ECleanup cleanupProcedure = Cleanup_Delete); /* \copybrief Pylon::CInstantCamera::DestroyDevice \copydetails Pylon::CInstantCamera::DestroyDevice */ virtual void DestroyDevice(); /* \copybrief Pylon::CInstantCamera::DetachDevice \copydetails Pylon::CInstantCamera::DetachDevice */ virtual IPylonDevice* DetachDevice(); /* \copybrief Pylon::CInstantCamera::Open \copydetails Pylon::CInstantCamera::Open */ virtual void Open(); /* \copybrief Pylon::CInstantCamera::Close \copydetails Pylon::CInstantCamera::Close */ virtual void Close(); /*! \copybrief Pylon::CInstantCamera::RetrieveResult \copydetails Pylon::CInstantCamera::RetrieveResult */ virtual bool RetrieveResult( unsigned int timeoutMs, typename CameraTraitsT::GrabResultPtr_t& grabResult, ETimeoutHandling timeoutHandling = TimeoutHandling_ThrowException); // Also available using CInstantCamera::RetrieveResult; /*! \copybrief Pylon::CInstantCamera::GrabOne \copydetails Pylon::CInstantCamera::GrabOne */ virtual bool GrabOne( unsigned int timeoutMs, typename CameraTraitsT::GrabResultPtr_t& grabResult, ETimeoutHandling timeoutHandling = TimeoutHandling_ThrowException); // Also available using CInstantCamera::GrabOne; /*! \copybrief Pylon::CInstantCamera::RegisterConfiguration( CConfigurationEventHandler*, ERegistrationMode, ECleanup) \copydetails Pylon::CInstantCamera::RegisterConfiguration( CConfigurationEventHandler*, ERegistrationMode, ECleanup) */ virtual void RegisterConfiguration( typename CameraTraitsT::ConfigurationEventHandler_t* pConfigurator, ERegistrationMode mode, ECleanup cleanupProcedure); // Also available using CInstantCamera::RegisterConfiguration; /*! \copybrief Pylon::CInstantCamera::DeregisterConfiguration( CConfigurationEventHandler*) \copydetails Pylon::CInstantCamera::DeregisterConfiguration( CConfigurationEventHandler*) */ virtual bool DeregisterConfiguration( typename CameraTraitsT::ConfigurationEventHandler_t* configurator); // Also available using CInstantCamera::DeregisterConfiguration; /*! \copybrief Pylon::CInstantCamera::RegisterImageEventHandler( CImageEventHandler*, ERegistrationMode, ECleanup) \copydetails Pylon::CInstantCamera::RegisterImageEventHandler( CImageEventHandler*, ERegistrationMode, ECleanup) */ virtual void RegisterImageEventHandler( typename CameraTraitsT::ImageEventHandler_t* pImageEventHandler, ERegistrationMode mode, ECleanup cleanupProcedure); // Also available using CInstantCamera::RegisterImageEventHandler; /*! \copybrief Pylon::CInstantCamera::DeregisterImageEventHandler( CImageEventHandler*) \copydetails Pylon::CInstantCamera::DeregisterImageEventHandler( CImageEventHandler*) */ virtual bool DeregisterImageEventHandler( typename CameraTraitsT::ImageEventHandler_t* imageEventHandler); // Also available using CInstantCamera::DeregisterImageEventHandler; /*! \copybrief Pylon::CInstantCamera::RegisterCameraEventHandler( CCameraEventHandler*, const String_t&, intptr_t, ERegistrationMode, ECleanup, ECameraEventAvailability) \copydetails Pylon::CInstantCamera::RegisterCameraEventHandler( CCameraEventHandler*, const String_t&, intptr_t, ERegistrationMode, ECleanup, ECameraEventAvailability) */ virtual void RegisterCameraEventHandler( typename CameraTraitsT::CameraEventHandler_t* pCameraEventHandler, const String_t& nodeName, intptr_t userProvidedId, ERegistrationMode mode, ECleanup cleanupProcedure, ECameraEventAvailability availability = CameraEventAvailability_Mandatory); // Also available using CInstantCamera::RegisterCameraEventHandler; /*! \copybrief Pylon::CInstantCamera::DeregisterCameraEventHandler( CCameraEventHandler*, const String_t&) \copydetails Pylon::CInstantCamera::DeregisterCameraEventHandler( CCameraEventHandler*, const String_t&) */ virtual bool DeregisterCameraEventHandler( typename CameraTraitsT::CameraEventHandler_t* cameraEventHandler, const String_t& nodeName); // Also available using CInstantCamera::DeregisterCameraEventHandler; /*! \copybrief Pylon::CInstantCamera::GetDeviceInfo \copydetails Pylon::CInstantCamera::GetDeviceInfo */ virtual const typename CameraTraitsT::DeviceInfo_t& GetDeviceInfo() const; /*! \brief Provides access to the transport layer parameters of the attached %Pylon Device. \return Reference to the transport layer parameters. \pre A %Pylon Device is attached. \error The Instant Camera object is still valid after error. \threading This method is synchronized using the lock provided by GetLock(). */ virtual typename CameraTraitsT::TlParams_t& GetTLParams(); /*! \brief Provides access to the stream grabber parameters of the attached %Pylon Device. \return Reference to the stream grabber parameters. \pre <ul> <li> A %Pylon Device is attached. <li> The %Pylon Device is open. </ul> \error The Instant Camera object is still valid after error. \threading This method is synchronized using the lock provided by GetLock(). */ virtual typename CameraTraitsT::StreamGrabberParams_t& GetStreamGrabberParams(); /*! \brief Provides access to the event grabber parameters of the attached %Pylon Device. \return Reference to the event grabber parameters. \pre <ul> <li> A %Pylon Device is attached. <li> The %Pylon Device is open. </ul> \error The Instant Camera object is still valid after error. \threading This method is synchronized using the lock provided by GetLock(). */ virtual typename CameraTraitsT::EventGrabberParams_t& GetEventGrabberParams(); // Types used by camera-------------------------------------------------- // Overload CInstantCamera type definitions typedef typename CameraTraitsT::InstantCamera_t InstantCamera_t; typedef typename CameraTraitsT::IPylonDevice_t IPylonDevice_t; typedef typename CameraTraitsT::DeviceInfo_t DeviceInfo_t; typedef typename CameraTraitsT::ConfigurationEventHandler_t ConfigurationEventHandler_t; typedef typename CameraTraitsT::ImageEventHandler_t ImageEventHandler_t; typedef typename CameraTraitsT::CameraEventHandler_t CameraEventHandler_t; typedef typename CameraTraitsT::GrabResultData_t GrabResultData_t; typedef typename CameraTraitsT::GrabResultPtr_t GrabResultPtr_t; protected: typename CameraTraitsT::TlParams_t m_tlParams; typename CameraTraitsT::StreamGrabberParams_t m_streamGrabberParams; typename CameraTraitsT::EventGrabberParams_t m_eventGrabberParams; }; // Implementation ---------------------------------------------------------- template <typename CameraTraitsT> CDeviceSpecificInstantCameraT<CameraTraitsT>::CDeviceSpecificInstantCameraT() { } template <typename CameraTraitsT> CDeviceSpecificInstantCameraT<CameraTraitsT>::CDeviceSpecificInstantCameraT( IPylonDevice* pDevice, ECleanup cleanupProcedure) { this->Attach( pDevice, cleanupProcedure); } template <typename CameraTraitsT> void CDeviceSpecificInstantCameraT<CameraTraitsT>::Attach( IPylonDevice* pDevice, ECleanup cleanupProcedure) { // Check whether device type matches camera type. if ( pDevice ) { if ( dynamic_cast<typename CameraTraitsT::IPylonDevice_t*>(pDevice) == NULL || pDevice->GetDeviceInfo().GetDeviceClass() != this->DeviceClass() ) { throw LOGICAL_ERROR_EXCEPTION("The attached pylon device type cannot be used with this type of camera class."); } } AutoLock lock( CInstantCamera::GetLock()); // Attach the device. CInstantCamera::Attach( pDevice, cleanupProcedure); // Update camera parameters. if ( CInstantCamera::IsPylonDeviceAttached()) { // Set camera parameters. CameraTraitsT::CameraParams_t::_Initialize( pDevice->GetNodeMap()); // Set TL parameters. m_tlParams.Attach( &CInstantCamera::GetTLNodeMap(), true); } else { // Reset camera parameters. CameraTraitsT::CameraParams_t::_Initialize( &CInstantCamera::GetEmptyNodeMap()); // Reset TL parameters. m_tlParams.Attach( &CInstantCamera::GetEmptyNodeMap(), true); } } template <typename CameraTraitsT> void CDeviceSpecificInstantCameraT<CameraTraitsT>::DestroyDevice() { AutoLock lock( CInstantCamera::GetLock()); // If a device is attached if ( CInstantCamera::IsPylonDeviceAttached()) { // Reset camera parameters. CameraTraitsT::CameraParams_t::_Initialize( &CInstantCamera::GetEmptyNodeMap()); // Reset TL parameters. m_tlParams.Attach( &CInstantCamera::GetEmptyNodeMap(), true); // Perform destroy operation. CInstantCamera::DestroyDevice(); } } template <typename CameraTraitsT> IPylonDevice* CDeviceSpecificInstantCameraT<CameraTraitsT>::DetachDevice() { AutoLock lock( CInstantCamera::GetLock()); IPylonDevice* pDevice = NULL; // If a device is attached if ( CInstantCamera::IsPylonDeviceAttached()) { // Reset camera parameters. CameraTraitsT::CameraParams_t::_Initialize( &CInstantCamera::GetEmptyNodeMap()); // Reset TL parameters. m_tlParams.Attach( &CInstantCamera::GetEmptyNodeMap(), true); // Perform detach operation. pDevice = CInstantCamera::DetachDevice(); } return pDevice; } template <typename CameraTraitsT> void CDeviceSpecificInstantCameraT<CameraTraitsT>::Open() { AutoLock lock( CInstantCamera::GetLock()); // Perform open operation. CInstantCamera::Open(); // Set stream grabber parameters. m_streamGrabberParams.Attach( &CInstantCamera::GetStreamGrabberNodeMap(), true); // Set event grabber parameters. m_eventGrabberParams.Attach( &CInstantCamera::GetEventGrabberNodeMap(), true); } template <typename CameraTraitsT> void CDeviceSpecificInstantCameraT<CameraTraitsT>::Close() { AutoLock lock( CInstantCamera::GetLock()); // Reset stream grabber parameters. m_streamGrabberParams.Attach( &CInstantCamera::GetEmptyNodeMap(), true); // Reset event grabber parameters. m_eventGrabberParams.Attach( &CInstantCamera::GetEmptyNodeMap(), true); // Perform close operation. CInstantCamera::Close(); } template <typename CameraTraitsT> bool CDeviceSpecificInstantCameraT<CameraTraitsT>::RetrieveResult( unsigned int timeoutMs, typename CameraTraitsT::GrabResultPtr_t& grabResult, ETimeoutHandling timeoutHandling) { //Release the grab result grabResult.Release(); // Use basic grab result. CGrabResultPtr grabResultLocal; // Call basic RetrieveResult. CInstantCamera::RetrieveResult( timeoutMs, grabResultLocal, timeoutHandling); // Convert. grabResult = grabResultLocal; // Returns true if grabResultLocal is valid and the conversion to the device specific grab result type has been successful. return grabResult.IsValid(); } template <typename CameraTraitsT> bool CDeviceSpecificInstantCameraT<CameraTraitsT>::GrabOne( unsigned int timeoutMs, typename CameraTraitsT::GrabResultPtr_t& grabResult, ETimeoutHandling timeoutHandling) { //Release the grab result grabResult.Release(); // Use basic grab result. CGrabResultPtr grabResultLocal; // Call basic GrabOne. CInstantCamera::GrabOne( timeoutMs, grabResultLocal, timeoutHandling); // Convert. grabResult = grabResultLocal; // Returns true if grabResultLocal is valid and the conversion to the device specific grab result type has been successful. return grabResult.IsValid(); } template <typename CameraTraitsT> void CDeviceSpecificInstantCameraT<CameraTraitsT>::RegisterConfiguration( typename CameraTraitsT::ConfigurationEventHandler_t* pConfigurator, ERegistrationMode mode, ECleanup cleanupProcedure) { typedef CDeviceSpecificConfigurationEventHandlerTie< typename CameraTraitsT::InstantCamera_t, typename CameraTraitsT::ConfigurationEventHandler_t> TieT; InternalRegisterConfiguration( pConfigurator ? new TieT(pConfigurator, cleanupProcedure == Cleanup_Delete) : NULL, mode, Cleanup_Delete, // demand deletion of TieT pConfigurator ? &pConfigurator->DebugGetEventHandlerRegistrationCount() : NULL); } template <typename CameraTraitsT> bool CDeviceSpecificInstantCameraT<CameraTraitsT>::DeregisterConfiguration( typename CameraTraitsT::ConfigurationEventHandler_t* pConfigurator) { return InternalDeregisterConfiguration( pConfigurator ? &pConfigurator->DebugGetEventHandlerRegistrationCount() : NULL); } template <typename CameraTraitsT> void CDeviceSpecificInstantCameraT<CameraTraitsT>::RegisterImageEventHandler( typename CameraTraitsT::ImageEventHandler_t* pImageEventHandler, ERegistrationMode mode, ECleanup cleanupProcedure) { typedef CDeviceSpecificImageEventHandlerTie< typename CameraTraitsT::InstantCamera_t, typename CameraTraitsT::ImageEventHandler_t> TieT; InternalRegisterImageEventHandler( pImageEventHandler ? new TieT(pImageEventHandler, cleanupProcedure == Cleanup_Delete) : NULL, mode, Cleanup_Delete, // demand deletion of TieT pImageEventHandler ? &pImageEventHandler->DebugGetEventHandlerRegistrationCount() : NULL); } template <typename CameraTraitsT> bool CDeviceSpecificInstantCameraT<CameraTraitsT>::DeregisterImageEventHandler( typename CameraTraitsT::ImageEventHandler_t* pImageEventHandler) { return InternalDeregisterImageEventHandler( pImageEventHandler ? &pImageEventHandler->DebugGetEventHandlerRegistrationCount() : NULL); } template <typename CameraTraitsT> void CDeviceSpecificInstantCameraT<CameraTraitsT>::RegisterCameraEventHandler( typename CameraTraitsT::CameraEventHandler_t* pCameraEventHandler, const String_t& nodeName, intptr_t userProvidedId, ERegistrationMode mode, ECleanup cleanupProcedure, ECameraEventAvailability availability) { typedef CDeviceSpecificCameraEventHandlerTie< typename CameraTraitsT::InstantCamera_t, typename CameraTraitsT::CameraEventHandler_t> TieT; InternalRegisterCameraEventHandler( pCameraEventHandler ? new TieT(pCameraEventHandler, cleanupProcedure == Cleanup_Delete) : NULL, nodeName, userProvidedId, mode, Cleanup_Delete, // demand deletion of TieT availability, pCameraEventHandler ? &pCameraEventHandler->DebugGetEventHandlerRegistrationCount() : NULL); } template <typename CameraTraitsT> bool CDeviceSpecificInstantCameraT<CameraTraitsT>::DeregisterCameraEventHandler( typename CameraTraitsT::CameraEventHandler_t* pCameraEventHandler, const String_t& nodeName) { return InternalDeregisterCameraEventHandler( pCameraEventHandler ? &pCameraEventHandler->DebugGetEventHandlerRegistrationCount() : NULL, nodeName); } template <typename CameraTraitsT> const typename CameraTraitsT::DeviceInfo_t& CDeviceSpecificInstantCameraT<CameraTraitsT>::GetDeviceInfo() const { return static_cast<const typename CameraTraitsT::DeviceInfo_t&>( CInstantCamera::GetDeviceInfo()); } template <typename CameraTraitsT> typename CameraTraitsT::TlParams_t& CDeviceSpecificInstantCameraT<CameraTraitsT>::GetTLParams() { AutoLock lock( CInstantCamera::GetLock()); // Enforce preconditions. CInstantCamera::GetTLNodeMap(); return m_tlParams; } template <typename CameraTraitsT> typename CameraTraitsT::StreamGrabberParams_t& CDeviceSpecificInstantCameraT<CameraTraitsT>::GetStreamGrabberParams() { AutoLock lock( CInstantCamera::GetLock()); // Enforce preconditions. CInstantCamera::GetStreamGrabberNodeMap(); return m_streamGrabberParams; } template <typename CameraTraitsT> typename CameraTraitsT::EventGrabberParams_t& CDeviceSpecificInstantCameraT<CameraTraitsT>::GetEventGrabberParams() { AutoLock lock( CInstantCamera::GetLock()); // Enforce preconditions. CInstantCamera::GetEventGrabberNodeMap(); return m_eventGrabberParams; } } // namespace Pylon #endif /* INCLUDED_DEVICESPECIFICINSTANTCAMERA_H_4510266 */
bda80feeb8e066824e0408af5741f33a86bef760
c5784387ccf8154a3526c7499d98cb5e3e30b079
/code/themes/sorting_and_searching/search/ternary_search/ternary_search.cpp
c71f4e071160a37f48820bb3bca11fce899f505a
[]
no_license
ArtDu/Algorithms
a858f915338da7c3bb1ef707e39622fe73426b04
18a39e323d483d9cd1322b4b7465212c01fda43a
refs/heads/master
2023-03-04T14:25:42.214472
2022-04-14T18:28:15
2022-04-14T18:28:15
197,545,456
3
3
null
2023-02-27T10:52:36
2019-07-18T08:27:49
C++
UTF-8
C++
false
false
2,264
cpp
// x.pdf -- problem 10 #include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; const ll MAXX = 1e15; const ll MOD = 1e9 + 7; const ld L = -1e8 - 5; const ld R = 1e8 + 5; const ld EPS = 1e-12; #define P pair #define F first #define S second #define vec vector #define pb push_back ll n; ld glob_k = MAXX, glob_b = MAXX, glob_ans = MAXX; vec<ll> xx, yy; ld f(ld k, ld b){ ld s = 0; for (int i = 0; i < n; ++i) { s += abs(xx[i] - (k * yy[i] + b)); } return s; } ld ternary_search_for_k(ld b, ld l, ld r) { ld eps = EPS; //set the error limit here while (r - l > eps) { ld m1 = l + (r - l) / 3; ld m2 = r - (r - l) / 3; ld f1 = f(m1, b); //evaluates the function at m1 ld f2 = f(m2, b); //evaluates the function at m2 if (f1 > f2){ l = m1; if(f2 < glob_ans){ glob_ans = f2; glob_k = m2; glob_b = b; } } else { r = m2; if(f1 < glob_ans){ glob_ans = f1; glob_k = m1; glob_b = b; } } } return f(l, b); } ld ternary_search_for_b(ld l, ld r) { ld eps = EPS; //set the error limit here while (r - l > eps) { ld m1 = l + (r - l) / 3; ld m2 = r - (r - l) / 3; ld f1 = ternary_search_for_k(m1, L, R); //evaluates the function at m1 ld f2 = ternary_search_for_k(m2, L, R); //evaluates the function at m2 if (f1 > f2) l = m1; else r = m2; } return ternary_search_for_k(l, L, R); //return the maximum of f(x) in [l, r] } int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); // freopen("input.txt", "r", stdin); // freopen("output.txt", "w", stdout); cin >> n; xx.resize(n); yy.resize(n); for (int i = 0; i < n; ++i) { cin >> xx[i]; } for (int i = 0; i < n; ++i) { cin >> yy[i]; } ternary_search_for_b(L, R); cout << setprecision(12) << fixed << glob_ans << " " << glob_k << " " << glob_b << "\n"; return 0; }
5c73a9c52aedb004b9282b01aeab85a789881578
2e1737bea645aacb1efa835ea8d682392a2711e4
/iOSSocketClient/boost/date_time/gregorian/greg_day_of_year.hpp
561a2c3177e6de6c0be58e2c7a218977ce3f5bf8
[]
no_license
w747351274/ChatServer
3acf579bbebf6471327d599bf263afe2b5cd678c
b7dec568c9dfc60b5bb1446efbc3ded6ad2f1ba6
refs/heads/master
2020-03-31T17:50:57.408048
2019-10-25T01:09:17
2019-10-25T01:09:17
152,436,301
0
0
null
null
null
null
UTF-8
C++
false
false
1,189
hpp
#ifndef GREG_DAY_OF_YEAR_HPP___ #define GREG_DAY_OF_YEAR_HPP___ /* Copyright (c) 2002,2003 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Author: Jeff Garland * $Date$ */ #include <boost/date_time/constrained_value.hpp> #include <boost/date_time/compiler_config.hpp> #include <stdexcept> #include <string> namespace wjl_boost {} namespace boost = wjl_boost; namespace wjl_boost { namespace gregorian { //! Exception type for day of year (1..366) struct BOOST_SYMBOL_VISIBLE bad_day_of_year : public std::out_of_range { bad_day_of_year() : std::out_of_range(std::string("Day of year value is out of range 1..366")) {} }; //! A day of the year range (1..366) typedef CV::simple_exception_policy<unsigned short,1,366,bad_day_of_year> greg_day_of_year_policies; //! Define a range representation type for the day of the year 1..366 typedef CV::constrained_value<greg_day_of_year_policies> greg_day_of_year_rep; } } //namespace gregorian #endif
1b0b8efea2f412d5358f142c4d85eb36c39deff7
e30d8e1c98a40273392efbe9a9eee6daf02df107
/码库/CF436E Cardboard Box.cpp
c39b853f4e299681c768c805280849444aa0a606
[]
no_license
zzctommy/public-source-code
c11099de0e1bac21a9db26ab6d83d8e15ffdf460
bf2cf1ea607f097952ccd059fb8fbbcce7b08466
refs/heads/master
2023-03-21T06:24:19.206752
2021-03-05T01:18:35
2021-03-05T01:18:35
277,446,660
1
0
null
null
null
null
UTF-8
C++
false
false
1,328
cpp
#include <bits/stdc++.h> using namespace std; inline int read() { int x = 0, f = 1; char c = getchar(); while (!isdigit(c)) { if (c == '-') f = 0; c = getchar();} while (isdigit(c)) x = x * 10 + c - '0', c = getchar(); return f ? x : -x; } #define fi first #define se second #define N 600005 #define inf 2000000009 int n, a[N], b[N], ans[N], w; long long sum; struct node { int v, id; node(){v = id = -1;} node(int v_, int i_){v = v_, id = i_;} inline bool operator < (const node&t)const{return v > t.v;} }; priority_queue<node>pq[2]; bool vis[N]; signed main() { n = read(), w = read(); for (int i = 1; i <= n; ++ i) { a[i] = read(), a[i + n] = read(); pq[0].push(node(a[i], i)), pq[1].push(node(a[i + n], i)); a[i + n] -= a[i]; } for (int i = 1; i <= w; ++ i) { while (!pq[0].empty() && vis[pq[0].top().id]) pq[0].pop(); while (!pq[1].empty() && vis[pq[1].top().id]) pq[1].pop(); int t = pq[0].top().id; pq[0].pop(); while (!pq[0].empty() && vis[pq[0].top().id]) pq[0].pop(); if (i < w && !pq[1].empty() && a[t] + pq[0].top().v >= pq[1].top().v) pq[0].push(node(a[t], t)), t = pq[1].top().id, pq[1].pop(); if (t <= n) pq[0].push(node(a[t + n], t + n)); sum += a[t], vis[t] = 1, ++ans[(t - 1) % n + 1]; } printf("%lld\n", sum); for (int i = 1; i <= n; ++ i) printf("%d", ans[i]); puts(""); }
b3e814eb4d30d98d5f6dc133849b6b17f8ca0a57
d2249116413e870d8bf6cd133ae135bc52021208
/MFC CodeGuru/misc/DlgScrSaver/drawwnd.cpp
16ef5313edf9b85cf8a98b0202fb24a8aeff0615
[]
no_license
Unknow-man/mfc-4
ecbdd79cc1836767ab4b4ca72734bc4fe9f5a0b5
b58abf9eb4c6d90ef01b9f1203b174471293dfba
refs/heads/master
2023-02-17T18:22:09.276673
2021-01-20T07:46:14
2021-01-20T07:46:14
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,227
cpp
// drawwnd.cpp : implementation file // #include "stdafx.h" //#include <fstream.h> #include <io.h> #include <time.h> #include "collect.h" #include "DlgScrSaver.h" #include "drawwnd.h" #include "CImage.h" #include "Meta.h" #ifdef _DEBUG #undef THIS_FILE static char BASED_CODE THIS_FILE[] = __FILE__; #endif LPCTSTR CDrawWnd::m_lpszClassName = NULL; // LoadBMP - Loads a BMP file and creates a logical palette for it. // Returns - TRUE for success // sBMPFile - Full path of the BMP file // phDIB - Pointer to a HGLOBAL variable to hold the loaded bitmap // Memory is allocated by this function but should be // released by the caller. // pPal - Will hold the logical palette BOOL LoadBMP( LPCTSTR sBMPFile, HGLOBAL* phDIB, CPalette* pPal ) { CFile file; if( !file.Open( sBMPFile, CFile::modeRead) ) return FALSE; BITMAPFILEHEADER bmfHeader; long nFileLen; nFileLen = file.GetLength(); // Read file header if (file.Read((LPSTR)&bmfHeader, sizeof(bmfHeader)) != sizeof(bmfHeader)) return FALSE; // File type should be 'BM' if (bmfHeader.bfType != ((WORD) ('M' << 8) | 'B')) return FALSE; HGLOBAL hDIB = ::GlobalAlloc(GMEM_FIXED, nFileLen); if (hDIB == 0) return FALSE; // Read the remainder of the bitmap file. if (file.ReadHuge((LPSTR)hDIB, nFileLen - sizeof(BITMAPFILEHEADER)) != nFileLen - sizeof(BITMAPFILEHEADER) ) { ::GlobalFree(hDIB); return FALSE; } BITMAPINFO &bmInfo = *(LPBITMAPINFO)hDIB ; int nColors = bmInfo.bmiHeader.biClrUsed ? bmInfo.bmiHeader.biClrUsed : 1 << bmInfo.bmiHeader.biBitCount; // Create the palette if( nColors <= 256 ) { UINT nSize = sizeof(LOGPALETTE) + (sizeof(PALETTEENTRY) * nColors); LOGPALETTE *pLP = (LOGPALETTE *) new BYTE[nSize]; pLP->palVersion = 0x300; pLP->palNumEntries = nColors; for( int i=0; i < nColors; i++) { pLP->palPalEntry[i].peRed = bmInfo.bmiColors[i].rgbRed; pLP->palPalEntry[i].peGreen = bmInfo.bmiColors[i].rgbGreen; pLP->palPalEntry[i].peBlue = bmInfo.bmiColors[i].rgbBlue; pLP->palPalEntry[i].peFlags = 0; } pPal->CreatePalette( pLP ); delete[] pLP; } *phDIB = hDIB; return TRUE; } void DrawDIB(CRect& rect, CDC* pDC, HGLOBAL hDIB, CPalette* pPal ) { LPVOID lpDIBBits; // Pointer to DIB bits BOOL bSuccess=FALSE; // Success/fail flag BITMAPINFO &bmInfo = *(LPBITMAPINFO)hDIB ; int nColors = bmInfo.bmiHeader.biClrUsed ? bmInfo.bmiHeader.biClrUsed : 1 << bmInfo.bmiHeader.biBitCount; if( bmInfo.bmiHeader.biBitCount > 8 ) lpDIBBits = (LPVOID)((LPDWORD)(bmInfo.bmiColors + bmInfo.bmiHeader.biClrUsed) + ((bmInfo.bmiHeader.biCompression == BI_BITFIELDS) ? 3 : 0)); else lpDIBBits = (LPVOID)(bmInfo.bmiColors + nColors); if( pPal && (pDC->GetDeviceCaps(RASTERCAPS) & RC_PALETTE) ) { pDC->SelectPalette(pPal, FALSE); pDC->RealizePalette(); } int DestX = (rect.Width()- bmInfo.bmiHeader.biWidth) / 2; int DestY = (rect.Height()- bmInfo.bmiHeader.biHeight) / 2; int nDestWidth = bmInfo.bmiHeader.biWidth; int nDestHeight = bmInfo.bmiHeader.biHeight; while (nDestWidth > rect.Width() || nDestHeight > rect.Height()) { nDestWidth /= 2; nDestHeight /= 2; } //int DestX = (::GetSystemMetrics(SM_CXSCREEN)- bmInfo.bmiHeader.biWidth) / 2; //int DestY = (::GetSystemMetrics(SM_CYSCREEN)- bmInfo.bmiHeader.biHeight) / 2; if (DestX < 0) DestX = 0; if (DestY < 0) DestY = 0; /* ::StretchDIBits(pDC->m_hDC, // hDC DestX, // DestX DestY, // DestY nDestWidth, // nDestWidth nDestHeight, // nDestHeight 0, // SrcX 0, // SrcY bmInfo.bmiHeader.biWidth, // SrcWidth bmInfo.bmiHeader.biHeight, // ScrHeight lpDIBBits, // lpBits (LPBITMAPINFO)hDIB, // lpBitsInfo DIB_RGB_COLORS, // wUsage PATCOPY); // ROP */ ::SetDIBitsToDevice(pDC->m_hDC, // hDC DestX, // DestX DestY, // DestY nDestWidth, // nDestWidth nDestHeight, // nDestHeight 0, // SrcX 0, // SrcY 0, // nStartScan bmInfo.bmiHeader.biHeight, // nNumScans lpDIBBits, // lpBits (LPBITMAPINFO)hDIB, // lpBitsInfo DIB_RGB_COLORS); // wUsage } void DrawImage(CRect& rect, CDC* pDC, CImage& img) { int DestX = (rect.Width()- img.GetWidth()) / 2; int DestY = (rect.Height()- img.GetHeight()) / 2; /* no stretching int nDestWidth = img.GetWidth(); int nDestHeight = img.GetHeight(); while (nDestWidth > rect.Width() || nDestHeight > rect.Height()) { nDestWidth /= 2; nDestHeight /= 2; } */ if (DestX < 0) DestX = 0; if (DestY < 0) DestY = 0; img.Draw(pDC, DestX, DestY); } void DrawMetafile(CRect& rect, CDC* pDC, CMetaFile& wmf) { int nDestWidth = wmf.GetWidth(); int nDestHeight = wmf.GetHeight(); if (nDestWidth == 0) nDestWidth = 1; if (nDestHeight == 0) nDestHeight = 1; while (nDestWidth > rect.Width() || nDestHeight > rect.Height()) { nDestWidth /= 2; nDestHeight /= 2; } /* while (nDestWidth < rect.Width()/2 && nDestHeight < rect.Height()/2) { nDestWidth *= 2; nDestHeight *= 2; } */ int DestX = (rect.Width()- nDestWidth) / 2; int DestY = (rect.Height()- nDestHeight) / 2; if (DestX < 0) DestX = 0; if (DestY < 0) DestY = 0; CRect rc(DestX, DestY, DestX+nDestWidth, DestY+nDestHeight); CBrush brush(RGB(255,255,255)); pDC->FillRect(&rc, &brush); wmf.Display(pDC, rc); } ///////////////////////////////////////////////////////////////////////////// // CDrawWnd void CDrawWnd::SearchFiles(const char* BitmapPath, const char* filter) { struct _finddata_t c_file; long hFile; char Filter[_MAX_PATH]; strcpy(Filter, BitmapPath); strcat(Filter, filter); if ((hFile = _findfirst(Filter, &c_file)) != -1L) { if ((c_file.attrib & _A_SUBDIR)==0) { CString* str = new CString(BitmapPath); (*str) += c_file.name; BitmapList.Insert(str); //os << (*str) << endl; } /* Find the rest of the .c files */ while( _findnext( hFile, &c_file ) == 0 ) { if ((c_file.attrib & _A_SUBDIR)==0) { CString* str = new CString(BitmapPath); (*str) += c_file.name; BitmapList.Insert(str); //os << (*str) << endl; } } _findclose( hFile ); } } CDrawWnd::CDrawWnd(BOOL bAutoDelete) { m_bAutoDelete = bAutoDelete; m_nPos = 0; m_nStep = 1; m_nCounter = 0; m_nTimerID = 123; m_rgnLast.CreateRectRgn(0,0,0,0); m_nWidth = AfxGetApp()->GetProfileInt("Config", "Width", 10); m_nSteps = AfxGetApp()->GetProfileInt("Config", "Resolution", 10); m_nStyle = AfxGetApp()->GetProfileInt("Config", "Style", PS_ENDCAP_ROUND|PS_JOIN_ROUND); if (m_nSteps < 1) m_nSteps = 1; m_logbrush.lbStyle = m_logbrushBlack.lbStyle = BS_SOLID; m_logbrush.lbHatch = m_logbrushBlack.lbHatch = 0; m_logbrush.lbColor = RGB( AfxGetApp()->GetProfileInt("Config", "ColorRed", 255), AfxGetApp()->GetProfileInt("Config", "ColorGreen", 0), AfxGetApp()->GetProfileInt("Config", "ColorBlue", 0)); m_logbrushBlack.lbColor = RGB(0, 0, 0); // initialize BitmapList char DefaultPath[_MAX_PATH]; HINSTANCE hModul = AfxGetInstanceHandle(); ::GetModuleFileName(hModul, DefaultPath, sizeof(DefaultPath)-1); while (strlen(DefaultPath) > 0 && DefaultPath[strlen(DefaultPath)-1]!='\\') DefaultPath[strlen(DefaultPath)-1] = 0; BitmapPath = AfxGetApp()->GetProfileString("Config", "BitmapPath", DefaultPath); if (BitmapPath.GetLength() == 0) { BitmapPath = DefaultPath; } if (BitmapPath.GetAt(BitmapPath.GetLength()-1) != '\\') { BitmapPath += "\\"; } //ofstream os("c:\\test.txt"); //os << AfxGetApp()->m_pszAppName << endl; //os << DefaultPath << endl; //os << BitmapPath << endl; // Metafiles SearchFiles(BitmapPath, "*.wmf"); SearchFiles(BitmapPath, "*.emf"); // Bitmaps SearchFiles(BitmapPath, "*.bmp"); SearchFiles(BitmapPath, "*.dib"); SearchFiles(BitmapPath, "*.rle"); // JPEG SearchFiles(BitmapPath, "*.jpg"); SearchFiles(BitmapPath, "*.jpeg"); SearchFiles(BitmapPath, "*.jpe"); SearchFiles(BitmapPath, "*.jif"); SearchFiles(BitmapPath, "*.jfif"); // GIF SearchFiles(BitmapPath, "*.gif"); // PNG SearchFiles(BitmapPath, "*.png"); } CDrawWnd::~CDrawWnd() { } BEGIN_MESSAGE_MAP(CDrawWnd, CWnd) //{{AFX_MSG_MAP(CDrawWnd) ON_WM_TIMER() ON_WM_PAINT() ON_WM_SIZE() ON_WM_CREATE() //}}AFX_MSG_MAP END_MESSAGE_MAP() /* void CDemoView::OnDraw(CDC* pDC) { CDemoDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); CPoint pos(GetScrollPosition()); CRect rect; GetClientRect(&rect); int width = rect.right - rect.left; int height = rect.bottom - rect.top; if (pDoc->GetImage()) { int x = -pos.x; int y = -pos.y; if (width >= pDoc->GetImage()->GetWidth()) x = (width - pDoc->GetImage()->GetWidth())/2; if (height >= pDoc->GetImage()->GetHeight()) y = (height - pDoc->GetImage()->GetHeight())/2; CDC *dc = GetDC(); CPalette *hOldPal = 0; if (pDoc->GetImage()->GetPalette()) { hOldPal = dc->SelectPalette(pDoc->GetImage()->GetPalette(), TRUE); dc->RealizePalette(); } if (pDoc->GetStretchMode()) { SetScrollSizes(MM_TEXT, CSize(0,0)); pDoc->GetImage()->Stretch(dc, 0, 0, width, height); } else { SetScrollSizes(MM_TEXT, CSize(pDoc->GetImage()->GetWidth(), pDoc->GetImage()->GetHeight())); pDoc->GetImage()->Draw(dc, x, y); } // dc->SelectPalette(hOldPal, TRUE); ReleaseDC(dc); } } */ void CDrawWnd::Draw(CDC& dc, int nWidth) { CBrush brush(RGB(0,0,0)); CRect rect; GetClientRect(rect); dc.FillRect(&rect, &brush); /* BYTE* buffer = new BYTE[5000000]; readpcx(buffer, "F:\\swag\\pas\\chess.pcx"); */ /* PCXHEADER hdr; BYTE* buffer = ReadPCX("F:\\swag\\pas\\chess.pcx", hdr); if (buffer) { DisplayPCX(&dc, rect, hdr, buffer); } */ BOOL bOK; long anz = BitmapList.Count(); if (anz == 0) return; long index = m_nCounter % anz; //long index = abs(rand()) % anz; CPalette pal; HGLOBAL hBmp = NULL; bOK = LoadBMP(*(BitmapList.At(index)), &hBmp, &pal); if (bOK) { DrawDIB(rect, &dc, hBmp, &pal); GlobalFree(hBmp); return; } //else CMetaFile emf; emf.Read(*(BitmapList.At(index))); if (emf.IsOK()) { DrawMetafile(rect, &dc, emf); return; } //else CImage img(*(BitmapList.At(index))); if (img.IsOK()) { CPalette* hOldPal = NULL; if (img.GetPalette()) { hOldPal = dc.SelectPalette(img.GetPalette(), TRUE); dc.RealizePalette(); } DrawImage(rect, &dc, img); //img.Draw(&dc); return; } } void CDrawWnd::SetSpeed(int nSpeed) { KillTimer(m_nTimerID); VERIFY((m_nTimerID = SetTimer(m_nTimerID, 20*(50+500-nSpeed*5), NULL)) != 0); } ///////////////////////////////////////////////////////////////////////////// // CDrawWnd message handlers void CDrawWnd::OnTimer(UINT nIDEvent) { if (nIDEvent == m_nTimerID) { m_nCounter++; m_nPos += m_nStep; if (m_nPos > m_nSteps || m_nPos < 0) { m_nStep = -m_nStep; m_nPos += m_nStep; } CClientDC dc(this); CRect rect; GetClientRect(&rect); int nWidth = m_nWidth * rect.Width() + ::GetSystemMetrics(SM_CXSCREEN)/2; nWidth = nWidth/::GetSystemMetrics(SM_CXSCREEN); Draw(dc, nWidth); } else CWnd::OnTimer(nIDEvent); } void CDrawWnd::OnPaint() { CPaintDC dc(this); // device context for painting m_rgnLast.DeleteObject(); m_rgnLast.CreateRectRgn(0,0,0,0); CBrush brush(RGB(0,0,0)); CRect rect; GetClientRect(rect); dc.FillRect(&rect, &brush); int nWidth = m_nWidth * rect.Width() + ::GetSystemMetrics(SM_CXSCREEN)/2; nWidth = nWidth/::GetSystemMetrics(SM_CXSCREEN); Draw(dc, nWidth); // Do not call CWnd::OnPaint() for painting messages } void CDrawWnd::OnSize(UINT nType, int cx, int cy) { CWnd::OnSize(nType, cx, cy); m_nScale = cx/29; m_nHeight = cy; } int CDrawWnd::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CWnd::OnCreate(lpCreateStruct) == -1) return -1; int nSpeed = AfxGetApp()->GetProfileInt("Config", "Speed", 1); if (nSpeed < 0) nSpeed = 0; SetSpeed(nSpeed); srand( (unsigned)time( NULL ) ); return 0; } BOOL CDrawWnd::Create(DWORD dwExStyle, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) { // Register a class with no cursor if (m_lpszClassName == NULL) { m_lpszClassName = AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW, ::LoadCursor(AfxGetResourceHandle(), MAKEINTRESOURCE(IDC_NULLCURSOR))); } // TODO: Add your specialized code here and/or call the base class return CreateEx(dwExStyle, m_lpszClassName, _T(""), dwStyle, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top, pParentWnd->GetSafeHwnd(), NULL, NULL ); } void CDrawWnd::PostNcDestroy() { if (m_bAutoDelete) delete this; }
6bb843f764a65b6330b69f2a93995195e3b1e385
ec6e9f56df0e783e79a776f41bd9192ebbf6dfcf
/src/plugins/notifications/notificationaction.h
bf4388d952fc8dbd87bf77aac06e8434f2df134e
[]
no_license
SfietKonstantin/phonebot
e0a327afdb0778a4346267224a56c9752da5ef89
a0216a33cb675f3b5386ad52998917a61835edbb
refs/heads/master
2016-09-05T19:10:10.908389
2015-05-30T17:27:47
2015-05-30T17:27:47
21,517,632
2
0
null
2015-01-20T21:42:09
2014-07-05T10:17:10
C++
UTF-8
C++
false
false
2,806
h
/* * Copyright (C) 2014 Lucien XU <[email protected]> * * You may use this file under the terms of the BSD license as follows: * * "Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * The names of its contributors may not be used to endorse or promote * products derived from this software without specific prior written * permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." */ #ifndef NOTIFICATIONACTION_H #define NOTIFICATIONACTION_H #include <action.h> #include <abstractmetadata.h> class NotificationActionPrivate; class NotificationAction : public Action { Q_OBJECT Q_PROPERTY(QString summary READ summary WRITE setSummary NOTIFY summaryChanged) Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged) PHONEBOT_METADATA(NotificationActionMeta) public: explicit NotificationAction(QObject *parent = 0); virtual ~NotificationAction(); QString summary() const; void setSummary(const QString &summary); QString text() const; void setText(const QString &text); bool execute(Rule *rule); Q_SIGNALS: void textChanged(); void summaryChanged(); private: Q_DECLARE_PRIVATE(NotificationAction) }; class NotificationActionMeta: public AbstractMetaData { Q_OBJECT public: Q_INVOKABLE explicit NotificationActionMeta(QObject * parent = 0); QString name() const; QString description() const; QString summary(const QVariantMap &properties) const; protected: MetaProperty * getProperty(const QString &property, QObject *parent = 0) const; }; #endif // NOTIFICATIONACTION_H
c5e680efe1c3cb61b30f90318cafece0cd8a2a73
072ef561d7936807d9b96c842c22a5538ea31374
/Editor/Include/Common/fileio.h
22b0666cc1e7e5a56d50ec3924b1953d375d0dfc
[]
no_license
uchuugaka/BarrysEmacs
ef75940585f66192604e638122604cfd65e94004
c66d4d3aa3291a8e83cf7d10ea0df7c179940720
refs/heads/master
2021-04-09T15:22:43.223036
2018-03-15T19:27:10
2018-03-15T19:27:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,428
h
// Copyright (c) 1982, 1983, 1984, 1985 // Barry A. Scott and Nick Emery // // Structures used by fileio.c // class FileAutoMode : public EmacsObject { // information for automatic mode recognition public: EMACS_OBJECT_FUNCTIONS( FileAutoMode ) EmacsString a_pattern; // the pattern that the name must match BoundName *a_what; // what to do if we find it FileAutoMode *a_next; // the next thing to try }; // create modes enum FIO_CreateMode { FIO_STD, FIO_CKP }; // Open modes enum FIO_OpenMode { FIO_READ, FIO_WRITE }; enum FIO_EOL_Attribute { FIO_EOL__None, // not known FIO_EOL__Binary, // literal read and write no FIO_EOL__StreamCRLF, // MS-DOS/Windows lines FIO_EOL__StreamCR, // Machintosh lines FIO_EOL__StreamLF // Unix lines }; enum FIO_Encoding_Attribute { FIO_Encoding_None, // Unknown FIO_Encoding_UTF_8, // UTF-8 FIO_Encoding_UTF_16_BE, // UTF-16 big endian FIO_Encoding_UTF_16_LE // UTF-16 little endian }; class EmacsFile { public: EmacsFile( FIO_EOL_Attribute _attr = FIO_EOL__None ); virtual ~EmacsFile(); bool fio_create( const EmacsString &, int, FIO_CreateMode, const EmacsString &, FIO_EOL_Attribute ); bool fio_open( const EmacsString &, int, const EmacsString &, FIO_EOL_Attribute attr=FIO_EOL__None ); bool fio_open_using_path( const EmacsString &path, const EmacsString &fn, int append, const EmacsString &ex, FIO_EOL_Attribute attr=FIO_EOL__None ); bool fio_open( FILE *existing_file, FIO_EOL_Attribute attr ) { m_file = existing_file; m_eol_attr = attr; return true; } bool fio_is_open() { return m_file != NULL; } // Old 8bit chars int fio_get( unsigned char *, int ); int fio_get_line( unsigned char *buf, int len ); int fio_get_with_prompt( unsigned char *buffer, int size, const unsigned char *prompt ); int fio_put( const unsigned char *, int ); #ifdef vms int fio_split_put( const unsigned char *, int, const unsigned char *, int ); #endif // Unicode chars int fio_get( EmacsChar_t *, int ); //int fio_get_line( EmacsChar_t *buf, int len ); //int fio_get_with_prompt( EmacsChar_t *buffer, int size, const EmacsChar_t *prompt ); int fio_put( const EmacsChar_t *, int ); int fio_put( const EmacsString & ); bool fio_close(); long int fio_size(); time_t fio_modify_date(); int fio_access_mode(); const EmacsString &fio_getname(); FIO_EOL_Attribute fio_get_eol_attribute() { return m_eol_attr; } FIO_Encoding_Attribute fio_get_encoding_attribute() { return m_encoding_attr; } // // Manipulate files by name // static int fio_access( const EmacsString & ); static bool fio_file_exists( const EmacsString & ); static int fio_delete( const EmacsString & ); static time_t fio_file_modify_date( const EmacsString &file ); private: int get_fixup_buffer( unsigned char *buf, int len ); EmacsString m_full_file_name; FILE *m_file; FIO_EOL_Attribute m_eol_attr; FIO_Encoding_Attribute m_encoding_attr; int m_convert_size; enum { CONVERT_BUFFER_SIZE = 1024 * 1024 }; unsigned char *m_convert_buffer; };
af1bff0ad31ee0fc41e2397d4c4acbd571a050ad
0f34040f583f91668e182143c695d7b9b4830f36
/HW03/composedshape.h
fb510b327fa599e3e17813da0b72576ebd4d0b2f
[]
no_license
cihancanayyildiz/CSE241
cf0956963a12223d543cacb6cc1f71dad48eef87
43f173a6698e7475624ca97c980689f21730cdfb
refs/heads/master
2020-04-30T00:39:51.003328
2019-06-18T07:41:56
2019-06-18T07:41:56
176,507,944
0
0
null
null
null
null
UTF-8
C++
false
false
3,087
h
#ifndef COMPOSEDSHAPE_H #define COMPOSEDSHAPE_H #include <iostream> #include <fstream> #include <cstdlib> #include <cmath> #include <vector> #include "rectangle.h" #include "triangle.h" #include "circle.h" using namespace std; class ShapeElem; //Defining composed shape class class ComposedShape{ public: class ShapeElem{ public: enum class InnerShape{ Rectangle, Circle, Triangle }; void HoldingCircle(Circle innerCirc); void HoldingRectangle(Rectangle innerRect); void HoldingTriangle(Triangle innerTri); void setType (char selection); //Our getters.. const inline Rectangle getRectangle() const { return innerRect; } const inline Circle getCircle() const { return innerCirc; } const inline Triangle getTriangle() const { return innerTri; } const inline InnerShape getType(InnerShape innershape){ return innershape; } const inline double getArea() { return area; } const inline double getPerimeter() { return perimeter; } friend ostream& operator<<(ostream& outputstream,const ComposedShape::ShapeElem &shape); //Friend global functions for access private member data and overloading << operator. private: double perimeter; double area; Rectangle innerRect; Circle innerCirc; Triangle innerTri; InnerShape innershape; void *p; }; // Our constructors. ComposedShape(Rectangle MainRectangle,Triangle triangle); ComposedShape(Rectangle MainRectangle,Circle circle); ComposedShape(Rectangle MainRectangle,Rectangle rectangle); ComposedShape(Triangle MainTriangle,Circle circle); ComposedShape(Triangle MainTriangle,Rectangle rectangle); ComposedShape(Triangle MainTriangle,Triangle triangle); ComposedShape(Circle MainCircle,Circle circle); // Our overload functions. void optimalFit(Rectangle MainRectangle,Triangle triangle); void optimalFit(Rectangle MainRectangle,Circle circle); void optimalFit(Rectangle MainRectangle,Rectangle rectangle); void optimalFit(Triangle MainTriangle,Circle circle); void optimalFit(Triangle MainTriangle,Rectangle rectangle); void optimalFit(Triangle MainTriangle,Triangle triangle); void optimalFit(Circle MainCircle,Circle circle); inline vector<Rectangle> getvector_rect() const{ return rectanglev; } inline vector<Triangle> getvector_tri() const{ return trianglev; } inline vector<Circle> getvector_circle() const{ return circlev; } ShapeElem operator[](int value) {return this->shapev[value];} //Defining operator [] with its index.. ComposedShape operator+=(const Rectangle& rectangle); ComposedShape operator+=(const Circle& circle); ComposedShape operator+=(const Triangle& triangle); friend ostream& operator<<(ostream& outputstream,const ComposedShape& compshape); //Friend global functions for access private member data and overloading << operator. //Our private data. private: Circle MainCircle,circle; Rectangle MainRectangle,rectangle; Triangle MainTriangle,triangle; vector<Rectangle> rectanglev; vector<Triangle> trianglev; vector<Circle> circlev; ShapeElem shape; vector<ShapeElem> shapev; }; #endif
971643c42d6fd21faf9dcce298f9c69ab7a8b3b2
1899c0c556253d05213057b0e11fa5e81891437c
/PF_Test/pf_core/pf_core.cpp
5444ee1863cc57991243805119a1d2419a601044
[]
no_license
leonsev/PF_Test
68bfd6c8d4b4546a5f56cbba3f79cf128c9498d7
beea5d508a1b9624a6bb37f5f62322d80c98dcd2
refs/heads/master
2021-01-10T08:36:55.155432
2015-11-14T14:35:17
2015-11-14T14:35:17
46,143,382
0
0
null
null
null
null
UTF-8
C++
false
false
52
cpp
#include "pf_core.h" Pf_core::Pf_core() { }
020ecfa8d385eefafb24733de1c461f0feda9b17
957bc69ac4ac7295d919f2b85d1289a4132ec58c
/cpp/src/arrow/compute/exec/aggregate.cc
5e99bbba92b2cf9c219092abe8fa7310d85fa08e
[ "Apache-2.0", "CC0-1.0", "OpenSSL", "BSD-3-Clause", "MIT", "NTP", "LLVM-exception", "JSON", "Zlib", "CC-BY-4.0", "ZPL-2.1", "BSL-1.0", "Python-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "LicenseRef-scancode-protobuf", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Fokko/arrow
4da70c1668576dbe3b906274980b61897589c1d3
662e5a4d6366673c334fc81448c7e4224552f7fc
refs/heads/master
2023-08-03T16:31:02.620302
2023-02-14T22:57:51
2023-02-14T22:57:51
148,289,452
0
0
Apache-2.0
2023-02-14T22:58:25
2018-09-11T09:00:19
C++
UTF-8
C++
false
false
11,380
cc
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. #include "arrow/compute/exec/aggregate.h" #include <mutex> #include <thread> #include <unordered_map> #include "arrow/compute/exec_internal.h" #include "arrow/compute/registry.h" #include "arrow/compute/row/grouper.h" #include "arrow/util/checked_cast.h" #include "arrow/util/logging.h" #include "arrow/util/string.h" #include "arrow/util/task_group.h" namespace arrow { using internal::ToChars; namespace compute { namespace internal { namespace { std::vector<TypeHolder> ExtendWithGroupIdType(const std::vector<TypeHolder>& in_types) { std::vector<TypeHolder> aggr_in_types; aggr_in_types.reserve(in_types.size() + 1); aggr_in_types = in_types; aggr_in_types.emplace_back(uint32()); return aggr_in_types; } Result<const HashAggregateKernel*> GetKernel(ExecContext* ctx, const Aggregate& aggregate, const std::vector<TypeHolder>& in_types) { const auto aggr_in_types = ExtendWithGroupIdType(in_types); ARROW_ASSIGN_OR_RAISE(auto function, ctx->func_registry()->GetFunction(aggregate.function)); ARROW_ASSIGN_OR_RAISE(const Kernel* kernel, function->DispatchExact(aggr_in_types)); return static_cast<const HashAggregateKernel*>(kernel); } Result<std::unique_ptr<KernelState>> InitKernel(const HashAggregateKernel* kernel, ExecContext* ctx, const Aggregate& aggregate, const std::vector<TypeHolder>& in_types) { const auto aggr_in_types = ExtendWithGroupIdType(in_types); KernelContext kernel_ctx{ctx}; const auto* options = arrow::internal::checked_cast<const FunctionOptions*>(aggregate.options.get()); if (options == nullptr) { // use known default options for the named function if possible auto maybe_function = ctx->func_registry()->GetFunction(aggregate.function); if (maybe_function.ok()) { options = maybe_function.ValueOrDie()->default_options(); } } ARROW_ASSIGN_OR_RAISE( auto state, kernel->init(&kernel_ctx, KernelInitArgs{kernel, aggr_in_types, options})); return std::move(state); } } // namespace Result<std::vector<const HashAggregateKernel*>> GetKernels( ExecContext* ctx, const std::vector<Aggregate>& aggregates, const std::vector<std::vector<TypeHolder>>& in_types) { if (aggregates.size() != in_types.size()) { return Status::Invalid(aggregates.size(), " aggregate functions were specified but ", in_types.size(), " arguments were provided."); } std::vector<const HashAggregateKernel*> kernels(in_types.size()); for (size_t i = 0; i < aggregates.size(); ++i) { ARROW_ASSIGN_OR_RAISE(kernels[i], GetKernel(ctx, aggregates[i], in_types[i])); } return kernels; } Result<std::vector<std::unique_ptr<KernelState>>> InitKernels( const std::vector<const HashAggregateKernel*>& kernels, ExecContext* ctx, const std::vector<Aggregate>& aggregates, const std::vector<std::vector<TypeHolder>>& in_types) { std::vector<std::unique_ptr<KernelState>> states(kernels.size()); for (size_t i = 0; i < aggregates.size(); ++i) { ARROW_ASSIGN_OR_RAISE(states[i], InitKernel(kernels[i], ctx, aggregates[i], in_types[i])); } return std::move(states); } Result<FieldVector> ResolveKernels( const std::vector<Aggregate>& aggregates, const std::vector<const HashAggregateKernel*>& kernels, const std::vector<std::unique_ptr<KernelState>>& states, ExecContext* ctx, const std::vector<std::vector<TypeHolder>>& types) { FieldVector fields(types.size()); for (size_t i = 0; i < kernels.size(); ++i) { KernelContext kernel_ctx{ctx}; kernel_ctx.SetState(states[i].get()); const auto aggr_in_types = ExtendWithGroupIdType(types[i]); ARROW_ASSIGN_OR_RAISE( auto type, kernels[i]->signature->out_type().Resolve(&kernel_ctx, aggr_in_types)); fields[i] = field(aggregates[i].function, type.GetSharedPtr()); } return fields; } Result<Datum> GroupBy(const std::vector<Datum>& arguments, const std::vector<Datum>& keys, const std::vector<Aggregate>& aggregates, bool use_threads, ExecContext* ctx) { auto task_group = use_threads ? arrow::internal::TaskGroup::MakeThreaded(arrow::internal::GetCpuThreadPool()) : arrow::internal::TaskGroup::MakeSerial(); std::vector<const HashAggregateKernel*> kernels; std::vector<std::vector<std::unique_ptr<KernelState>>> states; FieldVector out_fields; using arrow::compute::detail::ExecSpanIterator; ExecSpanIterator argument_iterator; ExecBatch args_batch; Result<int64_t> inferred_length = ExecBatch::InferLength(arguments); if (!inferred_length.ok()) { inferred_length = ExecBatch::InferLength(keys); } ARROW_ASSIGN_OR_RAISE(const int64_t length, std::move(inferred_length)); if (!aggregates.empty()) { ARROW_ASSIGN_OR_RAISE(args_batch, ExecBatch::Make(arguments, length)); // Construct and initialize HashAggregateKernels std::vector<std::vector<TypeHolder>> aggs_argument_types; aggs_argument_types.reserve(aggregates.size()); size_t i = 0; for (const auto& aggregate : aggregates) { auto& agg_types = aggs_argument_types.emplace_back(); const size_t num_needed = aggregate.target.size(); for (size_t j = 0; j < num_needed && i < arguments.size(); j++, i++) { agg_types.emplace_back(arguments[i].type()); } if (agg_types.size() != num_needed) { return Status::Invalid("Not enough arguments specified to aggregate functions."); } } DCHECK_EQ(aggs_argument_types.size(), aggregates.size()); if (i != arguments.size()) { return Status::Invalid("Aggregate functions expect exactly ", i, " arguments, but ", arguments.size(), " were specified."); } ARROW_ASSIGN_OR_RAISE(kernels, GetKernels(ctx, aggregates, aggs_argument_types)); states.resize(task_group->parallelism()); for (auto& state : states) { ARROW_ASSIGN_OR_RAISE(state, InitKernels(kernels, ctx, aggregates, aggs_argument_types)); } ARROW_ASSIGN_OR_RAISE(out_fields, ResolveKernels(aggregates, kernels, states[0], ctx, aggs_argument_types)); RETURN_NOT_OK(argument_iterator.Init(args_batch, ctx->exec_chunksize())); } // Construct Groupers ARROW_ASSIGN_OR_RAISE(ExecBatch keys_batch, ExecBatch::Make(keys, length)); auto key_types = keys_batch.GetTypes(); std::vector<std::unique_ptr<Grouper>> groupers(task_group->parallelism()); for (auto& grouper : groupers) { ARROW_ASSIGN_OR_RAISE(grouper, Grouper::Make(key_types, ctx)); } std::mutex mutex; std::unordered_map<std::thread::id, size_t> thread_ids; int i = 0; for (const TypeHolder& key_type : key_types) { out_fields.push_back(field("key_" + ToChars(i++), key_type.GetSharedPtr())); } ExecSpanIterator key_iterator; RETURN_NOT_OK(key_iterator.Init(keys_batch, ctx->exec_chunksize())); // start "streaming" execution ExecSpan key_batch, argument_batch; while ((arguments.empty() || argument_iterator.Next(&argument_batch)) && key_iterator.Next(&key_batch)) { if (arguments.empty()) { // A value-less argument_batch should still have a valid length argument_batch.length = key_batch.length; } if (key_batch.length == 0) continue; task_group->Append([&, key_batch, argument_batch] { size_t thread_index; { std::unique_lock<std::mutex> lock(mutex); auto it = thread_ids.emplace(std::this_thread::get_id(), thread_ids.size()).first; thread_index = it->second; DCHECK_LT(static_cast<int>(thread_index), task_group->parallelism()); } auto grouper = groupers[thread_index].get(); // compute a batch of group ids ARROW_ASSIGN_OR_RAISE(Datum id_batch, grouper->Consume(key_batch)); // consume group ids with HashAggregateKernels for (size_t k = 0, arg_idx = 0; k < kernels.size(); ++k) { const auto* kernel = kernels[k]; KernelContext batch_ctx{ctx}; batch_ctx.SetState(states[thread_index][k].get()); const size_t kernel_num_args = kernel->signature->in_types().size(); DCHECK_GT(kernel_num_args, 0); std::vector<ExecValue> kernel_args; for (size_t i = 0; i + 1 < kernel_num_args; i++, arg_idx++) { kernel_args.push_back(argument_batch[arg_idx]); } kernel_args.emplace_back(*id_batch.array()); ExecSpan kernel_batch(std::move(kernel_args), argument_batch.length); RETURN_NOT_OK(kernel->resize(&batch_ctx, grouper->num_groups())); RETURN_NOT_OK(kernel->consume(&batch_ctx, kernel_batch)); } return Status::OK(); }); } RETURN_NOT_OK(task_group->Finish()); // Merge if necessary for (size_t thread_index = 1; thread_index < thread_ids.size(); ++thread_index) { ARROW_ASSIGN_OR_RAISE(ExecBatch other_keys, groupers[thread_index]->GetUniques()); ARROW_ASSIGN_OR_RAISE(Datum transposition, groupers[0]->Consume(ExecSpan(other_keys))); groupers[thread_index].reset(); for (size_t idx = 0; idx < kernels.size(); ++idx) { KernelContext batch_ctx{ctx}; batch_ctx.SetState(states[0][idx].get()); RETURN_NOT_OK(kernels[idx]->resize(&batch_ctx, groupers[0]->num_groups())); RETURN_NOT_OK(kernels[idx]->merge(&batch_ctx, std::move(*states[thread_index][idx]), *transposition.array())); states[thread_index][idx].reset(); } } // Finalize output ArrayDataVector out_data(kernels.size() + keys.size()); auto it = out_data.begin(); for (size_t idx = 0; idx < kernels.size(); ++idx) { KernelContext batch_ctx{ctx}; batch_ctx.SetState(states[0][idx].get()); Datum out; RETURN_NOT_OK(kernels[idx]->finalize(&batch_ctx, &out)); *it++ = out.array(); } ARROW_ASSIGN_OR_RAISE(ExecBatch out_keys, groupers[0]->GetUniques()); for (const auto& key : out_keys.values) { *it++ = key.array(); } const int64_t out_length = out_data[0]->length; return ArrayData::Make(struct_(std::move(out_fields)), out_length, {/*null_bitmap=*/nullptr}, std::move(out_data), /*null_count=*/0); } } // namespace internal } // namespace compute } // namespace arrow
22777c1ae9785068e1a20dab9e8775580f955c52
273cb1849d46c8c74ea9bd28cdd82c8bacac8059
/node deletions/best.cpp
275303748448bb02512525362533c429139046bd
[]
no_license
ShahjalalShohag/Undergrad-Thesis
2e2d2c6ad6ea8283074600014586873da0f51827
ff260a867e441a9603a670ed3b1cad3545f01679
refs/heads/main
2023-07-30T08:29:41.296928
2021-09-25T08:01:18
2021-09-25T08:01:18
377,290,883
9
2
null
null
null
null
UTF-8
C++
false
false
1,930
cpp
#include<bits/stdc++.h> using namespace std; #include "basics.h" const int N = 3509; bool f[N][N]; int w[N], mx[N], r[N]; int32_t main() { ios_base::sync_with_stdio(0); cin.tie(0); // freopen("input002.txt", "r", stdin); int n, m; cin >> n >> m; graph g(n); for (int i = 0; i < m; i++) { int u, v; cin >> u >> v; g[u].push_back(v); g[v].push_back(u); f[u][v] = f[v][u] = 1; } double p = 0.02; auto core = kcore(n, m, g); // cout << core_resilience(50, 5, n, m, g, core) << '\n'; vector<array<int, 2>> e; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (f[i][j]) continue; e.push_back({i, j}); } } for (int u = 0; u < n; u++) { for (auto v: g[u]) { w[u] += core[u] > core[v]; mx[u] = max(mx[u], core[v]); } } auto cost = [&](int u, int v) { // if (core[u] > core[v]) { // return 1.0 * w[u] / core[u]; // } // if (core[u] < core[v]) { // return 1.0 * w[v] / core[v]; // } if (core[u] + core[v] == 0) return 0.0; return 1.0 * (w[u] + w[v]) / (core[u] + core[v]); }; sort(e.begin(), e.end(), [&](array<int, 2> x, array<int, 2> y){ return mx[x[0]] * mx[x[1]] + min(1.0 * core[x[0]] * core[x[1]], (w[x[0]] * w[x[1]]) - cost(x[0], x[1])) * abs(core[x[0]] - core[x[1]]) > mx[y[0]] * mx[y[1]] + min(1.0 * core[y[0]] * core[y[1]], (w[y[0]] * w[y[1]]) - cost(y[0], y[1])) * abs(core[y[0]] - core[y[1]]); }); for (double p = 0.01; p <= 0.20; p += 0.01) { int tot = e.size(); int cnt = 0, nxtm = m; graph ans = g; for (auto [u, v]: e) { cnt++; if (cnt * 100 > tot * p) break; ans[u].push_back(v); ans[v].push_back(u); ++nxtm; } // cout << cnt << '\n'; core = kcore(n, nxtm, ans); cout << core_resilience(50, 0, 5, n, nxtm, ans, core) << '\n'; } return 0; }
2de2e44d4bd7c5b2dcc27021824ba7c8b4ab50a6
cb9bc4fb2180e26b6b7f5744cec8886596987ae6
/candy.cpp
0c798610bc76b7ab1d77d82125c1012b2824dd31
[]
no_license
smartse0k/CandyCrushStar
36baef41df4a80502c1a0bd5e5db0cb3d622e7a9
d378fad58af98edf50a4d8c6d8ef50dfa4382300
refs/heads/master
2020-06-05T06:33:06.246456
2019-06-18T14:31:33
2019-06-18T14:31:33
192,346,216
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
2,156
cpp
#include <iostream> #include "candy.h" using namespace std; Candy::Candy() { setType(rand() % CANDY_NUM); setSelect(NOT_SELECTED); pop = 0; } Candy::Candy(int type) { setType(type); setSelect(NOT_SELECTED); pop = 0; } void Candy::drawCandy(bool selected) { if(pop == 1) { cout << "£ª"; return; } switch(type) { case CANDY_RECT: if(select == NOT_SELECTED && !selected) cout << "¡à"; else cout << "¡á"; break; case CANDY_CIRCLE: if(select == NOT_SELECTED && !selected) cout << "¡Û"; else cout << "¡Ü"; break; case CANDY_STAR: if(select == NOT_SELECTED && !selected) cout << "¡Ù"; else cout << "¡Ú"; break; case CANDY_DIAMOND: if(select == NOT_SELECTED && !selected) cout << "¡Þ"; else cout << "¡ß"; break; case CANDY_HEART: if(select == NOT_SELECTED && !selected) cout << "¢½"; else cout << "¢¾"; break; default: cout << "?"; break; } } void BombCandy::drawCandy(bool selected) { if(getPop() == 1) { cout << "£ª"; return; } switch(getType()) { case CANDY_RECT: if(getSelect() == NOT_SELECTED && !selected) cout << "¢Ã"; else cout << "¡á"; break; case CANDY_CIRCLE: if(getSelect() == NOT_SELECTED && !selected) cout << "¡Ý"; else cout << "¡Ü"; break; case CANDY_STAR: if(getSelect() == NOT_SELECTED && !selected) cout << "£ª"; else cout << "¡Ú"; break; case CANDY_DIAMOND: if(getSelect() == NOT_SELECTED && !selected) cout << "¢Â"; else cout << "¡ß"; break; case CANDY_HEART: if(getSelect() == NOT_SELECTED && !selected) cout << "¢Í"; else cout << "¢¾"; break; default: cout << "?"; break; } } int Candy::getType() { return type; } void Candy::setType(int type) { this->type = type; } int Candy::getSelect() { return select; } void Candy::setSelect(int select) { this->select = select; } void Candy::setPop() { this->pop = 1; } int Candy::getPop() { return pop; } int Candy::getCandyAttribute() { return CANDY_DEFAULT; } int BombCandy::getCandyAttribute() { return CANDY_BOMB; } BombCandy::BombCandy(Candy *candy) { this->setSelect(candy->getSelect()); this->setType(candy->getType()); }
8921cfb119784f827eb21aa8d84e341439ff1ed8
74e5cc5746f5da2494ce90c317c4f2bc876549b2
/Classes/ProjectileLayer.h
92f792f14b63551683ee047c61e0b51dba184bee
[]
no_license
RezaShafie/MsTinyBazooka
27d473bdd08723ec48402a2600c36cde227a4ac6
114a1582712c6483664d2869ff9d2f2604d04bba
refs/heads/master
2022-11-10T07:04:38.638109
2020-06-22T15:47:28
2020-06-22T15:47:28
274,172,016
0
0
null
null
null
null
UTF-8
C++
false
false
715
h
#ifndef __wp8Game__ProjectileLayer__ #define __wp8Game__ProjectileLayer__ #include "cocos2d.h" using namespace cocos2d; #include "Projectile.h" class ProjectileLayer: public CCLayer { public: ProjectileLayer(CCSprite* _hero); ~ProjectileLayer(); CCSprite* hero; int score; bool gameOver; CCSize visibleSize; CCArray* playerBullets; CCArray* enemies; CCArray* enemiesToBeDeleted; CCArray* enemyBullets; CCArray* enemyBulletsToBeDeleted; CCParticleSystemQuad* smokeParticle; CCParticleSystemQuad* dustParticle; void update(); bool checkBoxCollision(CCSprite* box1, CCSprite *box2); }; #endif /* defined(__wp8Game__ProjectileLayer__) */
4a9555ad12fb28814a65b4672e9aaee0085d31af
9dab836feab74b135be8208e3e727c6435dd5bec
/gmsv_extra/Garry's Mod/GLUA/IScriptedEntity.h
b1d1e86db8b6a674d3fd1c9987e4a3aedde1f0a2
[ "Apache-2.0" ]
permissive
11Lee1/gmsv_extra
56fe3db4e11f648ef640343470d0f631c90168c7
294dbc1e31eca6f086605767e0495cf64348bd85
refs/heads/master
2020-04-29T20:19:26.189875
2019-05-08T01:20:18
2019-05-08T01:20:18
176,380,702
11
3
null
null
null
null
UTF-8
C++
false
false
205
h
#ifndef ISCRIPTEDENTITY_H #define ISCRIPTEDENTITY_H class IScriptedEntity { public: // fill out vmt later. virtual void NetworkStateChanged() = 0; virtual void NetworkStateChanged(void*) = 0; }; #endif
831e0f490a54f46a7f08f6f2a0ac6842ff91ab8f
ce7ec438fa29a76098db5ab3b0ba92c95789b109
/random_testing/quad_error_generator/error_3_generator.cpp
44a94b2521bb79b9c844fcb7ea9d22b88d6230e2
[]
no_license
morrinic/cs6015assn4
6f0eacfe16f095145263ce8296defdec2696ad80
d73bffb44ea8a7172a5d716909af2439af746187
refs/heads/master
2020-04-18T08:50:03.166021
2019-02-08T13:05:34
2019-02-08T13:05:34
167,410,195
0
0
null
null
null
null
UTF-8
C++
false
false
240
cpp
// // error_3_generator.cpp // quad_error_generator // // Created by Nicole Morris on 2/6/19. // Copyright © 2019 Nicole Morris. All rights reserved. // #include "error_3_generator.hpp" #include "general_error.hpp" #include <fstream>
5b1672486d38012cd6151eef886e3da3b43e538e
6cc7f0d586acf0455e5d97680f98066b5fdb27e2
/CodeForces/854C.cpp
b5c270764f728d94ccdc817b0eaae99b1a76c8ad
[]
no_license
Aj163/Competitive-Programming
aac1ef482d48e82b55d6e88e9f6ee6176627c729
9082c1e9eb0deba328c9a96ae335efe197bc8589
refs/heads/master
2021-06-14T11:26:40.353495
2019-10-27T12:05:14
2019-10-27T12:05:14
103,935,810
3
3
null
2019-10-27T12:05:15
2017-09-18T12:25:12
C++
UTF-8
C++
false
false
1,055
cpp
#include <bits/stdc++.h> #define f(i, num) for(int i=0; i<num; i++) #define F(i, lower, upper, step) for(int i=lower; i<upper; i+=step) #define F_(i, upper, lower, step) for(int i=upper; i>lower; i-=step) #define read(num) scanf("%d", &num); #define read2(num1, num2) scanf("%d%d", &num1, &num2); #define read3(num1, num2, num3) scanf("%d%d%d", &num1, &num2, &num3); #define M 1000000007 #define pb push_back #define mp make_pair #define pii pair<int, int> #define vi vector<int> #define vit vector<int>::iterator #define ll long long using namespace std; int main() { int n, k, ans[300009], c[300009], p; ll cost = 0; set< pii > s; set< pii >::iterator it; pii pp; read2(n, k); f(i, n) read(c[i]); f(i, k) s.insert(mp(c[i], i)); p = k; f(i, n) { if(p<n) { s.insert(mp(c[p], p)); p++; } //printf("LOL %d - i=%d\n", s.size(), i); it = s.end(); it--; pp = *it; s.erase(it); cost += (((k+i) - pp.second)*1ll*pp.first); ans[pp.second] = k+i+1; } cout<<cost<<endl; f(i, n) printf("%d ", ans[i]); }
66ea7b244e6a0d4c323496a1aa6891dea9a8db93
c635c38b64ce41b1f41c3bd2f4af3410637d7d83
/OOPL/assgn5.cpp
212b31b9e8c6737b7168bcc01ff1e5acb3ceed7d
[]
no_license
Abhishek2081/SE
de601594a633a1b7a9970360a8a1fac971673546
4e153de5e49cc475ebf0648faecb5c2f5974e405
refs/heads/master
2023-05-27T07:48:06.016899
2021-06-16T16:11:33
2021-06-16T16:11:33
377,515,925
0
0
null
null
null
null
UTF-8
C++
false
false
1,962
cpp
#include<iostream> using namespace std; class Personal_Rec { protected : char name[20]; int day,month,year; char bloodgrp[4]; public : void input1(); }; void Personal_Rec::input1() { cout<<"\nEnter name :"<<endl; cin.ignore(); cin.getline(name,19); cout<<"Enter date of birth\nDay :"<<endl; cin>>day; cout<<"Month :"<<endl; cin>>month; cout<<"Year :"<<endl; cin>>year; cout<<"Blood Group :"<<endl; cin.ignore(); cin.getline(bloodgrp,3); } class Profession_Rec { protected : int exp; char skills[30]; public : void input2(); }; void Profession_Rec::input2() { cout<<"Previous Work Experience in years :"<<endl; cin>>exp; cout<<"Skills :"<<endl; cin.ignore(); cin.getline(skills,30); } class Academic_Rec { protected : float percentile; public : void input3(); }; void Academic_Rec::input3() { cout<<"Degree Percentile :"<<endl; cin>>percentile; } class Resume:public Personal_Rec,public Profession_Rec,public Academic_Rec { public: void display(); void input() { Personal_Rec::input1(); Profession_Rec::input2(); Academic_Rec::input3(); } }; void Resume::display() { cout<<"\tRESUME"<<endl <<"Name : "<<name<<endl <<"Date of birth : "<<day<<"/"<<month<<"/"<<year<<endl <<"Blood Group : "<<bloodgrp<<endl <<"Work Experience : "<<exp<<endl <<"Skills : "<<skills<<endl <<"Degree Percent : "<<percentile<<endl; } int main() { Resume D; int ch; do { cout<<"Enter your choice"<<endl <<"1 - Input"<<endl <<"2 - Display"<<endl <<"3 - Exit"<<endl; cin>>ch; switch(ch) { case 1: D.input(); break; case 2: D.display(); break; case 3: return 0; default: cout<<"Invalid choice"<<endl; } }while(1); return 0; }
7b98f1e8ed33cb928032f2aff4b57a584fd02cfa
0b8a622104c90981164faea33e35a7404b4b0811
/src/time_estimate.h
8af3722a6b021d7a6c912bfdb831ae57556c1db5
[]
no_license
simba2icac/roadnetworkkit
4ae238c4ed97456a87386cbc0597cb66ac86dc92
86cc5e9d185b0c2439c0ba1d0ec57f7290dfac0f
refs/heads/master
2021-01-19T22:26:42.894701
2016-07-16T05:39:09
2016-07-16T05:39:09
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,101
h
#ifndef TIME_ESTIMATE_H #define TIME_ESTIMATE_H //auto-include {{{ #include <vector> #include <utility> #include <string> #include <mysql++.h> #include "gps.h" #include "roadmap.h" //}}} /// TimedCrossIndex typedef std::pair<int, boost::posix_time::ptime> TimedCrossIndex; ///\brief 估计时间 ///\param log ///\param paths ivmm 生成的path向量 ///\param logRange 只估计[first, second)区间的GPS数据 ///\param 对应的道路地图 std::vector<TimedCrossIndex> estimate_time( std::vector<GpsPoint> const& log, std::vector<Path> const& paths, std::pair<int, int> const& logRange, RoadMap const& map); ///\brief 估计时间,使用全部GPS点的版本 inline std::vector<TimedCrossIndex> estimate_time( std::vector<GpsPoint> const& log, std::vector<Path> const& paths, RoadMap const& map){ return estimate_time(log, paths, {0, log.size()}, map); } std::vector<TimedCrossIndex> load_timed_path_from_file(std::string const& file); std::vector<TimedCrossIndex> load_timed_path_from_DB(mysqlpp::Connection& con, int metaID); #endif /*TIME_ESTIMATE_H*/
c576b30f66eb0ffb6d6f5c9869163f20ac59a8d5
12c82ceba45d5508cff2e4f152563435873f2b8b
/arrangeCoins.cpp
e974132e4e86a71c687598078f718516e027bc77
[]
no_license
Web-Dev-Collaborative/leetcode-solutions
45d50ff92f4c96cf59d5407a8a2bed7405383430
b46d09c665d4a89322a32916ebc76c15565616bf
refs/heads/master
2023-04-03T17:22:53.180100
2021-03-29T21:15:55
2021-03-29T21:15:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
375
cpp
class Solution { public: int arrangeCoins(int n) { long start = 0, end = n; long k, curr; while(start <= end) { k = start + (end - start) / 2; curr = k * (k + 1) / 2; if(curr == n) return (int) k; if(n < curr) end = k - 1; else start = k + 1; } return (int)end; } };
1bd2e6800acf52e58b84f494549ccf12e26f73ac
eaefdd36edd00eac984efcf032151c4bb5c43bf9
/A.cpp
12ee3361cb9458d3a20f4e80e1f897e639d175f5
[]
no_license
yiiju/lab1
829d71d5350b6f9e3b1afb06c2914afe0550decf
a966edffc5f666224d2347e76dcde59e0c029c5b
refs/heads/master
2021-01-18T13:58:42.213017
2017-03-09T13:31:50
2017-03-09T13:31:50
84,337,989
0
0
null
null
null
null
UTF-8
C++
false
false
174
cpp
#include<iostream> using namespace std; int main() { int n; cin>>n; cout<<n; while(n!=1){ if(n%2==1) n=3*n+1; else n/=2; cout<<" "<<n; } cout<<endl; return 0; }
db3255582af3119e5e1b4fd31c4892803e7cdb07
7b4ce7c1411fb2a3b0ab088d89bf93ed97b1905d
/src/tools/DiffTool.h
502cb292b7cdfa009b1f0dcea86d26e3e1ac4ac8
[ "MIT" ]
permissive
gitahead/gitahead
9fb86aee4df2e60fb1ff5bec615e3f6876b70049
81df5b468fc3ebd148320d894e561fb097324b88
refs/heads/master
2023-08-15T01:20:34.055687
2022-05-24T21:03:38
2022-05-24T21:03:38
159,882,575
1,894
318
MIT
2022-04-06T18:37:07
2018-11-30T21:52:34
C++
UTF-8
C++
false
false
719
h
// // Copyright (c) 2017, Scientific Toolworks, Inc. // // This software is licensed under the MIT License. The LICENSE.md file // describes the conditions under which this software may be distributed. // // Author: Jason Haslam // #ifndef DIFFTOOL_H #define DIFFTOOL_H #include "ExternalTool.h" #include "git/Blob.h" class DiffTool : public ExternalTool { Q_OBJECT public: DiffTool( const QString &file, const git::Blob &localBlob, const git::Blob &remoteBlob, QObject *parent = nullptr); bool isValid() const override; Kind kind() const override; QString name() const override; bool start() override; protected: git::Blob mLocalBlob; git::Blob mRemoteBlob; }; #endif
15db89a47714b8496b8ec6e5e9a3a8c3eedd13d2
03e45b2e50449ad128c0779e3cc7e7b5d40fd16f
/hal-project/platform/olimex-stm32f103-stk/isrs.cpp
b1862630a999ef0a08ea61acf4823b68ad72fa22
[]
no_license
FabioBaldo17/Desem
dadf72f839520e1560a1f8727d291a193a95b979
d6d57442aac02c58ad99ee113b77539808a8f68b
refs/heads/main
2023-02-14T03:57:36.936103
2021-01-10T00:45:47
2021-01-10T00:45:47
303,329,139
0
0
null
null
null
null
UTF-8
C++
false
false
1,444
cpp
#include "platform-config.h" #include "misc.h" /** * - Used to detect joystick 'center button' connected to * the PC5 GPIO. * - Used for the Transceiver (nRF24L01). Called when * Transceiver has to notify something to the MCU (GPIO RC9) */ extern "C" void EXTI9_5_IRQHandler() { // Joystick 'center button' IRQ if(EXTI_GetITStatus(EXTI_Line6) != RESET) { EXTI_ClearITPendingBit(EXTI_Line6); } // nRF24L01 IRQ if (EXTI_GetITStatus(EXTI_Line9) != RESET) { #if (EXCLUDE_BOARD_NRFTRANSCEIVER == 0) // Call transceivers interrupt reception method board::NrfTransceiver::instance().onIrq(); #endif EXTI_ClearITPendingBit(EXTI_Line9); } { // Clear other pending interrupts EXTI_ClearITPendingBit(EXTI_Line5); EXTI_ClearITPendingBit(EXTI_Line7); EXTI_ClearITPendingBit(EXTI_Line8); } } #if (USE_USART2_TRACE != 0) /** * Interrupt Service Routine (ISR) for USART2 */ extern "C" void USART2_IRQHandler() { unsigned char value; UNUSED(value); // Check overrun if (USART_GetITStatus(USART2, USART_IT_ORE) == SET) { // Clear ORE flag by reading first SR and then DR value = USART3->SR; // Read status then... value = USART3->DR; // Read data } // Check new character in RX register if(USART_GetITStatus(USART2, USART_IT_RXNE) == SET) { USART_ClearFlag(USART2,USART_FLAG_RXNE); value = USART_ReceiveData(USART2); // TODO: Buffer received data in a buffer } } #endif // (USE_USART2_TRACE != 0)
a912430cfddf5e561f40619af80318ee9e4e6295
791eedd78b9fe753f998020efb9ff9d0270cd8d3
/CPP/LESSONSandHOMEWORKS/Lessons_and_homeworks_17/Lesson17MY_PAINT/Lesson17MY_PAINT/Shape.h
586093228009d2f4bed014a0a8e5276ea150b594
[]
no_license
pavel-prykhodko96/source
6214c212356ffa420bbc489adce104268f5efa12
77219b672bb14df93abd7b8203f486d0620533d8
refs/heads/master
2023-03-07T21:43:17.422232
2023-02-23T12:06:52
2023-02-23T12:06:52
248,736,899
0
0
null
2023-02-23T12:06:54
2020-03-20T11:16:45
C
UTF-8
C++
false
false
412
h
#pragma once #include <Windows.h> #include <iostream> using namespace std; namespace shp { struct Point //initialize by {7,8} - OK m_x = 7, m_y = 8; //for classes' private members it doesn't work { int m_x; int m_y; }; class Shape { public: Shape(const std::string & name); ~Shape(); virtual void draw(HDC hdc); // cout << "draw from Shape" << endl; private: std::string m_name; }; }
f2223258866e3042feed6ec3816e4c970b804655
8dd4f2b537a995c3a257abb9cf7e1e5876ddb424
/lumpedcpp/Lump_libil2cpp_vm.cpp
47a64f9b8c350eb4122b8a108590f2b15d6e0cc4
[]
no_license
David-EJ-C/CA1RatCatcher
19ca5cbbc385af4ae6053afbbc2d7819fc961abe
22a20c7254257e37c9b8352e90e4ac338b1a117c
refs/heads/main
2023-05-05T04:53:24.810756
2021-05-29T14:39:19
2021-05-29T14:39:19
363,642,716
0
0
null
null
null
null
UTF-8
C++
false
false
5,394
cpp
#include "il2cpp-config.h" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Array.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Assembly.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\AssemblyName.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Atomic.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\CCW.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\CCWBase.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\COM.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\COMEntryPoints.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Class.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\ClassInlines.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\ComObjectBase.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Domain.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Enum.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Event.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Exception.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Field.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\GenericClass.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\GenericContainer.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Image.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\InternalCalls.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\LastError.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\LibraryLoader.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Liveness.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\MarshalAlloc.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\MemoryInformation.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\MetadataAlloc.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\MetadataCache.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\MetadataLoader.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Method.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Module.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Monitor.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Object.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Parameter.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Path.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\PlatformInvoke.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Profiler.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Property.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\RCW.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Random.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Reflection.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Runtime.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\ScopedThreadAttacher.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\StackTrace.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\String.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Thread.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\ThreadPool.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\ThreadPoolMs.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\Type.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\VisualizerHelpers.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\WaitHandle.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\WeakReference.cpp" #include "C:\Program Files\Unity\Hub\Editor\2020.1.0f1\Editor\Data\il2cpp\libil2cpp\vm\WindowsRuntime.cpp"
3b8e2b9f4be50eaac68713a9031211cd724b63dc
1bbd62ab1b7345ea29f8937a2cb4d4fb17cc5c3c
/GeneticAlgorithm.cpp
8a08d60cdee6644868246ce2415b8409add51be0
[]
no_license
pinanzo/genetic-algorithm-n-queen
6f5f18f7e6d71d47b66620b69fc0eceae87d0433
a769fadddd91713856ab0a38e7abe43fe6174376
refs/heads/master
2020-07-07T18:44:28.123279
2019-08-20T19:59:18
2019-08-20T19:59:18
203,442,633
1
0
null
null
null
null
UTF-8
C++
false
false
6,897
cpp
// Group 1 // Section: A2 // Md. Samiul Alam (14.02.04.033) #include <bits/stdc++.h> using namespace std; #define read() freopen("input.txt","r",stdin) #define INF ((1<<29)-1) #define EPS (1e-9) #define PI (2*acos(0.0)) #define ll long long #define ull unsigned ll #define SIZE ((ll)1e6)+10 #define testcase ll T;cin>>T;for(int t=1;t<=T;t++) #define printcase() cout<<"Case "<<t<<":\n" #define pb push_back #define PAR_SIZE 1000000+10 #define BFS_GRID 1010 #define NL() cout << endl #define FOR(itt,n) for(int itt=0;itt<n;++itt) #define FOR1(itt,n) for(int itt=1;itt<=n;++itt) #define MAX_PRIME 1000010 #define MUTATION_RATE 100 struct Solution{ pair<int,char>columnIndex[10]; int fitness; }solution[100]; int calculateFitness(Solution s){ int attacks=0; FOR(j,8){ FOR(k,8){ if(j==k)continue; if(s.columnIndex[j].second=='Q'){ if(s.columnIndex[j].first==s.columnIndex[k].first || abs(j-k)==abs(s.columnIndex[j].first-s.columnIndex[k].first))attacks++; } if(s.columnIndex[j].second=='B'){ if(abs(j-k)==abs(s.columnIndex[j].first-s.columnIndex[k].first))attacks++; } } } int fitness = 56-attacks; return fitness; } void generateRandomSolution(int n){ FOR(i,n){ int queen = 4; int bishop = 4; FOR(j,8){ bool draw = rand()%2; // if draw == true then queen otherwise bishop if(draw){ if(queen){ solution[i].columnIndex[j] = make_pair(rand()%8,'Q'); --queen; } else{ solution[i].columnIndex[j] = make_pair(rand()%8,'B'); --bishop; } } else{ if(bishop){ solution[i].columnIndex[j] = make_pair(rand()%8,'B'); --bishop; } else{ solution[i].columnIndex[j] = make_pair(rand()%8,'Q'); --queen; } } } solution[i].fitness = calculateFitness(solution[i]); } } void printFirstNSolution(int n){ FOR(i,n){ FOR(j,8){ cout << solution[i].columnIndex[j].first << ' '; } cout << endl; FOR(j,8){ cout << solution[i].columnIndex[j].second << ' '; } cout << endl; cout << solution[i].fitness; cout << endl; cout << endl; } } bool cmp(Solution a, Solution b){ return a.fitness>b.fitness; } void getParentIndex(int parentIndex[], int n){ int totalFitnessSum=0; int cumulativeFitnessSum[n+1]; bool alreadySelected[n+1]; int numberOfParent=n>>1; memset(alreadySelected,false,sizeof(alreadySelected)); int k=0; FOR(i,n){ totalFitnessSum+=solution[i].fitness; cumulativeFitnessSum[i]=totalFitnessSum; } while(k<numberOfParent){ int randomValue = rand()%totalFitnessSum+1; FOR(i,n){ if(randomValue<=cumulativeFitnessSum[i]&&!alreadySelected[i]){ parentIndex[k++]=i; alreadySelected[i]=true; break; } } } } Solution getMutedChild(Solution child){ int index1 = rand()%8, index2 = rand()%8; int totalSize = max(index1,index2) - min(index1,index2)+1; for(int i=0; i<totalSize; i++){ int randomIndex_1 = min(index1,index2)+rand()%totalSize; int randomIndex_2 = min(index1,index2)+rand()%totalSize; swap(child.columnIndex[randomIndex_1].first,child.columnIndex[randomIndex_2].first); } return child; } Solution crossOver(Solution a, Solution b, int mutationRate){ int st = rand()%8; int et = rand()%8; int temp = st; st = min(st,et); et = max(temp,et); int totalSelectedIndex=0; Solution child; bool selectedColumnIndex[10]; memset(selectedColumnIndex,false,sizeof(selectedColumnIndex)); for(int i=st; i<=et; i++){ child.columnIndex[i].first = a.columnIndex[i].first; selectedColumnIndex[a.columnIndex[i].first]=true; ++totalSelectedIndex; } int childRestIndex = et+1; while(totalSelectedIndex<8){ ++et; if(!selectedColumnIndex[b.columnIndex[et%8].first]){ child.columnIndex[childRestIndex%8]=b.columnIndex[et%8]; ++totalSelectedIndex; ++childRestIndex; } } int queen = 4; int bishop = 4; FOR(j,8){ bool draw = rand()%2; // if draw == true then queen otherwise bishop if(draw){ if(queen){ child.columnIndex[j].second = 'Q'; --queen; } else{ child.columnIndex[j].second = 'B'; --bishop; } } else{ if(bishop){ child.columnIndex[j].second = 'B'; --bishop; } else{ child.columnIndex[j].second = 'Q'; --queen; } } } if(rand()%100<=mutationRate)child = getMutedChild(child); child.fitness = calculateFitness(child); return child; } void showSolution(Solution s){ FOR(i,8){ FOR(j,8){ if(j==s.columnIndex[i].first)cout << s.columnIndex[i].second << ' '; else cout << '.' << ' '; } cout << endl; } } int main() { #ifdef pinanzo //read(); //freopen("output.txt","w",stdout); #endif // pinanzo //ios_base::sync_with_stdio(0); //cin.tie(NULL); //cout.tie(NULL); int n; int totalIteration; int mutationRate; int it=1; int crossOverRate; cout << "Initial Population: "; cin >> n; cout << "Total number of iteration: "; cin >> totalIteration; cout << "Mutation Rate (on a scale of 100): "; cin >> mutationRate; cout << "Cross Over Rate (on a scale of 100): "; cin >> crossOverRate; //cin >> n >> totalIteration >> mutationRate >> crossOverRate; generateRandomSolution(n); sort(solution,solution+n, cmp); for(it=1; it<=totalIteration; ++it){ if(rand()%100<=crossOverRate)continue; int parentIndex[100]; getParentIndex(parentIndex,n); int numberOfChild = n>>1; for(int i=0; i<numberOfChild; i+=2){ solution[n+i]=crossOver(solution[parentIndex[i]],solution[parentIndex[i+1]], mutationRate); solution[n+i+1]=crossOver(solution[parentIndex[i+1]],solution[parentIndex[i]], mutationRate); } sort(solution,solution+n+(n>>1), cmp); if(calculateFitness(solution[0])==56)break; } cout << "Solution found on " << it << " iteration" << endl; //printFirstNSolution(n+(n>>1)); showSolution(solution[0]); return 0; }
50291b90fc110f83198e7b8ed0ce34f5951fa560
ec95321874d6cee2b119372301af5b99c659b847
/src/yeti.cc
bef0854664093dd83b2bfb3b16b8becfedcd46c4
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
AndreAKM/yeti
e89dea5e6772bacb75a318f1737b8048ceb358a1
2342e8b4bf416ad8d1fd34511bca82a747f3abcd
refs/heads/master
2021-01-18T10:21:14.194139
2015-02-18T06:32:55
2015-02-18T06:32:55
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,733
cc
// Copyright (c) 2014, Dmitry Senin ([email protected]) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // 2. Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the // documentation and/or other materials provided with the distribution. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. // // yeti - C++ lightweight threadsafe logging // URL: https://github.com/seninds/yeti.git #include <yeti/yeti.h> #include <csignal> #include <cstdio> #include <ctime> #include <iostream> #include <map> #include <mutex> #include <string> #include <src/logger.h> namespace yeti { const std::map<int, std::string> SIGNAME = { { SIGABRT, "SIGABRT" }, { SIGFPE, "SIGFPE" }, { SIGILL, "SIGILL" }, { SIGINT, "SIGINT" }, { SIGSEGV, "SIGSEGV" }, { SIGTERM, "SIGTERM" } }; typedef void (*__sighandler_t)(int); std::map<int, __sighandler_t> g_old_handlers = { { SIGABRT, nullptr }, { SIGFPE, nullptr }, { SIGILL, nullptr }, { SIGINT, nullptr }, { SIGSEGV, nullptr }, { SIGTERM, nullptr } }; void SetLogLevel(LogLevel level) noexcept { Logger::instance().SetLevel(level); } int GetLogLevel() noexcept { return Logger::instance().GetLevel(); } void SetLogColored(bool is_colored) noexcept { Logger::instance().SetColored(is_colored); } bool IsLogColored() noexcept { return Logger::instance().IsColored(); } void SetLogFileDesc(FILE* fd) noexcept { Logger::instance().SetFileDesc(fd); } FILE* GetLogFileDesc() noexcept { return Logger::instance().GetFileDesc(); } void CloseLogFileDesc(FILE* fd) { Logger::instance().CloseFileDesc(fd); } void SetLogFormatStr(const std::string& format_str) noexcept { Logger::instance().SetFormatStr(format_str); } std::string GetLogFormatStr() noexcept { return Logger::instance().GetFormatStr(); } void ShutdownLog() { yeti::Logger::instance().Shutdown(); } void SimpleSignalHandler(int sig_num) { DEBUG("caught %s: start flushing log...\n", SIGNAME.at(sig_num).c_str()); yeti::Logger::instance().Flush(); if (g_old_handlers[sig_num]) g_old_handlers[sig_num](sig_num); } void RegSignal(int sig_num) { // logger should be instantiated before signals will be registered auto old_handler = signal(sig_num, SimpleSignalHandler); if (old_handler) g_old_handlers[sig_num] = old_handler; } void RegAllSignals() { for (const auto& entry : SIGNAME) { RegSignal(entry.first); } } void FlushLog() { yeti::Logger::instance().Flush(); } std::size_t _GetMsgId() { return yeti::Logger::instance().GetMsgId(); } void _IncMsgId() { yeti::Logger::instance().IncMsgId(); } std::string _CreateLogStr(const yeti::LogData& log_data) { std::map<std::string, std::string> subs; subs["%(LEVEL)"] = log_data.level; subs["%(FILENAME)"] = log_data.filename; subs["%(FUNCNAME)"] = log_data.funcname; subs["%(MSG)"] = log_data.msg; if (log_data.log_format.find("%(PID)") != std::string::npos) { subs["%(PID)"] = std::to_string(log_data.pid); } if (log_data.log_format.find("%(TID)") != std::string::npos) { std::hash<std::thread::id> hash_fn; std::ostringstream oss; oss << std::hex << std::uppercase << hash_fn(log_data.tid); subs["%(TID)"] = oss.str(); } if (log_data.log_format.find("%(DATE)") != std::string::npos) { using namespace std::chrono; char date_buf[16] = { 0 }; auto sec = duration_cast<seconds>(log_data.time.time_since_epoch()); std::time_t t = sec.count(); std::strftime(date_buf, sizeof(date_buf), "%F", std::localtime(&t)); subs["%(DATE)"] = date_buf; } if (log_data.log_format.find("%(TIME)") != std::string::npos) { using namespace std::chrono; char time_buf[32] = { 0 }; auto nanos = duration_cast<nanoseconds>(log_data.time.time_since_epoch()); auto sec = duration_cast<seconds>(log_data.time.time_since_epoch()); std::time_t t = sec.count(); std::size_t frac = nanos.count() % 1000000000; std::strftime(time_buf, sizeof(time_buf), "%T", std::localtime(&t)); std::string time_str = std::string(time_buf) + "." + std::to_string(frac); subs["%(TIME)"] = time_str; } if (log_data.log_format.find("%(LINE)") != std::string::npos) { subs["%(LINE)"] = std::to_string(log_data.line); } if (log_data.log_format.find("%(MSG_ID)") != std::string::npos) { subs["%(MSG_ID)"] = std::to_string(log_data.msg_id); } std::string result = log_data.log_format; size_t pos = 0; for (const auto& entry : subs) { while ((pos = result.find(entry.first)) != std::string::npos) { result.replace(pos, entry.first.length(), entry.second); } } return result; } void _EnqueueLogTask(LogData* log_data) { log_data->log_format = yeti::Logger::instance().GetFormatStr(); log_data->time = std::chrono::high_resolution_clock::now(); log_data->pid = getpid(); log_data->tid = std::this_thread::get_id(); log_data->fd = yeti::Logger::instance().GetFileDesc(); bool is_colored = yeti::Logger::instance().IsColored(); LogData printed_data = *log_data; auto print_func = [printed_data, is_colored] { std::string log_str = _CreateLogStr(printed_data) + "\n"; // To colorize stdout and stderr in Windows cmd.exe it is necessary // to include windows.h and use SetConsoleTextAttribute(). // It is terrible, so I decided to disable coloring on WIN32 platform. #ifndef _WIN32 if (isatty(fileno(printed_data.fd)) != 0 && is_colored) { log_str = printed_data.color + log_str + std::string(YETI_RESET); } #endif // _WIN32 std::fprintf(printed_data.fd, log_str.c_str()); }; yeti::Logger::instance().EnqueueTask(print_func); } } // namespace yeti
df06f3d1d7d27ea718e0a835b9162883e20d1578
b7f3edb5b7c62174bed808079c3b21fb9ea51d52
/content/browser/accessibility/ax_platform_node_win_browsertest.cc
c83b531e58493e6cf1bdff853a17ce30d90d224d
[ "BSD-3-Clause" ]
permissive
otcshare/chromium-src
26a7372773b53b236784c51677c566dc0ad839e4
64bee65c921db7e78e25d08f1e98da2668b57be5
refs/heads/webml
2023-03-21T03:20:15.377034
2020-11-16T01:40:14
2020-11-16T01:40:14
209,262,645
18
21
BSD-3-Clause
2023-03-23T06:20:07
2019-09-18T08:52:07
null
UTF-8
C++
false
false
23,197
cc
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/accessibility/platform/ax_platform_node_win.h" #include "base/win/scoped_variant.h" #include "content/browser/accessibility/accessibility_content_browsertest.h" #include "content/browser/accessibility/browser_accessibility.h" #include "content/browser/accessibility/browser_accessibility_com_win.h" #include "content/browser/renderer_host/render_widget_host_view_aura.h" #include "content/browser/web_contents/web_contents_impl.h" #include "content/public/test/accessibility_notification_waiter.h" #include "content/public/test/browser_test.h" #include "content/public/test/browser_test_utils.h" #include "content/public/test/content_browser_test.h" #include "content/public/test/content_browser_test_utils.h" #include "content/shell/browser/shell.h" #include "testing/gmock/include/gmock/gmock-matchers.h" using Microsoft::WRL::ComPtr; namespace content { #define EXPECT_UIA_INT_EQ(node, property_id, expected) \ { \ base::win::ScopedVariant expectedVariant(expected); \ ASSERT_EQ(VT_I4, expectedVariant.type()); \ base::win::ScopedVariant actual; \ ASSERT_HRESULT_SUCCEEDED( \ node->GetPropertyValue(property_id, actual.Receive())); \ EXPECT_EQ(expectedVariant.ptr()->intVal, actual.ptr()->intVal); \ } class AXPlatformNodeWinBrowserTest : public AccessibilityContentBrowserTest { protected: template <typename T> ComPtr<T> QueryInterfaceFromNode( BrowserAccessibility* browser_accessibility) { ComPtr<T> result; EXPECT_HRESULT_SUCCEEDED( browser_accessibility->GetNativeViewAccessible()->QueryInterface( __uuidof(T), &result)); return result; } ComPtr<IAccessible> IAccessibleFromNode( BrowserAccessibility* browser_accessibility) { return QueryInterfaceFromNode<IAccessible>(browser_accessibility); } ComPtr<IAccessible2> ToIAccessible2(ComPtr<IAccessible> accessible) { CHECK(accessible); ComPtr<IServiceProvider> service_provider; accessible.As(&service_provider); ComPtr<IAccessible2> result; CHECK(SUCCEEDED(service_provider->QueryService(IID_IAccessible2, IID_PPV_ARGS(&result)))); return result; } BrowserAccessibility* FindNodeAfter(BrowserAccessibility* begin, const std::string& name) { WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(shell()->web_contents()); BrowserAccessibilityManager* manager = web_contents->GetRootBrowserAccessibilityManager(); BrowserAccessibility* node = begin; while (node && (node->GetName() != name)) node = manager->NextInTreeOrder(node); return node; } void UIAGetPropertyValueFlowsFromBrowserTestTemplate( const BrowserAccessibility* target_browser_accessibility, const std::vector<std::string>& expected_names) { ASSERT_NE(nullptr, target_browser_accessibility); auto* target_browser_accessibility_com_win = ToBrowserAccessibilityWin(target_browser_accessibility)->GetCOM(); ASSERT_NE(nullptr, target_browser_accessibility_com_win); base::win::ScopedVariant flows_from_variant; target_browser_accessibility_com_win->GetPropertyValue( UIA_FlowsFromPropertyId, flows_from_variant.Receive()); ASSERT_EQ(VT_ARRAY | VT_UNKNOWN, flows_from_variant.type()); ASSERT_EQ(1u, SafeArrayGetDim(V_ARRAY(flows_from_variant.ptr()))); LONG lower_bound, upper_bound, size; ASSERT_HRESULT_SUCCEEDED( SafeArrayGetLBound(V_ARRAY(flows_from_variant.ptr()), 1, &lower_bound)); ASSERT_HRESULT_SUCCEEDED( SafeArrayGetUBound(V_ARRAY(flows_from_variant.ptr()), 1, &upper_bound)); size = upper_bound - lower_bound + 1; ASSERT_EQ(static_cast<LONG>(expected_names.size()), size); std::vector<std::string> names; for (LONG i = 0; i < size; ++i) { ComPtr<IUnknown> unknown_element; ASSERT_HRESULT_SUCCEEDED( SafeArrayGetElement(V_ARRAY(flows_from_variant.ptr()), &i, static_cast<void**>(&unknown_element))); ASSERT_NE(nullptr, unknown_element); ComPtr<IRawElementProviderSimple> raw_element_provider_simple = nullptr; ASSERT_HRESULT_SUCCEEDED( unknown_element.As(&raw_element_provider_simple)); ASSERT_NE(nullptr, raw_element_provider_simple); base::win::ScopedVariant name; ASSERT_HRESULT_SUCCEEDED(raw_element_provider_simple->GetPropertyValue( UIA_NamePropertyId, name.Receive())); ASSERT_EQ(VT_BSTR, name.type()); names.push_back(base::UTF16ToUTF8( std::wstring(V_BSTR(name.ptr()), SysStringLen(V_BSTR(name.ptr()))))); } ASSERT_THAT(names, testing::UnorderedElementsAreArray(expected_names)); } void UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role expected_role, content::BrowserAccessibility* (content::BrowserAccessibility::*f)( uint32_t) const, uint32_t index_arg, bool expected_is_modal, bool expected_is_window_provider_available) { BrowserAccessibility* root_browser_accessibility = GetRootAndAssertNonNull(); BrowserAccessibilityComWin* root_browser_accessibility_com_win = ToBrowserAccessibilityWin(root_browser_accessibility)->GetCOM(); ASSERT_NE(nullptr, root_browser_accessibility_com_win); BrowserAccessibility* browser_accessibility = (root_browser_accessibility->*f)(index_arg); ASSERT_NE(nullptr, browser_accessibility); ASSERT_EQ(expected_role, browser_accessibility->GetRole()); BrowserAccessibilityComWin* browser_accessibility_com_win = ToBrowserAccessibilityWin(browser_accessibility)->GetCOM(); ASSERT_NE(nullptr, browser_accessibility_com_win); ComPtr<IWindowProvider> window_provider = nullptr; ASSERT_HRESULT_SUCCEEDED(browser_accessibility_com_win->GetPatternProvider( UIA_WindowPatternId, &window_provider)); if (expected_is_window_provider_available) { ASSERT_NE(nullptr, window_provider.Get()); BOOL is_modal = FALSE; ASSERT_HRESULT_SUCCEEDED(window_provider->get_IsModal(&is_modal)); ASSERT_EQ(expected_is_modal, is_modal); } else { ASSERT_EQ(nullptr, window_provider.Get()); } } }; IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, IA2ScrollToPointIframeText) { LoadInitialAccessibilityTreeFromHtmlFilePath( "/accessibility/scrolling/iframe-text.html"); WaitForAccessibilityTreeToContainNodeWithName( shell()->web_contents(), "Game theory is \"the study of Mathematical model mathematical models of " "conflict and cooperation between intelligent rational decision-makers." "\""); BrowserAccessibility* browser_accessibility = GetRootAndAssertNonNull()->PlatformDeepestLastChild(); ASSERT_NE(nullptr, browser_accessibility); ASSERT_EQ(ax::mojom::Role::kStaticText, browser_accessibility->GetRole()); BrowserAccessibility* iframe_browser_accessibility = browser_accessibility->manager()->GetRoot(); ASSERT_NE(nullptr, iframe_browser_accessibility); ASSERT_EQ(ax::mojom::Role::kRootWebArea, iframe_browser_accessibility->GetRole()); gfx::Rect iframe_screen_bounds = iframe_browser_accessibility->GetBoundsRect( ui::AXCoordinateSystem::kScreenDIPs, ui::AXClippingBehavior::kUnclipped); AccessibilityNotificationWaiter location_changed_waiter( shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kLocationChanged); ComPtr<IAccessible2> root_iaccessible2 = ToIAccessible2(IAccessibleFromNode(browser_accessibility)); ASSERT_EQ(S_OK, root_iaccessible2->scrollToPoint( IA2_COORDTYPE_SCREEN_RELATIVE, iframe_screen_bounds.x(), iframe_screen_bounds.y())); location_changed_waiter.WaitForNotification(); gfx::Rect bounds = browser_accessibility->GetBoundsRect( ui::AXCoordinateSystem::kScreenDIPs, ui::AXClippingBehavior::kUnclipped); ASSERT_EQ(iframe_screen_bounds.y(), bounds.y()); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAGetPropertyValueFlowsFromNone) { LoadInitialAccessibilityTreeFromHtmlFilePath( "/accessibility/aria/aria-label.html"); base::win::ScopedVariant flows_from_variant; ComPtr<IRawElementProviderSimple> node_provider = QueryInterfaceFromNode<IRawElementProviderSimple>( FindNode(ax::mojom::Role::kCheckBox, "aria label")); node_provider->GetPropertyValue(UIA_FlowsFromPropertyId, flows_from_variant.Receive()); ASSERT_EQ(VT_ARRAY | VT_UNKNOWN, flows_from_variant.type()); ASSERT_EQ(nullptr, V_ARRAY(flows_from_variant.ptr())); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAGetPropertyValueFlowsFromSingle) { LoadInitialAccessibilityTreeFromHtmlFilePath( "/accessibility/aria/aria-flowto.html"); UIAGetPropertyValueFlowsFromBrowserTestTemplate( FindNode(ax::mojom::Role::kFooter, "next"), {"current"}); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAGetPropertyValueFlowsFromMultiple) { LoadInitialAccessibilityTreeFromHtmlFilePath( "/accessibility/aria/aria-flowto-multiple.html"); UIAGetPropertyValueFlowsFromBrowserTestTemplate( FindNode(ax::mojom::Role::kGenericContainer, "b3"), {"a3", "c3"}); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDialog) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <dialog open>Example Text</dialog> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kDialog, &BrowserAccessibility::PlatformGetChild, 0, false, true); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDialogAriaModalFalse) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <dialog open aria-modal="false">Example Text</dialog> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kDialog, &BrowserAccessibility::PlatformGetChild, 0, false, true); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDialogAriaModalTrue) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <dialog open aria-modal="true">Example Text</dialog> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kDialog, &BrowserAccessibility::PlatformGetChild, 0, true, true); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDiv) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div>Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kGenericContainer, &BrowserAccessibility::PlatformGetChild, 0, false, false); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivAriaModalFalse) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div aria-modal="false">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kGenericContainer, &BrowserAccessibility::PlatformGetChild, 0, false, false); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivAriaModalTrue) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div aria-modal="true">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kGenericContainer, &BrowserAccessibility::PlatformGetChild, 0, false, false); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivDialog) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div role="dialog">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kDialog, &BrowserAccessibility::PlatformGetChild, 0, false, true); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivDialogAriaModalFalse) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div role="dialog" aria-modal="false">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kDialog, &BrowserAccessibility::PlatformGetChild, 0, false, true); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivDialogAriaModalTrue) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div role="dialog" aria-modal="true">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kDialog, &BrowserAccessibility::PlatformGetChild, 0, true, true); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivAlertDialog) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div role="alertdialog">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kAlertDialog, &BrowserAccessibility::PlatformGetChild, 0, false, true); } IN_PROC_BROWSER_TEST_F( AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivAlertDialogAriaModalFalse) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div role="alertdialog" aria-modal="false">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kAlertDialog, &BrowserAccessibility::PlatformGetChild, 0, false, true); } IN_PROC_BROWSER_TEST_F( AXPlatformNodeWinBrowserTest, UIAIWindowProviderGetIsModalOnDivAlertDialogAriaModalTrue) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div role="alertdialog" aria-modal="true">Example Text</div> </body> </html> )HTML")); UIAIWindowProviderGetIsModalBrowserTestTemplate( ax::mojom::Role::kAlertDialog, &BrowserAccessibility::PlatformGetChild, 0, true, true); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAGetPropertyValueAutomationId) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> </body> <div id="id"></div> </body> </html> )HTML")); BrowserAccessibility* root_browser_accessibility = GetRootAndAssertNonNull(); BrowserAccessibilityComWin* root_browser_accessibility_com_win = ToBrowserAccessibilityWin(root_browser_accessibility)->GetCOM(); ASSERT_NE(nullptr, root_browser_accessibility_com_win); BrowserAccessibility* browser_accessibility = root_browser_accessibility->PlatformDeepestLastChild(); ASSERT_NE(nullptr, browser_accessibility); ASSERT_EQ(ax::mojom::Role::kGenericContainer, browser_accessibility->GetRole()); BrowserAccessibilityComWin* browser_accessibility_com_win = ToBrowserAccessibilityWin(browser_accessibility)->GetCOM(); ASSERT_NE(nullptr, browser_accessibility_com_win); base::win::ScopedVariant expected_scoped_variant; expected_scoped_variant.Set(SysAllocString(L"id")); base::win::ScopedVariant scoped_variant; EXPECT_HRESULT_SUCCEEDED(browser_accessibility_com_win->GetPropertyValue( UIA_AutomationIdPropertyId, scoped_variant.Receive())); EXPECT_EQ(0, expected_scoped_variant.Compare(scoped_variant)); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, UIAGetPropertyValueCulture) { LoadInitialAccessibilityTreeFromHtml(std::string(R"HTML( <!DOCTYPE html> <html> <body> <div lang='en-us'>en-us</div> <div lang='en-gb'>en-gb</div> <div lang='ru-ru'>ru-ru</div> <div lang='fake'>fake</div> <div>no lang</div> <div lang=''>empty lang</div> </body> </html> )HTML")); BrowserAccessibility* root_node = GetRootAndAssertNonNull(); BrowserAccessibility* body_node = root_node->PlatformGetFirstChild(); ASSERT_NE(nullptr, body_node); BrowserAccessibility* node = FindNodeAfter(body_node, "en-us"); ASSERT_NE(nullptr, node); BrowserAccessibilityComWin* en_us_node_com_win = ToBrowserAccessibilityWin(node)->GetCOM(); ASSERT_NE(nullptr, en_us_node_com_win); constexpr int en_us_lcid = 1033; EXPECT_UIA_INT_EQ(en_us_node_com_win, UIA_CulturePropertyId, en_us_lcid); node = FindNodeAfter(node, "en-gb"); ASSERT_NE(nullptr, node); BrowserAccessibilityComWin* en_gb_node_com_win = ToBrowserAccessibilityWin(node)->GetCOM(); ASSERT_NE(nullptr, en_gb_node_com_win); constexpr int en_gb_lcid = 2057; EXPECT_UIA_INT_EQ(en_gb_node_com_win, UIA_CulturePropertyId, en_gb_lcid); node = FindNodeAfter(node, "ru-ru"); ASSERT_NE(nullptr, node); BrowserAccessibilityComWin* ru_ru_node_com_win = ToBrowserAccessibilityWin(node)->GetCOM(); ASSERT_NE(nullptr, ru_ru_node_com_win); constexpr int ru_ru_lcid = 1049; EXPECT_UIA_INT_EQ(ru_ru_node_com_win, UIA_CulturePropertyId, ru_ru_lcid); // Setting to an invalid language should return a failed HRESULT. node = FindNodeAfter(node, "fake"); ASSERT_NE(nullptr, node); BrowserAccessibilityComWin* fake_lang_node_com_win = ToBrowserAccessibilityWin(node)->GetCOM(); ASSERT_NE(nullptr, fake_lang_node_com_win); base::win::ScopedVariant actual; EXPECT_HRESULT_FAILED(fake_lang_node_com_win->GetPropertyValue( UIA_CulturePropertyId, actual.Receive())); // No lang should default to the page's default language (en-us). node = FindNodeAfter(node, "no lang"); ASSERT_NE(nullptr, node); BrowserAccessibilityComWin* no_lang_node_com_win = ToBrowserAccessibilityWin(node)->GetCOM(); ASSERT_NE(nullptr, no_lang_node_com_win); EXPECT_UIA_INT_EQ(no_lang_node_com_win, UIA_CulturePropertyId, en_us_lcid); // Empty lang should default to the page's default language (en-us). node = FindNodeAfter(node, "empty lang"); ASSERT_NE(nullptr, node); BrowserAccessibilityComWin* empty_lang_node_com_win = ToBrowserAccessibilityWin(node)->GetCOM(); ASSERT_NE(nullptr, empty_lang_node_com_win); EXPECT_UIA_INT_EQ(empty_lang_node_com_win, UIA_CulturePropertyId, en_us_lcid); } IN_PROC_BROWSER_TEST_F(AXPlatformNodeWinBrowserTest, HitTestOnAncestorOfWebRoot) { EXPECT_TRUE(NavigateToURL(shell(), GURL(url::kAboutBlankURL))); // Load the page. AccessibilityNotificationWaiter waiter(shell()->web_contents(), ui::kAXModeComplete, ax::mojom::Event::kLoadComplete); const char url_str[] = "data:text/html," "<!doctype html>" "<html><head><title>Accessibility Test</title></head>" "<body>" "<button>This is a button</button>" "</body></html>"; GURL url(url_str); EXPECT_TRUE(NavigateToURL(shell(), url)); waiter.WaitForNotification(); WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(shell()->web_contents()); BrowserAccessibilityManager* manager = web_contents->GetRootBrowserAccessibilityManager(); // Find a node to hit test. Note that this is a really simple page, // so synchronous hit testing will work fine. BrowserAccessibility* node = manager->GetRoot(); while (node && node->GetRole() != ax::mojom::Role::kButton) node = manager->NextInTreeOrder(node); DCHECK(node); // Get the screen bounds of the hit target and find the point in the middle. gfx::Rect bounds = node->GetClippedScreenBoundsRect(); gfx::Point point = bounds.CenterPoint(); // Get the root AXPlatformNodeWin. ui::AXPlatformNodeWin* root_platform_node = static_cast<ui::AXPlatformNodeWin*>( ui::AXPlatformNode::FromNativeViewAccessible( manager->GetRoot()->GetNativeViewAccessible())); // First test that calling accHitTest on the root node returns the button. { base::win::ScopedVariant hit_child_variant; ASSERT_EQ(S_OK, root_platform_node->accHitTest( point.x(), point.y(), hit_child_variant.Receive())); ASSERT_EQ(VT_DISPATCH, hit_child_variant.type()); ASSERT_NE(nullptr, hit_child_variant.ptr()); ComPtr<IAccessible> accessible; ASSERT_HRESULT_SUCCEEDED(V_DISPATCH(hit_child_variant.ptr()) ->QueryInterface(IID_PPV_ARGS(&accessible))); ui::AXPlatformNode* hit_child = ui::AXPlatformNode::FromNativeViewAccessible(accessible.Get()); ASSERT_NE(nullptr, hit_child); EXPECT_EQ(node->GetId(), hit_child->GetDelegate()->GetData().id); } // Now test it again, but this time caliing accHitTest on the parent // IAccessible of the web root node. { RenderWidgetHostViewAura* rwhva = static_cast<RenderWidgetHostViewAura*>( shell()->web_contents()->GetRenderWidgetHostView()); IAccessible* ancestor = rwhva->GetParentNativeViewAccessible(); base::win::ScopedVariant hit_child_variant; ASSERT_EQ(S_OK, ancestor->accHitTest(point.x(), point.y(), hit_child_variant.Receive())); ASSERT_EQ(VT_DISPATCH, hit_child_variant.type()); ASSERT_NE(nullptr, hit_child_variant.ptr()); ComPtr<IAccessible> accessible; ASSERT_HRESULT_SUCCEEDED(V_DISPATCH(hit_child_variant.ptr()) ->QueryInterface(IID_PPV_ARGS(&accessible))); ui::AXPlatformNode* hit_child = ui::AXPlatformNode::FromNativeViewAccessible(accessible.Get()); ASSERT_NE(nullptr, hit_child); EXPECT_EQ(node->GetId(), hit_child->GetDelegate()->GetData().id); } } } // namespace content
89c196ea0b3c3fd35facf26eff79072dc8e41506
8e6c51220bc7253408d67e79a741dc8df99239d3
/TestFile.cpp
129f764a86f8a1ff7ba6cca600f460b3a80bf0a7
[]
no_license
StoicaAndreea/ParkingLot
5e8cc0387191482d4a29cc54029c4d1f5af1330c
97836877dcf42f6777d184dc536fee34cc18b713
refs/heads/main
2023-03-25T17:35:55.573199
2021-03-23T12:40:05
2021-03-23T12:40:05
346,748,477
0
0
null
null
null
null
UTF-8
C++
false
false
1,856
cpp
#include "TestFile.h" #include <assert.h> #include <iostream> TestRepositoryFile::TestRepositoryFile() { assert(repo.getSize() == 0); } void TestRepositoryFile::testLoadFromFile() { repo.loadFromFile("TestProj.txt"); assert(repo.getSize() == 4); } void TestRepositoryFile::testAddElem() { repo.loadFromFile("TestProj.txt"); repo.addElem(Car("aaa","bbb","free")); assert(repo.getSize() == 5); repo.saveToFile(); } void TestRepositoryFile::testFindElem() { repo.loadFromFile("TestProj.txt"); assert(repo.findElem(Car("aaa", "bbb", "free")) == 4); assert(repo.findElem(Car("abc", "aaa", "free")) == -1); repo.saveToFile(); } void TestRepositoryFile::testDelElem() { repo.loadFromFile("TestProj.txt"); repo.deleteElem(Car("aaa", "bbb", "free")); assert(repo.getSize() == 4); repo.saveToFile(); } void TestRepositoryFile::testGetAll() { repo.loadFromFile("TestProj.txt"); list<Car> rez = repo.getAll(); assert(rez.size() == 4); repo.saveToFile(); } void TestRepositoryFile::testUpdateElem() { repo.loadFromFile("TestProj.txt"); repo.updateElem(Car("bbb", "aaa", "free"), Car("abc", "aaa", "free")); assert(repo.findElem(Car("abc", "aaa", "free")) == 0); repo.saveToFile(); } void TestRepositoryFile::testElemAtPos() { repo.loadFromFile("TestProj.txt"); assert(repo.getItemFromPos(0) == Car("abc", "aaa", "free")); repo.saveToFile(); } void TestRepositoryFile::testSize() { repo.loadFromFile("TestProj.txt"); assert(repo.getSize() == 4); } void TestRepositoryFile::testSaveToFile() { repo.loadFromFile("TestProj.txt"); int n = repo.getSize(); repo.addElem(Car("aaa", "aaa", "free")); repo.saveToFile(); repo.loadFromFile("TestProj.txt"); assert(repo.getAll().size() == (n + 1)); } TestRepositoryFile::~TestRepositoryFile() { }
dae527f16984e516305152b4d59c292a3e7d3bd8
4bcae7ca3aed842d647d9112547522cffa805d51
/0130.被围绕的区域.cpp
f54c50870561c3e0547cecda9bb3aafcdc6456b2
[]
no_license
SLKyrim/vscode-leetcode
fd5a163f801661db0dfae1d4fdfa07b79fdb82b6
65a271c05258f447d3e56755726f02179780eb8a
refs/heads/master
2021-07-03T03:15:28.883786
2021-02-23T06:19:18
2021-02-23T06:19:18
226,062,540
2
0
null
null
null
null
UTF-8
C++
false
false
3,473
cpp
/* * @lc app=leetcode.cn id=130 lang=cpp * * [130] 被围绕的区域 * * https://leetcode-cn.com/problems/surrounded-regions/description/ * * algorithms * Medium (38.21%) * Likes: 129 * Dislikes: 0 * Total Accepted: 17.4K * Total Submissions: 45.1K * Testcase Example: '[["X","X","X","X"],["X","O","O","X"],["X","X","O","X"],["X","O","X","X"]]' * * 给定一个二维的矩阵,包含 'X' 和 'O'(字母 O)。 * * 找到所有被 'X' 围绕的区域,并将这些区域里所有的 'O' 用 'X' 填充。 * * 示例: * * X X X X * X O O X * X X O X * X O X X * * * 运行你的函数后,矩阵变为: * * X X X X * X X X X * X X X X * X O X X * * * 解释: * * 被围绕的区间不会存在于边界上,换句话说,任何边界上的 'O' 都不会被填充为 'X'。 任何不在边界上,或不与边界上的 'O' 相连的 'O' * 最终都会被填充为 'X'。如果两个元素在水平或垂直方向相邻,则称它们是“相连”的。 * */ // @lc code=start #include <vector> using namespace std; class UnionFind { private: vector<int> roots; int findRoot(int index) { while (roots[index] != index) { roots[index] = roots[roots[index]]; index = roots[index]; } return index; } public: UnionFind(int index) { for (int i = 0; i < index; i++) { roots.push_back(i); } } void Union(int index1, int index2) { int root1 = findRoot(index1); int root2 = findRoot(index2); if (root1 != root2) { roots[root1] = root2; } } bool isConnected(int index1, int index2) { return findRoot(index1) == findRoot(index2); } }; class Solution { private: int cols = 0; int xyTo1D(int row, int col) { return row * cols + col; } public: void solve(vector<vector<char>>& board) { if (board.size() == 0) { return; } int rows = board.size(); cols = board[0].size(); UnionFind uf = UnionFind(rows * cols + 1); int dummyNode = rows * cols; for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { if (board[i][j] == 'O') { if (i == 0 || i == rows - 1 || j == 0 || j == cols - 1) { uf.Union(xyTo1D(i, j), dummyNode); } else { if (i - 1 >= 0 && board[i - 1][j] == 'O') { uf.Union(xyTo1D(i, j), xyTo1D(i - 1, j)); } if (i + 1 < rows && board[i + 1][j] == 'O') { uf.Union(xyTo1D(i, j), xyTo1D(i + 1, j)); } if (j - 1 >= 0 && board[i][j - 1] == 'O') { uf.Union(xyTo1D(i, j), xyTo1D(i, j - 1)); } if (j + 1 < cols && board[i][j + 1] == 'O') { uf.Union(xyTo1D(i, j), xyTo1D(i, j + 1)); } } } } } for (int i = 0; i < rows; i++) { for (int j = 0; j < cols; j++) { if (board[i][j] == 'O' && !uf.isConnected(xyTo1D(i, j), dummyNode)) { board[i][j] = 'X'; } } } } }; // @lc code=end
c4bf87c256630c867a0df3553f213aebb112c206
87d8af054e17e0c346b6f59636402883fbf0158d
/Cpp/SDK/Title_SD_MasterOfArms_classes.h
664ce5e0861a35ea9bb3c9ca9495626e4b825da9
[]
no_license
AthenaVision/SoT-SDK-2
53676d349bca171b5e48dc812fd7bb97b9a4f1d8
4a803206d707a081b86c89a4b866a1761119613d
refs/heads/main
2023-03-20T10:48:21.491008
2021-03-10T21:55:10
2021-03-10T21:55:10
null
0
0
null
null
null
null
UTF-8
C++
false
false
739
h
#pragma once // Name: sot, Version: 4.2 /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass Title_SD_MasterOfArms.Title_SD_MasterOfArms_C // 0x0000 (FullSize[0x00E0] - InheritedSize[0x00E0]) class UTitle_SD_MasterOfArms_C : public UTitleDesc { public: static UClass* StaticClass() { static auto ptr = UObject::FindClass("BlueprintGeneratedClass Title_SD_MasterOfArms.Title_SD_MasterOfArms_C"); return ptr; } }; } #ifdef _MSC_VER #pragma pack(pop) #endif
96e591f498b9f6c732452dfb4fe00414eca4bd8b
6426ae91efed816ec782a4a109bd4f7e4daffc5a
/Library/LegacyResources/Headers/RadarPlot.h
fdb02977412112695df98e3046862302a2f8dd6c
[]
no_license
rfim/Microstrategy
04756e390d3f17572cafe18f7f6be8b36a024190
9ab9d1d3b4321e2b17626d97074d694f1196c41f
refs/heads/master
2021-04-09T15:09:43.191220
2018-03-21T07:38:13
2018-03-21T07:38:13
125,734,634
1
0
null
null
null
null
UTF-8
C++
false
false
6,500
h
//============================================================================================== // FILENAME : RadarPlot.h // AUTHOR : Liang Liu // CREATION : 2009-04-07 // Copyright (C) MicroStrategy Incorporated 2009 // All Rights Reserved //============================================================================================== #ifndef MsiChart_RadarPlot_h #define MsiChart_RadarPlot_h #include "PolarPlot.h" #include "RadarCategoryAxis.h" namespace MsiChart { struct RadarSeriesInfo { RadarSeriesInfo() : mDataIndex(0), mShowMarkers(false), mMarkerSize(33), mMarkerShape(DssGraphMarkerShapeRectangle) { } Int32 mDataIndex; ///< Indicates the data index for this series ID in specified value axis. bool mShowMarkers; ///< Indicates whether to show data markers Int32 mMarkerSize; ///< Indicates the marker size. unsigned char mMarkerShape; ///< Indicates the marker shape. }; ///< This class is used to generate radar chart. class RadarPlot : public PolarPlot { public: typedef MSynch::SmartPtr<RadarPlot> Ptr; /** Constructor @param irTripleId,ipManager,irDeviceRect Required by base class. */ RadarPlot(const TripleId& irTripleId, GraphObjectManager* ipManager, const Rect2D& irDeviceRect); //virtual functions from GraphObjectManager virtual void GenerateMapAndList(); virtual void GetOptions(Int32 iSeriesId, Int32 iPropertyId, CComVariant* opValue) const; //virtual void Draw(); //override functions //virtual void OnRectangleSelection(const Rect2D& irRect, std::vector<GraphObject::Ptr>& iorSelectedObjects) const; private: virtual PolarValueAxis::Ptr hGenerateXAxis(); /** Load plot level properties. */ void hLoadProperties(); void hGenerateAreaForSeries(Int32 iSeriesIndex, std::vector<Point2D>& orSeriesPoints); //void hGenerateDataLineForSeries(Int32 iSeriesIndex); /// Generate axes. //void hGenerateAxes(); /** Generate data markers for one series. @param irPoints Specifies where to draw the markers. @param iSeriesIndex Specifies the series index. */ //void hGenerateMarkersBySeries(const std::vector<Point2D>& irPoints, Int32 iSeriesIndex, std::vector<Rect2D>& orMarkerRects); /** Generate data lines for one series. @param irPolarPoints Specifies the data positions. @param iSeriesIndex Specifies the series index. */ //void hGenerateDataLinesBySeries(const std::vector<FPoint2D>& irPolarPoints, Int32 iSeriesIndex); //void hGenerateOneDataLine(const std::vector<FPoint2D>& irPolarPointSet, Int32 iSeriesIndex, GraphCollectionObject* ipDataLineSet); //void hGenerateDatalabels(const std::vector<Rect2D>& irRects, Int32 iSeriesIndex); //virtual TextObject::Ptr hCreateDataLabel(Int32 iSeriesIndex, Int32 iGroupID, GraphCollectionObject* ipCollection); virtual bool hGetValueString(Int32 iSeriesIndex, Int32 iGroupID, MBase::String& orValue, GraphCollectionObject* ipCollection); //bool hGetVAFormattedText(Int32 iSeriesIndex, Int32 iGroupID, MBase::String& orText); /** * Get the minimum and maximum value for value axis * @param orMin: Minimum value for this axis * @param orMax: Maximum value for this axis */ void hGetMinMaxValueForValueAxis(double& orMin, double& orMax); //Point2D hGetPointByAngleAndRadius(double iAngleRad, double iRadius) const; void hMoveDataLabel(TextObject* ipText, const Rect2D& irRefRect); //void hCreateTrendLines(); /** Load series level properties. @param iSeriesIndex The input series index. */ void hLoadSeriesProperties(Int32 iSeriesIndex); void hParseSubGraphType(); /** Get the data values. In stacked chart, you will get cumulated data. @param iSeriesIndex The index for mSeriesOptions. @param iGroupId The group ID. @param iIsXValue Indicates whether to get X value or Y value. @param iPreValue Indicates whether to get the previous cumulate data in Stacked layout. @param iDataGroup The input data group index @return true if successful, false if NULL in Dataset. */ virtual bool GetData(Int32 iSeriesIndex, Int32 iGroupId, bool iIsXValue, double& orValue) const; void hInitCumulateData(EnumValueAxis iValueAxis); /** Get a polygon related to one series. @param iSeriesIndex This indicates the series index in mSeriesInfo. @param orPolygon This holds the output polygon. @return Return true if all points in orPolygon are valid. */ bool hGetSeriesPolygon(Int32 iSeriesIndex, Polygon2D& orPolygon); bool hGetStackedPolygon(Int32 iSeriesIndex, Polygon2D& orPolygon); void hParseStackedPolygonUnits(const Polygon2D& irPolygon, std::vector<std::vector<Point2D> >& orPolygonUnits); //void hParseSeriesPoints(const std::vector<FPoint2D> irOuterPoints, const std::vector<FPoint2D> irInnerPoints, std::vector<std::vector<FPoint2D> >& orPointGroups) const; /** Get the data values. If stacked or percent, you will get cumulated data. @param iValueAxis The input value axis. @param iDataIndex The data index. @param iGroupId The group ID. @return The data value */ double hGetCumulateData(EnumValueAxis iValueAxis, Int32 iDataIndex, Int32 iGroupId) const; void hGenerateTotalLabelsByAxis(EnumValueAxis iValueAxisIndex, GraphCollectionObject::Ptr iTotalCollectionPtr, const std::vector<std::vector<Rect2D> >& irMarkerRectangleMatrix); TextObject::Ptr CreateTotalLabel(const EnumValueAxis iValueAxis, const Int32 iGroupId, GraphCollectionObject::Ptr iTotalCollectionPtr); const Int32 GetUpmostIndexByValueAxisAndGroup(const EnumValueAxis iValueAxis, const Int32 iGroupId) const; //void MoveLabel(Int32 iGroupId, TextObject::Ptr iTextObjectPtr, const Point2D& irMax, const Point2D& irMin, Int32 iInfoIndex); virtual void hMoveDataLabel(TextObject* ipText, const Rect2D& irRefRect, Int32 iSeriesIndex); bool mIsDualAxis; bool mShowCumulate; bool mShowTotal; /// Data for Y1 and Y2, cumulate or not std::vector<double> mCumulateData[2]; /// Series count for each axis Int32 mSeriesNumber[2]; std::vector<RadarSeriesInfo> mRadarSeriesInfo; ///< Series information for Radar. }; inline double RadarPlot::hGetCumulateData(EnumValueAxis iValueAxis, Int32 iDataIndex, Int32 iGroupId) const { return mCumulateData[iValueAxis][iGroupId * mSeriesNumber[iValueAxis] + iDataIndex]; } } #endif
78dd1388c5a58d97e1a8a2cd66010430fa539cba
0660666bfa3b4ff4bcf78970ce47c8a482eb0399
/Pies.h
c66891c0f9bfd8e13b942b86dac446abae6efa5d
[]
no_license
heymarc3lina/Tamagochiv2
13c3b7030a66ca883fd6b46e3cd171081797f884
9fe134dcc5ea634d8c528de09fe0f75e1375d387
refs/heads/master
2021-01-05T18:32:05.567549
2020-02-17T12:38:23
2020-02-17T12:38:23
241,103,795
0
0
null
null
null
null
UTF-8
C++
false
false
385
h
#ifndef PIES_H_ #define PIES_H_ #include "Zwierzatko.h" class Pies : public virtual Zwierzatko { public: const string rodzajZwierzatka = "Pies"; Pies(string nazwa); string getRodzajZwierzatka(); void specjalnaUmiejetnosc(); void dajGlos(); void rysujZwierzatko(); void pobawSieObrazek(); void dajJesc(); Pies& operator=(const Pies& pies); //~Pies() = deafult; }; #endif
[ "vggg" ]
vggg
73a6eb90136e28956c9fbdf479335c18c52a1a4d
2a64c259fdde52c1405a9c867260df995a54c931
/hackerearth/jan21easy/b.cpp
5497bf42ae8cb776026ab7591336b3d5efc68791
[]
no_license
arjitkansal/CP-contests
dab952af7624552e101701764cac8a29a5504435
05573e6a7096505029ef1ae06fc0e6f430f50848
refs/heads/master
2023-06-21T17:38:22.368174
2021-08-08T17:40:42
2021-08-08T17:40:42
310,842,153
1
1
null
null
null
null
UTF-8
C++
false
false
3,096
cpp
#include<bits/stdc++.h> #include <ext/pb_ds/assoc_container.hpp> using namespace __gnu_pbds; #define mod ((int)1e9+7) #define lim 1000000000000000007 #define lim1 18446744073709551615 //Unsigned #define sq(a) ((a)*(a)) #define all(v) v.begin(),v.end() #define rall(v) v.rbegin(),v.rend() #define mms(v,i) memset(v,i,sizeof(v)) #define pb push_back #define pf push_front #define ppb pop_back #define ppf pop_front #define REP(i,a,b) for (int i = a; i <= b; i++) #define REPN(i,a,b) for (int i = a; i >= b; i--) using namespace std; typedef long long int ll; typedef unsigned long long int ull; typedef pair<int,int> pi; typedef pair<ll,ll> PL; typedef pair<ll,int> PLI; typedef pair<int,ll> PIL; typedef pair<int,pair<int,int> > pii; typedef pair<double,double> pdd; typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> indexed_set; ll power(ll a,ll b) { a %= mod; ll res=1; while(b){ if(b%2==1) res=(res*a)%mod; a=(a*a)%mod; b>>=1; } return res; } ll gcdll(ll a,ll b) { if (b==0) return a; return gcdll(b,a%b); } int gcd(int a,int b) { if (b==0) return a; return gcd(b,a%b); } struct custom_hash { static uint64_t splitmix64(uint64_t x) { // http://xorshift.di.unimi.it/splitmix64.c x += 0x9e3779b97f4a7c15; x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9; x = (x ^ (x >> 27)) * 0x94d049bb133111eb; return x ^ (x >> 31); } size_t operator()(uint64_t x) const { static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count(); return splitmix64(x + FIXED_RANDOM); } }; const int N = (int)1e5+5; const int M = (int)3e3+5; const int Q = 301; const int logN = 19; int a[N], b[N]; vector<pi> temp; int cnt(int n, int m, int k) { int ret = 0; REP(i,1,n) { if(a[i] + b[1] <= k) { int lo = 1, hi = m, mi; while(lo < hi) { mi = 1 + (lo + hi)/2; if(a[i] + b[mi] <= k) { lo = mi; } else { hi = mi-1; } } ret += lo; } } return ret; } int find_kth_greatest_value(int n, int m, int k) { int lo = 0, hi = 3e8, mi; while(lo < hi) { mi = (lo + hi)/2; if(cnt(n,m,mi)>=k) { hi = mi; } else { lo = mi+1; } } return lo; } void solve() { int n,m; cin >> n >> m; assert(n*m < 5e8); REP(i,1,n) { cin >> a[i]; } REP(i,1,m) { cin >> b[i]; } int x,y; cin >> x >> y; int gx = find_kth_greatest_value(n,m,x); int gy = find_kth_greatest_value(n,m,y); REP(i,1,n) { REP(j,1,m) { if(a[i]+b[j]>gx && a[i]+b[j]<gy) { temp.pb({i,j}); } } } cout << temp.size() << "\n"; for(pi it : temp) { cout << "(" << it.first << "," << it.second << ") "; } } int main() { //freopen("output.txt","r",stdin); //freopen("output.txt","w",stdout); ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0); int T=1; // cin>>T; REP(TC,1,T) { //cout<<"Case #"<<TC<<": "; solve(); // cout<<"\n"; } }
97d27fb84de2f40118ebd1329f84f46f6f3986d8
a46e3ab5260c819e2b1a20343205b248a76314f3
/constr_test2.cpp
7754a0997b05ca639e2ba3ca9ecff3a363681bc5
[]
no_license
albertz/playground
97ea882eb077e341c69f9e593918d38f89f8bc64
f30c6330d855056f1756eeb558aa51fe72040c4e
refs/heads/master
2023-08-16T16:33:01.780047
2023-07-31T11:46:58
2023-07-31T11:46:58
3,687,829
10
3
null
null
null
null
UTF-8
C++
false
false
387
cpp
// demonstrating non-determinism of constructor execution order // http://stackoverflow.com/questions/8433484/c-static-initialization-vs-attribute-constructor/8433525#8433525 // http://llvm.org/bugs/show_bug.cgi?id=11521 #include <stdio.h> struct Foo { Foo() { printf("foo\n"); } }; static Foo foo; __attribute__((constructor)) static void _bar() { printf("bar\n"); } int main() {}
d4307ac96d7ef91d3c095678f7a025b92dc5bae8
529a4f10d008553636fb36a087684297cebee88e
/algorithm/cgal/ComputeImplicitVolume.h
01ac5584e8fafabde02aedef49e95683e7f952c8
[ "MIT" ]
permissive
jsxcad/JSxCAD
fba3f55a5b442d078814fc727f01c5b18e03545e
962689c323d29b4ef97ec9fcc95218e6ec011a51
refs/heads/master
2023-08-09T17:58:35.062711
2023-08-03T14:41:52
2023-08-03T14:41:52
173,755,199
36
13
MIT
2023-09-11T15:07:13
2019-03-04T13:59:33
JavaScript
UTF-8
C++
false
false
1,693
h
int ComputeImplicitVolume(Geometry* geometry, emscripten::val op, double radius, double angular_bound, double radius_bound, double distance_bound, double error_bound) { typedef CGAL::Surface_mesh_default_triangulation_3 Tr; // c2t3 typedef CGAL::Complex_2_in_triangulation_3<Tr> C2t3; typedef Tr::Geom_traits GT; typedef GT::Sphere_3 Sphere_3; typedef GT::Point_3 Point_3; typedef GT::FT FT; typedef FT (*Function)(Point_3); typedef CGAL::Implicit_surface_3<GT, Function> Surface_3; typedef CGAL::Surface_mesh<Point_3> Epick_Surface_mesh; Tr tr; // 3D-Delaunay triangulation C2t3 c2t3(tr); // 2D-complex in 3D-Delaunay triangulation // defining the surface auto thunk = [&](const Point_3& p) { return FT(op(CGAL::to_double(p.x()), CGAL::to_double(p.y()), CGAL::to_double(p.z())) .as<double>()); }; CGAL::get_default_random() = CGAL::Random(0); std::srand(0); Surface_3 surface( thunk, // pointer to function Sphere_3(CGAL::ORIGIN, radius * radius)); // bounding sphere CGAL::Surface_mesh_default_criteria_3<Tr> criteria( angular_bound, // angular bound radius_bound, // radius bound distance_bound); // distance bound // meshing surface CGAL::make_surface_mesh(c2t3, surface, criteria, CGAL::Manifold_tag()); Epick_Surface_mesh epick_mesh; CGAL::facets_in_complex_2_to_triangle_mesh(c2t3, epick_mesh); int target = geometry->add(GEOMETRY_MESH); copy_face_graph(epick_mesh, geometry->mesh(target)); geometry->setIdentityTransform(target); return STATUS_OK; }
5b675c6bea4eeb3ce55e6f2dc1fe11ff41db734e
6c1d1b8949136a5f7499390110dcafd202b8ccaf
/spoj BLINNET.cpp
f0c255b402208557601b2cf9aa1be433a636271f
[]
no_license
tanvir14012/Sphere-Online-Judge-My_Solutions
34c0a7b7dd487316eee0f53a8a9a880ba2632d32
fba6efd834cc01a6fca78a5f91011c1435d01fcf
refs/heads/master
2020-06-14T01:23:46.840037
2019-07-02T09:14:21
2019-07-02T09:14:21
194,849,573
2
0
null
null
null
null
UTF-8
C++
false
false
2,575
cpp
#include<bits/stdc++.h> using namespace std; class DisjointSet { int nodes,*parent,*ranks; public: DisjointSet(int n) { nodes = n; parent = new int[n+1]; ranks = new int[n+1]; for(int i = 0; i<=n; i++) { parent[i] = i; ranks[i] = 0; } } int find(int u) { if(parent[u] != u) { parent[u] = find(parent[u]);///find + path compression } return parent[u]; } void merge(int u,int v) { int x,y; x = find(u); y = find(v); if(ranks[x]>ranks[y]) { parent[y] = x; } else { parent[x] = y; } if(ranks[x] == ranks[y]) { ranks[y]++; } } }; class Graph { int V; list<pair<pair<int,int>,int> >edges; public: Graph(int V) { this->V = V; } void addEdge(int u,int v,int w) { edges.push_back({{u,v},w}); } struct compare { bool operator ()(const pair<pair<int,int>,int>&a, pair<pair<int,int>,int>& b)const { if(a.second < b.second) { return true; } return false; } } comparator; long kruskalMST() { int u,v,set_u,set_v; long mst_weight = 0; list<pair<pair<int,int>,int>>::iterator it; edges.sort(comparator); DisjointSet ds(V); for(it = edges.begin(); it!=edges.end(); it++) { u = it->first.first; v = it->first.second; set_u = ds.find(u); set_v = ds.find(v); if(set_u != set_v) { //cout<<u<<"---"<<v<<endl; mst_weight += it->second; ds.merge(set_u,set_v); } } return mst_weight; } }; int main() { int t,n,temp,v,w; scanf("%d",&t); while(t--) { scanf("%d",&n); Graph g(n); for(int i = 1; i<=n; i++) { scanf("%*s%d",&temp); while(temp--) { scanf("%d%d",&v,&w); g.addEdge(i,v,w); } } printf("%ld\n",g.kruskalMST()); } return 0; } /** Tusher roy's video for disjoint set and video for checking cycle in a graph(using disjoint set) this is direct kruskal, learned from geeksforgeeks. I modified to use std::list<> and used std::list<>::sort(compare) and made a custom comparator object. */
a10057d937b42fff4ad41b49dcbd6e9cbf1cdc5b
c8e80e5d4fb5e7a8bf72b03b33b7e0a76bfc7ef1
/Movement.cpp
965e963411aab05fc894bb2a607b83ca93fe1229
[]
no_license
GuardianOfGalaxy/Battleship
5fea09d0d10f5d7d26008af32553af0de3ea0de7
35cc0fd2881a8f9968208035ae26e5a7904fd2d7
refs/heads/master
2020-12-11T01:56:35.144926
2016-05-08T16:39:57
2016-05-08T16:39:57
58,276,769
0
0
null
2016-05-07T18:12:57
2016-05-07T17:24:31
C++
UTF-8
C++
false
false
652
cpp
#include "Movement.h" Movement::Movement(int x, int y, Direction directX, Direction directY): move(x,y), directionX(directX), directionY(directY), increment(1) { } Movement::Movement(Move obj, Direction directX, Direction directY) : move(obj), directionX(directX), directionY(directY), increment(1) { } int Movement::getMovementX()const { return static_cast<int>(move.getMoveX() + directionX * increment); } int Movement::getMovementY() const { return static_cast<int>(move.getMoveY() + directionY * increment); } const Movement operator++(Movement & movement, int) { Movement oldMovement = movement; movement.increment++; return oldMovement; }
071867278c9ee1d13f96311ab48fc303a9fa866d
be3e69e14e3f9296d0668e0508a1f8127369854a
/src/PrimaryGeneratorAction.cc
24c4ddddec9ddb13d47962e4d4a855868a982015
[]
no_license
Almanzam/ge-detector2
e1569f0bb395220254c0dceebefb8a941737bf56
7e50bb179f08491b96123c8d0ee276d461e5fa28
refs/heads/master
2021-05-11T15:06:20.584979
2019-05-22T18:20:06
2019-05-22T18:20:06
117,717,106
0
1
null
null
null
null
UTF-8
C++
false
false
1,498
cc
#include "PrimaryGeneratorAction.hh" // GEANT4 // #include "globals.hh" #include "G4Event.hh" #include "G4ParticleTable.hh" #include "G4ParticleDefinition.hh" #include "G4LogicalVolumeStore.hh" #include "G4LogicalVolume.hh" #include "G4Box.hh" #include "G4RunManager.hh" #include "G4ParticleGun.hh" #include "G4GeneralParticleSource.hh" #include "G4SystemOfUnits.hh" #include "Randomize.hh" #include "G4ios.hh" PrimaryGeneratorAction::PrimaryGeneratorAction() : G4VUserPrimaryGeneratorAction() { //particle_gun = new G4ParticleGun(); particle_source = new G4GeneralParticleSource(); G4ParticleTable *particle_table = G4ParticleTable::GetParticleTable(); //G4ParticleDefinition *particle = particle_table->FindParticle("gamma"); //particle_source->SetParticleDefinition(particle); } PrimaryGeneratorAction::~PrimaryGeneratorAction() { delete particle_source; } void PrimaryGeneratorAction::GeneratePrimaries(G4Event *event) { //double xdir = 0;//.25*G4UniformRand()*(G4UniformRand()-.5); //double ydir = 0;//.25*G4UniformRand()*(G4UniformRand()-.5); //double engvar = 0;//.25*G4UniformRand()*(G4UniformRand()-.5); //particle_gun->SetParticleEnergy((1.332+engvar) * MeV); //particle_gun->SetParticleMomentumDirection(G4ThreeVector // (xdir, ydir, -1)); //particle_gun->SetParticlePosition(G4ThreeVector // (1*cm,1*cm, 6 * cm)); particle_source->GeneratePrimaryVertex(event); }
eaea72c30f21469e2977ba2af3a6ab806c21cbce
e267e5b2ca55b05ebc36918ecf0e4d23bf163c7c
/leetcode/020-Valid-Parenthese/jonas.cpp
48fde695cd59342790009222e049584a61a11a41
[]
no_license
praesepe/study
b5a47b465bdf5603d6f810a74815c33fe051c1b7
9b8cc59d2d49be07ff0a39dfbeb2f348db4973f4
refs/heads/master
2021-01-22T21:21:53.050156
2017-11-05T09:51:56
2017-11-05T09:51:56
85,413,438
0
0
null
null
null
null
UTF-8
C++
false
false
617
cpp
class Solution { protected: stack<char> sta; const char pop() { if (this->sta.empty()) { return ' '; } char c = sta.top(); sta.pop(); return c; } public: bool isValid(string s) { for(char& c: s) { switch(c) { case '{': case '[': case '(': this->sta.push(c); break; case '}': if (this->pop() != '{') { return false; } break; case ']': if (this->pop() != '[') { return false; } break; case ')': if (this->pop() != '(') { return false; } break; } } return this->sta.empty(); } };