本文整理汇总了C++中GetFullName函数的典型用法代码示例。如果您正苦于以下问题:C++ GetFullName函数的具体用法?C++ GetFullName怎么用?C++ GetFullName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetFullName函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: GetFirstKey
bool wxRegKey::Copy(wxRegKey& keyDst)
{
bool ok = true;
// copy all sub keys to the new location
wxString strKey;
long lIndex;
bool bCont = GetFirstKey(strKey, lIndex);
while ( ok && bCont ) {
wxRegKey key(*this, strKey);
wxString keyName;
keyName << GetFullName(&keyDst) << REG_SEPARATOR << strKey;
ok = key.Copy(keyName);
if ( ok )
bCont = GetNextKey(strKey, lIndex);
else
wxLogError(_("Failed to copy the registry subkey '%s' to '%s'."),
GetFullName(&key), keyName.c_str());
}
// copy all values
wxString strVal;
bCont = GetFirstValue(strVal, lIndex);
while ( ok && bCont ) {
ok = CopyValue(strVal, keyDst);
if ( !ok ) {
wxLogSysError(m_dwLastError,
_("Failed to copy registry value '%s'"),
strVal.c_str());
}
else {
bCont = GetNextValue(strVal, lIndex);
}
}
if ( !ok ) {
wxLogError(_("Failed to copy the contents of registry key '%s' to '%s'."),
GetFullName(this), GetFullName(&keyDst));
}
return ok;
}
开发者ID:DumaGit,项目名称:winsparkle,代码行数:45,代码来源:registry.cpp
示例2: PostTypeLoadException
void PostTypeLoadException(LPCUTF8 pNameSpace, LPCUTF8 pTypeName, LPCUTF8 pMethodName,
UINT resIDWhy, OBJECTREF *pThrowable)
{
LPCWSTR wszFullName = NULL;
GetFullName(&wszFullName); // ignore return hr
::PostTypeLoadException(pNameSpace, pTypeName, wszFullName,
pMethodName, resIDWhy, pThrowable);
}
开发者ID:ArildF,项目名称:masters,代码行数:9,代码来源:assembly.hpp
示例3: GetFullName
wxString PHPEntityClass::FormatPhpDoc() const
{
wxString doc;
doc << "/**\n"
<< " * @class " << GetFullName() << "\n"
<< " * @brief \n"
<< " */";
return doc;
}
开发者ID:05storm26,项目名称:codelite,代码行数:9,代码来源:PHPEntityClass.cpp
示例4: Cmd_GetLastTransactionItem_Execute
static bool Cmd_GetLastTransactionItem_Execute(COMMAND_ARGS)
{
TESForm* form = NULL;
GetLastTransactionInfo(&form, NULL);
UInt32* refResult = (UInt32*)result;
*refResult = form ? form->refID : 0;
DEBUG_PRINT("GetLastTransactionItem >> %s", GetFullName(form));
return true;
}
开发者ID:679565,项目名称:SkyrimOnline,代码行数:9,代码来源:Commands_Menu.cpp
示例5: GetFullName
bool ldl_datablock::ContstructFullName(
char *szName,
ldl_datablock *dbParent,
char *result )
{
GetFullName(result);
return true;
}
开发者ID:jleclanche,项目名称:darkdust-ctp2,代码行数:9,代码来源:ldl_data.cpp
示例6: GetFullName
wxString PHPEntityClass::FormatPhpDoc(const CommentConfigData& data) const
{
wxString doc;
doc << data.GetCommentBlockPrefix() << "\n"
<< " * @class " << GetFullName() << "\n"
<< " * @brief \n"
<< " */";
return doc;
}
开发者ID:MaartenBent,项目名称:codelite,代码行数:9,代码来源:PHPEntityClass.cpp
示例7: wxLogError
// ----------------------------------------------------------------------------
// delete keys/values
// ----------------------------------------------------------------------------
bool wxRegKey::DeleteSelf()
{
{
wxLogNull nolog;
if ( !Open() ) {
// it already doesn't exist - ok!
return true;
}
}
// prevent a buggy program from erasing one of the root registry keys or an
// immediate subkey (i.e. one which doesn't have '\\' inside) of any other
// key except HKCR (HKCR has some "deleteable" subkeys)
if ( m_strKey.empty() ||
((m_hRootKey != (WXHKEY) aStdKeys[HKCR].hkey) &&
(m_strKey.Find(REG_SEPARATOR) == wxNOT_FOUND)) ) {
wxLogError(_("Registry key '%s' is needed for normal system operation,\ndeleting it will leave your system in unusable state:\noperation aborted."),
GetFullName(this));
return false;
}
// we can't delete keys while enumerating because it confuses GetNextKey, so
// we first save the key names and then delete them all
wxArrayString astrSubkeys;
wxString strKey;
long lIndex;
bool bCont = GetFirstKey(strKey, lIndex);
while ( bCont ) {
astrSubkeys.Add(strKey);
bCont = GetNextKey(strKey, lIndex);
}
size_t nKeyCount = astrSubkeys.Count();
for ( size_t nKey = 0; nKey < nKeyCount; nKey++ ) {
wxRegKey key(*this, astrSubkeys[nKey]);
if ( !key.DeleteSelf() )
return false;
}
// now delete this key itself
Close();
m_dwLastError = RegDeleteKey((HKEY) m_hRootKey, m_strKey.t_str());
// deleting a key which doesn't exist is not considered an error
if ( m_dwLastError != ERROR_SUCCESS &&
m_dwLastError != ERROR_FILE_NOT_FOUND ) {
wxLogSysError(m_dwLastError, _("Can't delete key '%s'"),
GetName().c_str());
return false;
}
return true;
}
开发者ID:DumaGit,项目名称:winsparkle,代码行数:59,代码来源:registry.cpp
示例8: guard
VPackage* VMemberBase::GetPackage() const
{
guard(VMemberBase::GetPackage);
for (const VMemberBase* p = this; p; p = p->Outer)
if (p->MemberType == MEMBER_Package)
return (VPackage*)p;
Sys_Error("Member object %s not in a package", *GetFullName());
return NULL;
unguard;
}
开发者ID:JoshEngebretson,项目名称:Mongrel,代码行数:10,代码来源:vc_member.cpp
示例9: indentString
void PHPEntityNamespace::PrintStdout(int indent) const
{
wxString indentString(' ', indent);
wxPrintf("%sNamespace name: %s\n", indentString, GetFullName());
PHPEntityBase::List_t::const_iterator iter = m_children.begin();
for(; iter != m_children.end(); ++iter) {
(*iter)->PrintStdout(indent + 4);
}
}
开发者ID:MaartenBent,项目名称:codelite,代码行数:10,代码来源:PHPEntityNamespace.cpp
示例10: UE_LOG
void AAmbitionOfNobunagaPlayerController::ServerClearHeroAction_Implementation(AHeroCharacter* hero,
const FHeroAction& action)
{
if (Role < ROLE_Authority)
{
UE_LOG(LogAmbitionOfNobunaga, Log, TEXT("%s ClearHeroAction"), *GetFullName());
AAONGameState* ags = Cast<AAONGameState>(UGameplayStatics::GetGameState(GetWorld()));
ags->ClearHeroAction(hero, action);
}
}
开发者ID:damody,项目名称:AmbitionOfNobunaga,代码行数:10,代码来源:AmbitionOfNobunagaPlayerController.cpp
示例11: DEBUG
void CClient::ReadLine(const CString& sData) {
CString sLine = sData;
sLine.TrimRight("\n\r");
DEBUG("(" << GetFullName() << ") CLI -> ZNC [" << sLine << "]");
if (IsAttached()) {
NETWORKMODULECALL(OnUserRaw(sLine), m_pUser, m_pNetwork, this, return);
} else {
开发者ID:ex0a,项目名称:znc,代码行数:10,代码来源:Client.cpp
示例12: GetFullName
void PHPEntityNamespace::Store(PHPLookupTable* lookup)
{
try {
// A namespace, unlike other PHP entities, can be defined in various files
// and in multiple locations. This means, that by definition, there can be multiple entries
// for the same namespace, however, since our relations in the database is ID based,
// we try to locate the namespace in the DB before we attempt to insert it
wxSQLite3Database& db = lookup->Database();
{
wxSQLite3Statement statement =
db.PrepareStatement("SELECT * FROM SCOPE_TABLE WHERE FULLNAME=:FULLNAME LIMIT 1");
statement.Bind(statement.GetParamIndex(":FULLNAME"), GetFullName());
wxSQLite3ResultSet res = statement.ExecuteQuery();
if(res.NextRow()) {
// we have a match, update this item database ID to match
// what we have found in the database
PHPEntityNamespace ns;
ns.FromResultSet(res);
SetDbId(ns.GetDbId());
return;
}
}
// Get the 'parent' namespace part
wxString parentPath = GetFullName().BeforeLast('\\');
DoEnsureNamespacePathExists(db, parentPath);
{
wxSQLite3Statement statement = db.PrepareStatement(
"INSERT INTO SCOPE_TABLE (ID, SCOPE_TYPE, SCOPE_ID, NAME, FULLNAME, LINE_NUMBER, FILE_NAME) "
"VALUES (NULL, 0, -1, :NAME, :FULLNAME, :LINE_NUMBER, :FILE_NAME)");
statement.Bind(statement.GetParamIndex(":NAME"), GetShortName());
statement.Bind(statement.GetParamIndex(":FULLNAME"), GetFullName());
statement.Bind(statement.GetParamIndex(":LINE_NUMBER"), GetLine());
statement.Bind(statement.GetParamIndex(":FILE_NAME"), GetFilename().GetFullPath());
statement.ExecuteUpdate();
SetDbId(db.GetLastRowId());
}
} catch(wxSQLite3Exception& exc) {
wxUnusedVar(exc);
}
}
开发者ID:ilius,项目名称:codelite,代码行数:42,代码来源:PHPEntityNamespace.cpp
示例13: OnRegister
void UActorComponent::ExecuteRegisterEvents()
{
if(!bRegistered)
{
OnRegister();
checkf(bRegistered, TEXT("Failed to route OnRegister (%s)"), *GetFullName());
}
if(FApp::CanEverRender() && !bRenderStateCreated && World->Scene)
{
CreateRenderState_Concurrent();
checkf(bRenderStateCreated, TEXT("Failed to route CreateRenderState_Concurrent (%s)"), *GetFullName());
}
if(!bPhysicsStateCreated && World->GetPhysicsScene() && ShouldCreatePhysicsState())
{
CreatePhysicsState();
checkf(bPhysicsStateCreated, TEXT("Failed to route CreatePhysicsState (%s)"), *GetFullName());
}
}
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:20,代码来源:ActorComponent.cpp
示例14: TRACE
void LimitDecrementerBody::operator() (const Body::InputType1& input, Node::MultiNodeContinueType::output_ports_type& output)
{
imageWrapperIn_ = dynamic_cast<ImageMessage*>(input);
TRACE(GetFullName() + ": " + imageWrapperIn_->GetMetaData().GetFrameNumber());
BeforeProcess();
Process();
AfterProcess();
std::get<OUTPUT_LIMITER>(output).try_put(tbb::flow::continue_msg());
}
开发者ID:aodkrisda,项目名称:face-gesture-api,代码行数:11,代码来源:LimitDecrementerBody.cpp
示例15: HookRegQueryValueEx
LONG
HookRegQueryValueEx(
HKEY hkey,
PCHAR lpszValueName,
PDWORD lpdwReserved,
PDWORD lpdwType,
PBYTE lpbData,
PDWORD lpcbData
)
{
LONG retval;
int i, len;
CHAR fullname[NAMELEN], data[DATASIZE], tmp[2*BINARYLEN], process[PROCESSLEN];
GetFullName( hkey, NULL, lpszValueName, fullname );
retval = RealRegQueryValueEx( hkey, lpszValueName, lpdwReserved,
lpdwType, lpbData, lpcbData );
data[0] = 0;
if( retval == ERROR_SUCCESS && lpbData ) {
if( !lpdwType || *lpdwType == REG_BINARY ) {
if( *lpcbData > BINARYLEN ) len = BINARYLEN;
else len = *lpcbData;
for( i = 0; i < len; i++ ) {
sprintf( tmp, "%X ", lpbData[i]);
strcat( data, tmp );
}
if( *lpcbData > BINARYLEN) strcat( data, "...");
} else if( *lpdwType == REG_SZ ) {
strcpy( data, "\"");
strncat( data, lpbData, STRINGLEN );
if( strlen( lpbData ) > STRINGLEN )
strcat( data, "..." );
strcat( data, "\"");
} else if( *lpdwType == REG_DWORD ) {
sprintf( data, "0x%X", *(PDWORD) lpbData );
}
}
if( ErrorString( retval ) && FilterDef.logreads) {
LogRecord( "%s\tQueryValueEx\t%s\t%s\t%s",
GetProcess( process ), fullname, ErrorString( retval ), data);
}
return retval;
}
开发者ID:bekdepostan,项目名称:hf-2011,代码行数:54,代码来源:Regmon.c
示例16: GetGroupLine
void ConfigGroup::Rename(const wxString& newName)
{
m_strName = newName;
LineList *line = GetGroupLine();
wxString strFullName;
strFullName << wxT("[") << (GetFullName().c_str() + 1) << wxT("]"); // +1: no '/'
line->SetText(strFullName);
SetDirty();
}
开发者ID:TimofonicJunkRoom,项目名称:plucker,代码行数:11,代码来源:fileconf.cpp
示例17: Cmd_GetBaseObject_Execute
bool Cmd_GetBaseObject_Execute(COMMAND_ARGS)
{
UInt32* refResult = (UInt32*)result;
*refResult = 0;
if (thisObj && thisObj->baseForm) {
*refResult = thisObj->baseForm->refID;
if (IsConsoleMode())
Console_Print("GetBaseObject >> %08x (%s)", thisObj->baseForm->refID, GetFullName(thisObj->baseForm));
}
return true;
}
开发者ID:robojan,项目名称:RealPipboyNV,代码行数:12,代码来源:Commands_MiscRef.cpp
示例18: checkf
void UEdGraph::GetAllChildrenGraphs(TArray<UEdGraph*>& Graphs) const
{
#if WITH_EDITORONLY_DATA
for (int32 i = 0; i < SubGraphs.Num(); ++i)
{
UEdGraph* Graph = SubGraphs[i];
checkf(Graph, *FString::Printf(TEXT("%s has invalid SubGraph array entry at %d"), *GetFullName(), i));
Graphs.Add(Graph);
Graph->GetAllChildrenGraphs(Graphs);
}
#endif // WITH_EDITORONLY_DATA
}
开发者ID:Foreven,项目名称:Unreal4-1,代码行数:12,代码来源:EdGraph.cpp
示例19: FReplaceBlueprintWithClassHelper
void UClassProperty::CheckValidObject(void* Value) const
{
#if WITH_EDITOR
// Ugly hack to replace Blueprint references with Class references.
struct FReplaceBlueprintWithClassHelper
{
bool bShouldReplace;
UClass* BlueprintClass;
UClassProperty* BPGeneratedClassProp;
FReplaceBlueprintWithClassHelper() : bShouldReplace(false), BlueprintClass(NULL), BPGeneratedClassProp(NULL)
{
GConfig->GetBool(TEXT("EditoronlyBP"), TEXT("bReplaceBlueprintWithClass"), bShouldReplace, GEditorIni);
if (bShouldReplace)
{
BlueprintClass = FindObject<UClass>(NULL, TEXT("/Script/Engine.Blueprint"));
ensure(BlueprintClass);
BPGeneratedClassProp = BlueprintClass ? FindField<UClassProperty>(BlueprintClass, TEXT("GeneratedClass")) : NULL;
ensure(BPGeneratedClassProp);
}
}
bool CanReplace() const
{
return bShouldReplace && BlueprintClass && BPGeneratedClassProp;
}
};
static FReplaceBlueprintWithClassHelper Helper;
const UObject* Object = GetObjectPropertyValue(Value);
Super::CheckValidObject(Value);
const UObject* CurrentObject = GetObjectPropertyValue(Value);
if (Helper.CanReplace()
&& !CurrentObject
&& Object
&& Object->IsA(Helper.BlueprintClass)
&& (UObject::StaticClass() == MetaClass))
{
UObject* RecoveredObject = Helper.BPGeneratedClassProp->GetPropertyValue_InContainer(Object);
SetObjectPropertyValue(Value, RecoveredObject);
UE_LOG(LogProperty, Log,
TEXT("Blueprint '%s' is replaced with class '%s' in property '%s'"),
*Object->GetFullName(),
*RecoveredObject->GetFullName(),
*GetFullName());
}
#else // WITH_EDITOR
Super::CheckValidObject(Value);
#endif // WITH_EDITOR
}
开发者ID:Foreven,项目名称:Unreal4-1,代码行数:52,代码来源:PropertyClass.cpp
示例20: Cmd_GetBaseForm_Execute
bool Cmd_GetBaseForm_Execute(COMMAND_ARGS) // For LeveledForm, find real baseForm, not temporary one
{
UInt32* refResult = (UInt32*)result;
*refResult = 0;
TESForm* baseForm = GetPermanentBaseForm(thisObj);
if (baseForm) {
*refResult = baseForm->refID;
if (IsConsoleMode())
Console_Print("GetBaseForm >> %08x (%s)", baseForm->refID, GetFullName(baseForm));
}
return true;
}
开发者ID:robojan,项目名称:RealPipboyNV,代码行数:13,代码来源:Commands_MiscRef.cpp
注:本文中的GetFullName函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论