Lines Matching refs:type

66 sal_Bool CorbaType::isNestedTypeByName(const ::rtl::OString& type)  in isNestedTypeByName()  argument
70 sal_Int32 i = type.lastIndexOf('/'); in isNestedTypeByName()
74 OString outerTypeName(type.copy(0, i)); in isNestedTypeByName()
376 void CorbaType::dumpNameSpace(FileStream& o, sal_Bool bOpen, sal_Bool bFull, const OString& type) in dumpNameSpace() argument
378 OString typeName(type); in dumpNameSpace()
487 OString CorbaType::getTypeClass(const OString& type, sal_Bool bCStyle) in getTypeClass() argument
489 OString typeName = ( !type.isEmpty() ? type : m_typeName); in getTypeClass()
492 if ( !type.isEmpty() ) in getTypeClass()
494 typeName = type; in getTypeClass()
534 if (type.equals("long")) in getTypeClass()
536 if (type.equals("short")) in getTypeClass()
538 if (type.equals("hyper")) in getTypeClass()
540 if (type.equals("string")) in getTypeClass()
542 if (type.equals("boolean")) in getTypeClass()
544 if (type.equals("char")) in getTypeClass()
546 if (type.equals("byte")) in getTypeClass()
548 if (type.equals("any")) in getTypeClass()
550 if (type.equals("type")) in getTypeClass()
552 if (type.equals("float")) in getTypeClass()
554 if (type.equals("double")) in getTypeClass()
556 if (type.equals("void")) in getTypeClass()
558 if (type.equals("unsigned long")) in getTypeClass()
560 if (type.equals("unsigned short")) in getTypeClass()
562 if (type.equals("unsigned hyper")) in getTypeClass()
571 OString CorbaType::printUnoType(const OString& type, sal_Bool bConst, sal_Bool bRef, sal_Bool bNati… in printUnoType() argument
575 OString sType(checkRealBaseType(type, sal_True)); in printUnoType()
579 OString relType = (index > 0 ? (sType).copy(index+1) : type); in printUnoType()
606 throw CannotDumpException("Unknown type '" + relType + "', incomplete type library. ("+type+")"); in printUnoType()
626 void CorbaType::dumpUnoType(FileStream& o, const OString& type, in dumpUnoType() argument
630 OString ret = printUnoType(type, bConst, bRef, bNative); in dumpUnoType()
634 OString CorbaType::printCorbaType(const OString& type, sal_Bool bConst, sal_Bool bRef) in printCorbaType() argument
639 OString sType(type); in printCorbaType()
644 OString relType = (index > 0 ? (sType).copy(index+1) : type); in printCorbaType()
680 throw CannotDumpException("Unknown type '" + relType + "', incomplete type library. ("+type+")"); in printCorbaType()
696 sal_Bool CorbaType::isPassedAsPointer(const OString& type) in isPassedAsPointer() argument
700 OString sType(checkSpecialCorbaType(type)); in isPassedAsPointer()
705 OString relType = (index > 0 ? (sType).copy(index+1) : type); in isPassedAsPointer()
711 sal_Int32 j = type.lastIndexOf('/'); in isPassedAsPointer()
713 fakeTest = type.copy(0, j+1)+"_faked_array_"+type.copy(j+1); in isPassedAsPointer()
770 sal_Bool CorbaType::isArray(const OString& type) in isArray() argument
774 OString sType(checkSpecialCorbaType(type)); in isArray()
779 OString relType = (index > 0 ? (sType).copy(index+1) : type); in isArray()
785 sal_Int32 j = type.lastIndexOf('/'); in isArray()
787 fakeTest = type.copy(0, j+1)+"_faked_array_"+type.copy(j+1); in isArray()
800 OString CorbaType::printCorbaParameter(const OString& type, sal_Bool bOut) in printCorbaParameter() argument
805 OString sType(type); in printCorbaParameter()
809 OString relType = (index > 0 ? (sType).copy(index+1) : type); in printCorbaParameter()
846 throw CannotDumpException("Unknown type '" + relType + "', incomplete type library. ("+type+")"); in printCorbaParameter()
860 void CorbaType::dumpCorbaType(FileStream& o, const OString& type, in dumpCorbaType() argument
864 OString ret = printCorbaType(type, bConst, bRef); in dumpCorbaType()
868 OString CorbaType::getUnoBaseType(const OString& type) in getUnoBaseType() argument
870 if (type.equals("long")) in getUnoBaseType()
872 if (type.equals("short")) in getUnoBaseType()
874 if (type.equals("hyper")) in getUnoBaseType()
876 if (type.equals("string")) in getUnoBaseType()
878 if (type.equals("boolean")) in getUnoBaseType()
880 if (type.equals("char")) in getUnoBaseType()
882 if (type.equals("byte")) in getUnoBaseType()
884 if (type.equals("any")) in getUnoBaseType()
886 if (type.equals("type")) in getUnoBaseType()
888 if (type.equals("float")) in getUnoBaseType()
890 if (type.equals("double")) in getUnoBaseType()
892 if (type.equals("octet")) in getUnoBaseType()
894 if (type.equals("void")) in getUnoBaseType()
895 return type; in getUnoBaseType()
896 if (type.equals("unsigned long")) in getUnoBaseType()
898 if (type.equals("unsigned short")) in getUnoBaseType()
900 if (type.equals("unsigned hyper")) in getUnoBaseType()
906 OString CorbaType::getCorbaBaseType(const OString& type) in getCorbaBaseType() argument
908 if (type.equals("long")) in getCorbaBaseType()
910 if (type.equals("short")) in getCorbaBaseType()
912 if (type.equals("hyper")) in getCorbaBaseType()
914 if (type.equals("string")) in getCorbaBaseType()
916 if (type.equals("boolean")) in getCorbaBaseType()
918 if (type.equals("char")) in getCorbaBaseType()
920 if (type.equals("byte")) in getCorbaBaseType()
922 if (type.equals("any")) in getCorbaBaseType()
924 if (type.equals("type")) in getCorbaBaseType()
926 if (type.equals("float")) in getCorbaBaseType()
928 if (type.equals("double")) in getCorbaBaseType()
930 if (type.equals("octet")) in getCorbaBaseType()
932 if (type.equals("void")) in getCorbaBaseType()
933 return type; in getCorbaBaseType()
934 if (type.equals("unsigned long")) in getCorbaBaseType()
936 if (type.equals("unsigned short")) in getCorbaBaseType()
938 if (type.equals("unsigned hyper")) in getCorbaBaseType()
947 OString type(checkSpecialCorbaType(typeName)); in dumpTypeInit() local
949 BASETYPE baseType = isBaseType(type); in dumpTypeInit()
966 dumpUnoType(o, type); in dumpTypeInit()
971 RTTypeClass typeClass = m_typeMgr.getTypeClass(type); in dumpTypeInit()
979 TypeReader reader(m_typeMgr.getTypeReader(type)); in dumpTypeInit()
983 sal_Int32 nPos = type.lastIndexOf( '/' ); in dumpTypeInit()
984 o << "(" << shortScopedName("", type, sal_False) in dumpTypeInit()
985 << "::" << type.copy( nPos != -1 ? nPos+1 : 0 ) in dumpTypeInit()
995 BASETYPE CorbaType::isBaseType(const OString& type) in isBaseType() argument
997 if (type.equals("long")) in isBaseType()
999 if (type.equals("short")) in isBaseType()
1001 if (type.equals("hyper")) in isBaseType()
1003 if (type.equals("string")) in isBaseType()
1005 if (type.equals("boolean")) in isBaseType()
1007 if (type.equals("char")) in isBaseType()
1009 if (type.equals("byte")) in isBaseType()
1011 if (type.equals("any")) in isBaseType()
1013 if (type.equals("float")) in isBaseType()
1015 if (type.equals("double")) in isBaseType()
1017 if (type.equals("void")) in isBaseType()
1019 if (type.equals("unsigned long")) in isBaseType()
1021 if (type.equals("unsigned short")) in isBaseType()
1023 if (type.equals("unsigned hyper")) in isBaseType()
1029 OString CorbaType::typeToIdentifier(const OString& type) in typeToIdentifier() argument
1031 sal_uInt32 index = type.lastIndexOf(']'); in typeToIdentifier()
1034 OString relType = (index > 0 ? ((OString)type).copy(index+1) : type); in typeToIdentifier()
1059 OString CorbaType::checkSpecialCorbaType(const OString& type) in checkSpecialCorbaType() argument
1061 OString baseType(type); in checkSpecialCorbaType()
1090 OString CorbaType::checkRealBaseType(const OString& type, sal_Bool bResolveTypeOnly) in checkRealBaseType() argument
1092 sal_uInt32 index = type.lastIndexOf(']'); in checkRealBaseType()
1093 OString baseType = (index > 0 ? ((OString)type).copy(index+1) : type); in checkRealBaseType()
1094 OString seqPrefix = (index > 0 ? ((OString)type).copy(0, index+1) : OString()); in checkRealBaseType()
2721 OString scopedName(const OString& scope, const OString& type, in scopedName() argument
2724 sal_Int32 nPos = type.lastIndexOf( '/' ); in scopedName()
2726 return type; in scopedName()
2729 return type.copy(nPos+1); in scopedName()
2731 OStringBuffer tmpBuf(type.getLength()*2); in scopedName()
2736 tmpBuf.append(type.getToken(0, '/', nPos)); in scopedName()
2745 OString shortScopedName(const OString& scope, const OString& type, in shortScopedName() argument
2748 sal_Int32 nPos = type.lastIndexOf( '/' ); in shortScopedName()
2759 OString tmpScp2(type.copy(0, nPos)); in shortScopedName()
2765 OString aScope( type.copy( 0, nPos ) ); in shortScopedName()