|
NCBI C++ ToolKit
|
Collaboration diagram for Application Framework:Classes | |
| class | ncbi::CNcbiToolkit_LogMessage |
| Logging message. More... | |
| class | ncbi::INcbiToolkit_LogHandler |
| Logging interface. More... | |
| class | CAppException |
| CAppException –. More... | |
| class | CNcbiApplicationGuard |
| class | CNcbiApplicationAPI |
| CNcbiApplicationAPI –. More... | |
| class | INcbiIdler |
| Interface for application idler. More... | |
| class | CDefaultIdler |
| Default idler. More... | |
| class | pair_base_member< Base, Member > |
| Template used for empty base class optimization. More... | |
| class | CBoolEnum< TEnum > |
| Template used to replace bool type arguments with some strict equivalent. More... | |
| struct | Creater< X > |
| Functor template for allocating object. More... | |
| struct | Deleter< X > |
| Functor template for deleting object. More... | |
| struct | ArrayDeleter< X > |
| Functor template for deleting array of objects. More... | |
| struct | CDeleter< X > |
| Functor template for the C language deallocation function, free(). More... | |
| class | AutoPtr< X, Del > |
| struct | AutoPtr< X, Del >::SSafeBoolTag |
| Bool operator for use in if() clause. More... | |
| class | AutoArray< X, Del > |
| AutoArray –. More... | |
| struct | AutoArray< X, Del >::SSafeBoolTag |
| Bool operator for use in if() clause. More... | |
| struct | SThrowOnNull< TValue > |
| class | CNullable< TValue, TNullToValue > |
| Template class allowing to store a value or null (unassigned) state. More... | |
| class | CStrictId< TKey, TStorage > |
| Template class for strict ID types. More... | |
| struct | SStrictId_Gi |
| Key structs must always be defined - they are used in aliasinfo.cpp. More... | |
| struct | SStrictId_Entrez |
| struct | SStrictId_Tax |
| class | CConstIdChecker< TId, id > |
| a helper template to enforce constness of argument to GI_CONST macro More... | |
| class | CRawPointer |
| Helper address class. More... | |
| class | CFastBuffer< KEmbeddedSize, TType > |
| class | CSafeFlags< Enum > |
| Support for safe enum flags. More... | |
| struct | CSafeFlags< Enum >::SSafeBoolTag |
| class | CNcbiActionGuard |
| CNcbiActionGuard class Executes registered callbacks on request or on destruction. More... | |
| class | CNcbiActionGuard::CAction_Base |
| class | CNcbiActionGuard::CAction< TFunc > |
| struct | hash< ncbi::CStrictId< TKey, TStorage > > |
| class | IPhoneHomePolicy |
| Interface class for Phone Home Policy. More... | |
Macros | |
| #define | NCBI_TOOLKIT_EXPORT |
| #define | CNcbiApplication CNcbiApplicationAPI |
| #define | NCBI_ESWITCH_DEFINED |
| #define | NCBI_EOWNERSHIP_DEFINED |
| NCBI_ESWITCH_DEFINED. More... | |
| #define | DECLARE_SAFE_BOOL_METHOD(Expr) |
| Support for safe bool operators. More... | |
| #define | DECLARE_OPERATOR_BOOL(Expr) DECLARE_SAFE_BOOL_METHOD(Expr) |
| Declaration of safe bool operator from boolean expression. More... | |
| #define | DECLARE_OPERATOR_BOOL_PTR(Ptr) DECLARE_OPERATOR_BOOL((Ptr) != 0) |
| Declaration of safe bool operator from pointer expression. More... | |
| #define | DECLARE_OPERATOR_BOOL_REF(Ref) DECLARE_OPERATOR_BOOL((Ref).NotNull()) |
| Declaration of safe bool operator from CRef<>/CConstRef<> expression. More... | |
| #define | OVERRIDE_OPERATOR_BOOL(TAncestorClass, NewBoolExpr) |
| Override the DECLARE_OPERATOR_BOOL, etc. More... | |
| #define | DEPRECATE_AUTO_PTR 1 |
| AutoPtr –. More... | |
| #define | ITERATE_CONST(Cont) ncbi::s_ITERATE_ConstRef(Cont) |
| #define | ITERATE_BEGIN(Cont, Begin) |
| #define | ITERATE_VAR(Type) Type |
| #define | ITERATE(Type, Var, Cont) |
| ITERATE macro to sequence through container elements. More... | |
| #define | NON_CONST_ITERATE(Type, Var, Cont) |
| Non constant version of ITERATE macro. More... | |
| #define | REVERSE_ITERATE(Type, Var, Cont) |
| ITERATE macro to reverse sequence through container elements. More... | |
| #define | NON_CONST_REVERSE_ITERATE(Type, Var, Cont) |
| Non constant version of REVERSE_ITERATE macro. More... | |
| #define | ERASE_ITERATE(Type, Var, Cont) |
| Non-constant version with ability to erase current element, if container permits. More... | |
| #define | VECTOR_ERASE(Var, Cont) (NCBI_NAME2(Var,_next) = (Cont).erase(Var)) |
| Use this macro inside body of ERASE_ITERATE cycle to erase from vector-like container. More... | |
| #define | ITERATE_BOTH_BOOL_VALUES(BoolVar) for( bool BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ = false, BoolVar = false; ! BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ ; BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ = BoolVar, BoolVar = true ) |
| The body of the loop will be run with Var equal to false and then true. More... | |
| #define | ITERATE_0_IDX(idx, up_to) for( TSeqPos idx = 0; idx < up_to; ++idx ) |
| idx loops from 0 (inclusive) to up_to (exclusive) More... | |
| #define | ITERATE_SIMPLE(num_iters) ITERATE_0_IDX( _dummy_idx_94768308_##__LINE__, num_iters ) |
| Just repeat the body of the loop num_iters times. More... | |
| #define | NCBI_INT8_GI |
| Type for sequence GI. More... | |
| #define | STRICT_ID_TO(TId, TInt, id) (static_cast<TInt>((id).Get())) |
| Macros to convert TGi to other types (int, unsigned etc.). More... | |
| #define | STRICT_ID_FROM(TIdType, TIntType, id) (TIdType(static_cast<TIdType::TId>(id))) |
| #define | STRICT_ID_CONST(type, id) (type(static_cast<type::TId>(ncbi::CConstIdChecker<type::TId, id>::value))) |
| #define | STRICT_ID_ZERO(type) STRICT_ID_CONST(type, 0) |
| #define | STRICT_ID_INVALID(type) STRICT_ID_CONST(type, -1) |
| #define | GI_TO(T, gi) STRICT_ID_TO(ncbi::TGi, T, gi) |
| #define | GI_FROM(T, value) STRICT_ID_FROM(ncbi::TGi, T, value) |
| #define | GI_CONST(gi) STRICT_ID_CONST(ncbi::TGi, gi) |
| #define | ZERO_GI STRICT_ID_ZERO(ncbi::TGi) |
| #define | INVALID_GI STRICT_ID_INVALID(ncbi::TGi) |
| #define | ENTREZ_ID_TO(T, entrez_id) (static_cast<T>(entrez_id)) |
| #define | ENTREZ_ID_FROM(T, value) (static_cast<ncbi::TEntrezId>(value)) |
| #define | ENTREZ_ID_CONST(id) id |
| #define | ZERO_ENTREZ_ID ENTREZ_ID_CONST(0) |
| #define | INVALID_ENTREZ_ID ENTREZ_ID_CONST(-1) |
| #define | TAX_ID_TO(T, tax_id) (static_cast<T>(tax_id)) |
| #define | TAX_ID_FROM(T, value) (static_cast<ncbi::TTaxId>(value)) |
| #define | TAX_ID_CONST(id) id |
| #define | ZERO_TAX_ID TAX_ID_CONST(0) |
| #define | INVALID_TAX_ID TAX_ID_CONST(-1) |
| #define | INT_ID_TO(T, id) (static_cast<T>(id)) |
| Convert gi-compatible int to/from other types. More... | |
| #define | INT_ID_FROM(T, value) (static_cast<ncbi::TIntId>(value)) |
| #define | NCBI_DEPRECATED_CTOR(decl) decl NCBI_DEPRECATED |
| Macro used to mark a constructor as deprecated. More... | |
| #define | NCBI_DEPRECATED_CLASS NCBI_DEPRECATED_CTOR(class) |
| Macro used to mark a class as deprecated. More... | |
| #define | DECLARE_SAFE_FLAGS_TYPE(E, T) typedef ncbi::CSafeFlags<E> T |
| Macro DECLARE_SAFE_FLAGS_TYPE defines a typedef for safe-flags. More... | |
| #define | DECLARE_SAFE_FLAGS(E) |
| Macro DECLARE_SAFE_FLAGS marks a enum as safe-flags enum. More... | |
Friends | |
| class | CNcbiApplicationGuard::CNcbiApplicationAPI |
| class | CNcbiApplicationAPI::CNcbiApplicationGuard |
| struct | AutoPtr< X, Del >::SSafeBoolTag |
| struct | AutoArray< X, Del >::SSafeBoolTag |
| struct | CSafeFlags< Enum >::SSafeBoolTag |
| template<class T , class U = conditional_t<is_pointer_v<T>, remove_pointer_t<T>, T>> | |
| using | c_unique_ptr = unique_ptr< U, void(*)(U *)> |
| Template helpers for unique_ptr to work with resource allocating/deallocating C functions. More... | |
| template<class T , typename TDeleter > | |
| unique_ptr< T, TDeleter > | make_c_unique (T *p, TDeleter d) |
| Eliminates the necessity for specifying types of both allocated resource and deallocating C function. More... | |
| template<class T > | |
| unique_ptr< T, void(*)(void *)> | make_c_unique (T *p) |
| Overload for the above for all types of allocated memory that are to be deallocated by free() More... | |
| #define | NCBI_EXPORT_FUNC_DECLARE(lib, func) |
| #define | NCBI_EXPORT_FUNC_DEFINE(lib, func) |
| #define CNcbiApplication CNcbiApplicationAPI |
Definition at line 844 of file ncbiapp_api.hpp.
| #define DECLARE_OPERATOR_BOOL | ( | Expr | ) | DECLARE_SAFE_BOOL_METHOD(Expr) |
Declaration of safe bool operator from boolean expression.
Actual operator declaration will be: operator TBoolType(void) const; where TBoolType is a typedef convertible to bool (member pointer).
Definition at line 203 of file ncbimisc.hpp.
| #define DECLARE_OPERATOR_BOOL_PTR | ( | Ptr | ) | DECLARE_OPERATOR_BOOL((Ptr) != 0) |
Declaration of safe bool operator from pointer expression.
Actual operator declaration will be: operator bool(void) const;
Definition at line 210 of file ncbimisc.hpp.
| #define DECLARE_OPERATOR_BOOL_REF | ( | Ref | ) | DECLARE_OPERATOR_BOOL((Ref).NotNull()) |
Declaration of safe bool operator from CRef<>/CConstRef<> expression.
Actual operator declaration will be: operator bool(void) const;
Definition at line 217 of file ncbimisc.hpp.
| #define DECLARE_SAFE_BOOL_METHOD | ( | Expr | ) |
Support for safe bool operators.
Low level macro for declaring safe bool operator.
Definition at line 184 of file ncbimisc.hpp.
| #define DECLARE_SAFE_FLAGS | ( | E | ) |
Macro DECLARE_SAFE_FLAGS marks a enum as safe-flags enum.
The argument is the enum name. If the enum is defined inside a class then DECLARE_SAFE_FLAGS() must be placed outside the class definition: DECLARE_SAFE_FLAGS(CMyClass::EFlags);
Definition at line 1454 of file ncbimisc.hpp.
Macro DECLARE_SAFE_FLAGS_TYPE defines a typedef for safe-flags.
First argument is enum name, second argument is the new typedef name. In place of old typedef: typedef int TFlags; put new macro: DECLARE_SAFE_FLAGS_TYPE(EFlags, TFlags);
Definition at line 1446 of file ncbimisc.hpp.
| #define DEPRECATE_AUTO_PTR 1 |
AutoPtr –.
Define an "auto_ptr" like class that can be used inside STL containers.
The Standard auto_ptr template from STL doesn't allow the auto_ptr to be put in STL containers (list, vector, map etc.). The reason for this is the absence of copy constructor and assignment operator. We decided that it would be useful to have an analog of STL's auto_ptr without this restriction - AutoPtr.
Due to the nature of AutoPtr its copy constructor and assignment operator modify the state of the source AutoPtr object as it transfers the ownership to the target AutoPtr object. Also, we added possibility to redefine the way pointer will be deleted: the second argument of the template allows pointers from "malloc" in AutoPtr, or you can use "ArrayDeleter" (see above) to properly delete an array of objects using "delete[]" instead of "delete". By default, the internal pointer is deleted by the C++ "delete" operator.
Definition at line 408 of file ncbimisc.hpp.
| #define ENTREZ_ID_CONST | ( | id | ) | id |
Definition at line 1198 of file ncbimisc.hpp.
| #define ENTREZ_ID_FROM | ( | T, | |
| value | |||
| ) | (static_cast<ncbi::TEntrezId>(value)) |
Definition at line 1197 of file ncbimisc.hpp.
Definition at line 1196 of file ncbimisc.hpp.
| #define ERASE_ITERATE | ( | Type, | |
| Var, | |||
| Cont | |||
| ) |
Non-constant version with ability to erase current element, if container permits.
Use only on containers, for which erase do not ruin other iterators into the container, e.g. map, list, but NOT vector. See also VECTOR_ERASE
Definition at line 942 of file ncbimisc.hpp.
| #define GI_CONST | ( | gi | ) | STRICT_ID_CONST(ncbi::TGi, gi) |
Definition at line 1186 of file ncbimisc.hpp.
Definition at line 1185 of file ncbimisc.hpp.
| #define GI_TO | ( | T, | |
| gi | |||
| ) | STRICT_ID_TO(ncbi::TGi, T, gi) |
Definition at line 1184 of file ncbimisc.hpp.
| #define INT_ID_FROM | ( | T, | |
| value | |||
| ) | (static_cast<ncbi::TIntId>(value)) |
Definition at line 1220 of file ncbimisc.hpp.
Convert gi-compatible int to/from other types.
Definition at line 1219 of file ncbimisc.hpp.
| #define INVALID_ENTREZ_ID ENTREZ_ID_CONST(-1) |
Definition at line 1202 of file ncbimisc.hpp.
| #define INVALID_GI STRICT_ID_INVALID(ncbi::TGi) |
Definition at line 1188 of file ncbimisc.hpp.
| #define INVALID_TAX_ID TAX_ID_CONST(-1) |
Definition at line 1215 of file ncbimisc.hpp.
| #define ITERATE | ( | Type, | |
| Var, | |||
| Cont | |||
| ) |
ITERATE macro to sequence through container elements.
Definition at line 914 of file ncbimisc.hpp.
idx loops from 0 (inclusive) to up_to (exclusive)
Definition at line 964 of file ncbimisc.hpp.
| #define ITERATE_BEGIN | ( | Cont, | |
| Begin | |||
| ) |
Definition at line 899 of file ncbimisc.hpp.
| #define ITERATE_BOTH_BOOL_VALUES | ( | BoolVar | ) | for( bool BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ = false, BoolVar = false; ! BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ ; BoolVar##BOTH_BOOL_VALUES_DONE##__LINE__ = BoolVar, BoolVar = true ) |
The body of the loop will be run with Var equal to false and then true.
The seemlingly excessive complexity of this macro is to get around a couple of limitations: * A bool only has two states, so it's not possible to represent the complete state space of (first iteration, second iteration, done) without another variable. * The variables declared in a for-loop's first part must be of the same type, so the other variable has to be a bool instead of something more convenient such as as a loop-counter.
Definition at line 960 of file ncbimisc.hpp.
| #define ITERATE_CONST | ( | Cont | ) | ncbi::s_ITERATE_ConstRef(Cont) |
Definition at line 890 of file ncbimisc.hpp.
| #define ITERATE_SIMPLE | ( | num_iters | ) | ITERATE_0_IDX( _dummy_idx_94768308_##__LINE__, num_iters ) |
Just repeat the body of the loop num_iters times.
Definition at line 968 of file ncbimisc.hpp.
Definition at line 910 of file ncbimisc.hpp.
| #define NCBI_DEPRECATED_CLASS NCBI_DEPRECATED_CTOR(class) |
Macro used to mark a class as deprecated.
Definition at line 1314 of file ncbimisc.hpp.
| #define NCBI_DEPRECATED_CTOR | ( | decl | ) | decl NCBI_DEPRECATED |
Macro used to mark a constructor as deprecated.
The correct syntax for this varies from compiler to compiler: older versions of GCC (prior to 3.4) require NCBI_DEPRECATED to follow any relevant constructor declarations, but some other compilers (Microsoft Visual Studio, IBM Visual Age / XL) require it to precede any relevant declarations, whether or not they are for constructors.
Definition at line 1308 of file ncbimisc.hpp.
| #define NCBI_EOWNERSHIP_DEFINED |
NCBI_ESWITCH_DEFINED.
Definition at line 86 of file ncbimisc.hpp.
| #define NCBI_ESWITCH_DEFINED |
Definition at line 60 of file ncbimisc.hpp.
| #define NCBI_EXPORT_FUNC_DECLARE | ( | lib, | |
| func | |||
| ) |
Definition at line 1577 of file ncbimisc.hpp.
| #define NCBI_EXPORT_FUNC_DEFINE | ( | lib, | |
| func | |||
| ) |
Definition at line 1599 of file ncbimisc.hpp.
| #define NCBI_INT8_GI |
Type for sequence GI.
Use this typedef rather than its expansion, which may change.
Definition at line 1077 of file ncbimisc.hpp.
| #define NCBI_TOOLKIT_EXPORT |
Definition at line 66 of file ncbi_toolkit_impl.hpp.
| #define NON_CONST_ITERATE | ( | Type, | |
| Var, | |||
| Cont | |||
| ) |
Non constant version of ITERATE macro.
Definition at line 921 of file ncbimisc.hpp.
| #define NON_CONST_REVERSE_ITERATE | ( | Type, | |
| Var, | |||
| Cont | |||
| ) |
Non constant version of REVERSE_ITERATE macro.
Definition at line 933 of file ncbimisc.hpp.
| #define OVERRIDE_OPERATOR_BOOL | ( | TAncestorClass, | |
| NewBoolExpr | |||
| ) |
Override the DECLARE_OPERATOR_BOOL, etc.
from an ancestor class. This is needed because sometimes you can't just use DECLARE_OPERATOR_BOOL due to cases such as the ancestor class being privately inherited from.
Definition at line 224 of file ncbimisc.hpp.
| #define REVERSE_ITERATE | ( | Type, | |
| Var, | |||
| Cont | |||
| ) |
ITERATE macro to reverse sequence through container elements.
Definition at line 926 of file ncbimisc.hpp.
| #define STRICT_ID_CONST | ( | type, | |
| id | |||
| ) | (type(static_cast<type::TId>(ncbi::CConstIdChecker<type::TId, id>::value))) |
Definition at line 1169 of file ncbimisc.hpp.
| #define STRICT_ID_FROM | ( | TIdType, | |
| TIntType, | |||
| id | |||
| ) | (TIdType(static_cast<TIdType::TId>(id))) |
Definition at line 1168 of file ncbimisc.hpp.
| #define STRICT_ID_INVALID | ( | type | ) | STRICT_ID_CONST(type, -1) |
Definition at line 1172 of file ncbimisc.hpp.
| #define STRICT_ID_TO | ( | TId, | |
| TInt, | |||
| id | |||
| ) | (static_cast<TInt>((id).Get())) |
Macros to convert TGi to other types (int, unsigned etc.).
Definition at line 1167 of file ncbimisc.hpp.
| #define STRICT_ID_ZERO | ( | type | ) | STRICT_ID_CONST(type, 0) |
Definition at line 1171 of file ncbimisc.hpp.
| #define TAX_ID_CONST | ( | id | ) | id |
Definition at line 1211 of file ncbimisc.hpp.
| #define TAX_ID_FROM | ( | T, | |
| value | |||
| ) | (static_cast<ncbi::TTaxId>(value)) |
Definition at line 1210 of file ncbimisc.hpp.
Definition at line 1209 of file ncbimisc.hpp.
| #define VECTOR_ERASE | ( | Var, | |
| Cont | |||
| ) | (NCBI_NAME2(Var,_next) = (Cont).erase(Var)) |
Use this macro inside body of ERASE_ITERATE cycle to erase from vector-like container.
Plain erase() call would invalidate Var_next iterator and would make the cycle controlling code to fail.
Definition at line 951 of file ncbimisc.hpp.
| #define ZERO_ENTREZ_ID ENTREZ_ID_CONST(0) |
Definition at line 1201 of file ncbimisc.hpp.
| #define ZERO_GI STRICT_ID_ZERO(ncbi::TGi) |
Definition at line 1187 of file ncbimisc.hpp.
| #define ZERO_TAX_ID TAX_ID_CONST(0) |
Definition at line 1214 of file ncbimisc.hpp.
| typedef Base pair_base_member< Base, Member >::base_type |
Definition at line 252 of file ncbimisc.hpp.
| using c_unique_ptr = unique_ptr<U, void(*)(U*)> |
Template helpers for unique_ptr to work with resource allocating/deallocating C functions.
Eliminates the necessity for specifying type of deallocating C function.
Definition at line 1552 of file ncbimisc.hpp.
Definition at line 1127 of file ncbimisc.hpp.
| typedef Del AutoPtr< X, Del >::deleter_type |
Alias for template argument.
Definition at line 415 of file ncbimisc.hpp.
| typedef Del AutoArray< X, Del >::deleter_type |
Alias for template argument.
Definition at line 584 of file ncbimisc.hpp.
| typedef X AutoPtr< X, Del >::element_type |
Define element type.
Definition at line 414 of file ncbimisc.hpp.
| typedef X AutoArray< X, Del >::element_type |
Define element type.
Definition at line 583 of file ncbimisc.hpp.
| typedef Enum CSafeFlags< Enum >::enum_type |
Definition at line 1360 of file ncbimisc.hpp.
| typedef enum ENcbiOwnership EOwnership |
Ownership relations between objects.
Can be used to define or transfer ownership of objects. For example, specify if a CSocket object owns its underlying SOCK object.
| typedef enum ENcbiSwitch ESwitch |
Aux.
enum to set/unset/default various features.
| typedef Base pair_base_member< Base, Member >::first_type |
Definition at line 253 of file ncbimisc.hpp.
| typedef CNcbiApplication*(* ncbi::FNcbiApplicationFactory) (void) |
Provide means of creating custom CNcbiApplication object – to use the latter instead of "dummy" NCBI application.
Definition at line 77 of file ncbi_toolkit_impl.hpp.
| typedef Member pair_base_member< Base, Member >::member_type |
Definition at line 254 of file ncbimisc.hpp.
| typedef Member pair_base_member< Base, Member >::second_type |
Definition at line 255 of file ncbimisc.hpp.
| typedef underlying_type<enum_type>::type CSafeFlags< Enum >::storage_type |
Definition at line 1361 of file ncbimisc.hpp.
|
private |
Definition at line 1543 of file ncbimisc.hpp.
|
protected |
Definition at line 620 of file ncbiapp_api.hpp.
| typedef void(SSafeBoolTag::* AutoPtr< X, Del >::TBoolType) (SSafeBoolTag *) |
Definition at line 498 of file ncbimisc.hpp.
| typedef void(SSafeBoolTag::* AutoArray< X, Del >::TBoolType) (SSafeBoolTag *) |
Definition at line 661 of file ncbimisc.hpp.
| typedef void(SSafeBoolTag::* CSafeFlags< Enum >::TBoolType) (SSafeBoolTag *) |
Definition at line 1382 of file ncbimisc.hpp.
|
protected |
Binary OR of "EDisableArgDesc".
Definition at line 429 of file ncbiapp_api.hpp.
| typedef SStrictId_Entrez::TId TEntrezId |
TEntrezId type for entrez ids which require the same strictness as TGi.
Definition at line 1140 of file ncbimisc.hpp.
| typedef CStrictId<SStrictId_Gi, SStrictId_Gi::TId> TGi |
Definition at line 1124 of file ncbimisc.hpp.
|
protected |
Binary OR of "EHideStdArgs".
Definition at line 450 of file ncbiapp_api.hpp.
Definition at line 994 of file ncbimisc.hpp.
| typedef TIntId SStrictId_Gi::TId |
Definition at line 1112 of file ncbimisc.hpp.
| typedef TIntId SStrictId_Entrez::TId |
Definition at line 1115 of file ncbimisc.hpp.
| typedef int SStrictId_Tax::TId |
Definition at line 1118 of file ncbimisc.hpp.
Definition at line 1098 of file ncbimisc.hpp.
| typedef char ncbi::TNcbiToolkit_XChar |
Definition at line 55 of file ncbi_toolkit_impl.hpp.
Type for sequence locations and lengths.
Use this typedef rather than its expansion, which may change.
Definition at line 974 of file ncbimisc.hpp.
| typedef int TSignedSeqPos |
Type for signed sequence position.
Use this type when and only when negative values are a possibility for reporting differences between positions, or for error reporting – though exceptions are generally better for error reporting. Use this typedef rather than its expansion, which may change.
Definition at line 986 of file ncbimisc.hpp.
|
protected |
Binary OR of "EStdioSetup".
Definition at line 468 of file ncbiapp_api.hpp.
| typedef SStrictId_Tax::TId TTaxId |
Taxon id type.
Definition at line 1147 of file ncbimisc.hpp.
| typedef CStrictId<TKey, TStorage> CStrictId< TKey, TStorage >::TThis |
Definition at line 995 of file ncbimisc.hpp.
Definition at line 1099 of file ncbimisc.hpp.
| anonymous enum : TId |
| Enumerator | |
|---|---|
| value | |
Definition at line 1156 of file ncbimisc.hpp.
|
protected |
| Enumerator | |
|---|---|
| fSkipSafeStaticDestroy | |
Definition at line 617 of file ncbiapp_api.hpp.
| Enumerator | |
|---|---|
| eBaseName | per GetProgramDisplayName |
| eFullName | per GetProgramExecutablePath(eIgnoreLinks) |
| eRealName | per GetProgramExecutablePath(eFollowLinks) |
Definition at line 367 of file ncbiapp_api.hpp.
|
protected |
Disable argument descriptions.
Call with a bit flag set if you do not want std AND user cmd.line args to be parsed. Note that by default the parsing of cmd.line args are enabled.
| Enumerator | |
|---|---|
| fDisableStdArgs | (-logfile, -conffile, -version etc) |
Definition at line 426 of file ncbiapp_api.hpp.
Error types that an application can generate.
These error conditions are checked for and caught inside AppMain().
| Enumerator | |
|---|---|
| eUnsetArgs | Command-line argument description not found. |
| eSetupDiag | Application diagnostic stream setup failed. |
| eLoadConfig | Registry data failed to load from config file. |
| eSecond | Second instance of CNcbiApplicationAPI is prohibited. |
| eNoRegistry | Registry file cannot be opened. |
Definition at line 83 of file ncbiapp_api.hpp.
|
protected |
When to return a user-set exit code.
| Enumerator | |
|---|---|
| eNoExits | never (stick to existing logic) |
| eExceptionalExits | when an (uncaught) exception occurs |
| eAllExits | always (ignoring Run's return value) |
Definition at line 607 of file ncbiapp_api.hpp.
| enum EFollowLinks |
Whether to follow symbolic links (also known as shortcuts or aliases)
| Enumerator | |
|---|---|
| eIgnoreLinks | Do not follow symbolic links. |
| eFollowLinks | Follow symbolic links. |
Definition at line 147 of file ncbimisc.hpp.
|
protected |
Which standard flag's descriptions should not be displayed in the usage message.
Do not display descriptions of the standard flags such as the -h, -logfile, -conffile, -version flags in the usage message. Note that you still can pass them in the command line.
Definition at line 439 of file ncbiapp_api.hpp.
| enum EInterruptOnSignal |
Interrupt on signal mode.
On UNIX some functions can be interrupted by a signal and EINTR errno value. We can restart or cancel its execution.
| Enumerator | |
|---|---|
| eInterruptOnSignal | Cancel operation if interrupted by a signal. |
| eRestartOnSignal | Restart operation if interrupted by a signal. |
Definition at line 164 of file ncbimisc.hpp.
| enum ENcbiOwnership |
Ownership relations between objects.
Can be used to define or transfer ownership of objects. For example, specify if a CSocket object owns its underlying SOCK object.
| Enumerator | |
|---|---|
| eNoOwnership | No ownership is assumed. |
| eTakeOwnership | An object can take ownership of another. |
| eNoOwnership | |
| eTakeOwnership | No ownership assumed. An object can take ownership of another |
Definition at line 103 of file ncbimisc.hpp.
| enum ENcbiSwitch |
Aux.
enum to set/unset/default various features.
| Enumerator | |
|---|---|
| eOff | |
| eOn | |
| eDefault | |
| eOff | |
| eOn | |
| eDefault | |
Definition at line 74 of file ncbimisc.hpp.
| enum ENormalizePath |
Whether to normalize a path.
| Enumerator | |
|---|---|
| eNormalizePath | Normalize a path. |
| eNotNormalizePath | Do not normalize a path. |
Definition at line 154 of file ncbimisc.hpp.
| enum ENull |
CNullable –.
A value whith 'unassigned' state. Define "null" pointer value.
| Enumerator | |
|---|---|
| null | |
Definition at line 744 of file ncbimisc.hpp.
| enum ENullable |
Whether a value is nullable.
| Enumerator | |
|---|---|
| eNullable | Value can be null. |
| eNotNullable | Value cannot be null. |
Definition at line 117 of file ncbimisc.hpp.
|
protected |
Result of PreparseArgs()
| Enumerator | |
|---|---|
| ePreparse_Continue | Continue application execution. |
| ePreparse_Exit | Exit the application with zero exit code. |
Definition at line 411 of file ncbiapp_api.hpp.
| enum ERetriable |
Can the action be retried?
| Enumerator | |
|---|---|
| eRetriable_No | It makes no sense to retry the action. |
| eRetriable_Unknown | It is unknown if the action can succeed if retried. |
| eRetriable_Yes | It makes sense to try again. |
Definition at line 171 of file ncbimisc.hpp.
| enum ERound |
Whether to truncate/round a value.
| Enumerator | |
|---|---|
| eTrunc | Value must be truncated. |
| eRound | Value must be rounded. |
Definition at line 140 of file ncbimisc.hpp.
Log message severity.
| Enumerator | |
|---|---|
| eInfo | Informational message. |
| eWarning | Warning message. |
| eError | Error message. |
| eCritical | Critical error message. |
| eFatal | Fatal error. |
| eTrace | Trace message. |
Definition at line 102 of file ncbi_toolkit.hpp.
| enum ESign |
Signedness of a value.
| Enumerator | |
|---|---|
| eNegative | Value is negative. |
| eZero | Value is zero. |
| ePositive | Value is positive. |
Definition at line 124 of file ncbimisc.hpp.
|
protected |
Flags to adjust standard I/O streams' behaviour.
| Enumerator | |
|---|---|
| fNoSyncWithStdio | Turn off synchronizing of "C++" cin/cout/cerr streams with their "C" counterparts, possibly making the former not thread-safe. |
| fDefault_CinBufferSize | Use compiler-specific default of Cin buffer size. |
| fBinaryCin | treat standard input as binary |
| fBinaryCout | treat standard output as binary |
| fDefault_SyncWithStdio |
|
Definition at line 456 of file ncbiapp_api.hpp.
| enum ETriState |
Enumeration to represent a tristate value.
| Enumerator | |
|---|---|
| eTriState_Unknown | The value is indeterminate. |
| eTriState_False | The value is equivalent to false/no. |
| eTriState_True | The value is equivalent to true/yes. |
Definition at line 132 of file ncbimisc.hpp.
Definition at line 1242 of file ncbimisc.hpp.
References offset.
|
inlinestatic |
add offset to object reference (to get object's member)
Definition at line 1236 of file ncbimisc.hpp.
References offset.
Referenced by CSequenceOfTypeInfo::Data(), EndOf(), CSequenceOfTypeInfo::NextNode(), and CChoiceTypeInfo::Which().
|
inline |
Definition at line 1500 of file ncbimisc.hpp.
References CNcbiActionGuard::m_Actions.
Referenced by CNcbiApplicationAPI::AddOnExitAction().
|
inline |
Add callback to be executed from CNcbiApplicationAPI destructor.
Definition at line 401 of file ncbiapp_api.hpp.
References CNcbiActionGuard::AddAction(), and CNcbiApplicationAPI::m_OnExitActions.
Referenced by CBDB_Cache_OnAppExit::AddOnExitCallback(), and CBDB_Env_OnAppExit::AddOnExitCallback().
|
pure virtual |
Apply policy for an application.
For example, it can get and check program arguments, and call any other methods depending on it. Automatically called from CNcbiApplication::SetPhoneHomePolicy().
| app | Pointer to the CNcbiApplicationAPI instance. |
Implemented in CSamplePhoneHomePolicy, and CBlastPhoneHomePolicy.
Referenced by CNcbiApplicationAPI::SetPhoneHomePolicy().
| int CNcbiApplicationAPI::AppMain | ( | int | argc, |
| const char *const * | argv, | ||
| const char *const * | envp = 0, |
||
| EAppDiagStream | diag = eDS_Default, |
||
| const char * | conf = NcbiEmptyCStr, |
||
| const string & | name = NcbiEmptyString |
||
| ) |
Main function (entry point) for the NCBI application.
You can specify where to write the diagnostics to (EAppDiagStream), and where to get the configuration file (LoadConfig()) to load to the application registry (accessible via GetConfig()).
Throw exception if:
If application name is not specified a default of "ncbi" is used. Certain flags such as -logfile, -conffile and -version are special so AppMain() processes them separately.
| argc | Argument count [argc in a regular main(argc, argv)]. |
| argv | Argument vector [argv in a regular main(argc, argv)]. |
| envp | Environment pointer [envp in a regular main(argc, argv, envp)]; a null pointer (the default) corresponds to the standard system array (environ on most Unix platforms). |
| diag | Specify diagnostic stream. |
| conf | Specify registry to load, as per LoadConfig(). The default is an empty string, requesting automatic detection; it is also possible to pass a specific name (optionally qualified) or a NULL pointer (disabling application-specific registry lookup altogether). |
| name | Specify application name, used in diagnostics and automatic registry searching. |
Definition at line 806 of file ncbiapp.cpp.
References _TRACE, a, Abort(), ABORT_ON_THROW, CNcbiApplicationAPI::AppStop(), IRWRegistry::Clear(), Critical(), CSafeStaticGuard::Destroy(), DIAG_POST_LEVEL, DIAG_TRACE, CDiagContext::DiscardMessages(), CNcbiApplicationAPI::eAllExits, eDCM_NoChange, eDPF_Severity, eDS_User, eDT_Enable, CNcbiApplicationAPI::eExceptionalExits, CSafeStaticLifeSpan::eLifeLevel_AppMain, CArgException::eNoValue, CNcbiApplicationAPI::ePreparse_Exit, ERR_POST_X, CArgDescriptions::fDupErrToCerr, CNcbiApplicationAPI::FindProgramExecutablePath(), CArgDescriptions::fNoUsage, CVersionAPI::fPackageShort, CNcbiApplicationAPI::fSkipSafeStaticDestroy, fSuppress_Exception, CVersionAPI::fVersionInfo, GetDiagContext(), GetDiagHandler(), CException::GetErrCode(), CNcbiApplicationAPI::GetFullVersion(), CStreamDiagHandler::GetStream(), i, CDiagContext::IsSetExitCode(), CNcbiApplicationAPI::m_AppFlags, CNcbiApplicationAPI::m_ArgDesc, CNcbiApplicationAPI::m_Arguments, CNcbiApplicationAPI::m_Config, CNcbiApplicationAPI::m_DefaultConfig, CNcbiApplicationAPI::m_DisableArgDesc, CNcbiApplicationAPI::m_DryRun, CNcbiApplicationAPI::m_Environ, CNcbiApplicationAPI::m_ExePath, CNcbiApplicationAPI::m_ExitCode, CNcbiApplicationAPI::m_ExitCodeCond, CNcbiApplicationAPI::m_LogFile, CNcbiApplicationAPI::m_ProgramDisplayName, CNcbiApplicationAPI::m_RealExePath, NCBI_REPORT_EXCEPTION_X, NCBI_RETHROW, NCBI_THROW, NULL, CNcbiApplicationAPI::PreparseArgs(), CVersionAPI::Print(), CVersionAPI::PrintJson(), CVersionAPI::PrintXml(), s_ArgCfgFile, s_ArgDelimiter, s_ArgDryRun, s_ArgFullVersion, s_ArgFullVersionJson, s_ArgFullVersionXml, s_ArgLogFile, s_ArgVersion, s_HandleExceptions(), s_IsApplicationStarted, SetDiagFixedPostLevel(), SetDiagPostAllFlags(), SetDiagTrace(), CDiagContext::SetExitCode(), CNcbiApplicationAPI::SetProgramDisplayName(), SetThrowTraceAbort(), CDiagContext::SetupDiag(), CDirEntry::SplitPath(), NStr::StartsWith(), str(), NStr::strcmp(), string, CNcbiDiag::StrToSeverityLevel(), SuppressSystemMessageBox(), Warning(), CException::what(), CNcbiApplicationAPI::x_AddDefaultArgs(), CNcbiApplicationAPI::x_SetupStdio(), and CNcbiApplicationAPI::x_TryMain().
Referenced by CNcbiTestApplication::InitTestFramework(), main(), Main(), and NcbiSys_main().
|
protectedvirtual |
Method to be called before application start.
Can be used to set DiagContext properties to be printed in the application start message (e.g. host|host_ip_addr, client_ip and session_id for CGI applications).
Reimplemented in CCgiApplication.
Definition at line 1727 of file ncbiapp.cpp.
References GetDiagContext(), CNcbiApplicationAPI::GetProgramExecutablePath(), CDiagContext::IsSetOldPostFormat(), CNcbiApplicationAPI::m_Arguments, CDiagContext::PrintStart(), and NStr::ShellEncode().
Referenced by CNcbiApplicationAPI::x_TryInit().
|
protectedvirtual |
Method to be called before application exit.
Can be used to set DiagContext properties to be printed in the application stop message (exit_status, exit_signal, exit_code).
Reimplemented in CCgiApplication.
Definition at line 1747 of file ncbiapp.cpp.
References ctx, and GetDiagContext().
Referenced by CNcbiApplicationAPI::AppMain().
|
inlineconstexpr |
Definition at line 1634 of file ncbimisc.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), CGb_qual::CleanupAndRepairInference(), CommentHasSuspiciousHtml(), CSequenceAmbigTrimmer::CSequenceAmbigTrimmer(), CCleanup::DecodeXMLMarkChanged(), CField_type::FeatureFieldFromCDSGeneProtField(), CValidError_imp::FindEmbeddedScript(), CSubSource::FixDateFormat(), CSubSource::FixSexQualifierValue(), CWriteUtil::GetAaName(), CAsnBinCompressed::GetJobStreamProperties(), CRna_qual::GetLegalQual(), CInferencePrefixList::GetPrefixAndRemainder(), CSeqFeatData::GetRegulatoryClass(), CRna_feat_type::GetRnaRefType(), CSNPDbFeatIterator::GetSeq_feat(), CCommentItem::GetStringForRefSeqGenome(), CWriteUtil::GetTrnaProductName(), HasBadWord(), CGb_qual::IsIllegalQualName(), CAsnBinCompressed::IsLZOStream(), impl::CDriverContext::NofConnections(), OrderQual(), CGb_qual::ParseExperiment(), CBioSource::RemoveLineageSourceNotes(), s_AaName(), s_SetTrnaProduct(), CRegexp::Set(), CBioSource::ShouldIgnoreConflict(), CFormatGuess::TestFormatXml(), CSeq_id::WhichFastaTag(), CTL_Connection::x_LoadTextPtrProcs(), CSearch_func::x_PrecededByOkPrefix(), CSearch_func::x_SkipBracketOrParen(), and x_ValidAminoAcid().
Definition at line 594 of file ncbimisc.hpp.
|
inlinenoexcept |
Move constructor.
Definition at line 608 of file ncbimisc.hpp.
|
inlinenoexcept |
Copy constructor.
Definition at line 617 of file ncbimisc.hpp.
|
inlineexplicitnoexcept |
Definition at line 598 of file ncbimisc.hpp.
|
inlinenoexcept |
Definition at line 602 of file ncbimisc.hpp.
|
inlineexplicitnoexcept |
Construct the array using C++ new[] operator.
Definition at line 590 of file ncbimisc.hpp.
Constructor.
Definition at line 418 of file ncbimisc.hpp.
|
inlinenoexcept |
Move constructor.
Definition at line 444 of file ncbimisc.hpp.
|
inlinenoexcept |
Copy constructor.
Definition at line 453 of file ncbimisc.hpp.
|
inlinenoexcept |
Constructor.
Definition at line 423 of file ncbimisc.hpp.
|
inlinenoexcept |
Constructor.
Definition at line 428 of file ncbimisc.hpp.
|
inlinenoexcept |
Constructor, own the pointed object if ownership == eTakeOwnership.
Definition at line 438 of file ncbimisc.hpp.
|
inlinenoexcept |
Constructor, own the pointed object if ownership == eTakeOwnership.
Definition at line 433 of file ncbimisc.hpp.
|
inline |
Definition at line 1281 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer.
|
inline |
Definition at line 1282 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer.
|
inline |
Definition at line 1537 of file ncbimisc.hpp.
|
private |
|
inline |
Definition at line 1526 of file ncbimisc.hpp.
Definition at line 322 of file ncbimisc.hpp.
Definition at line 323 of file ncbimisc.hpp.
|
inline |
Definition at line 740 of file ncbiapp_api.hpp.
|
inline |
Definition at line 1267 of file ncbimisc.hpp.
|
private |
|
inline |
Definition at line 1497 of file ncbimisc.hpp.
|
explicit |
Constructor.
Register the application instance, and reset important application-specific settings to empty values that will be set later.
Definition at line 139 of file ncbiapp.cpp.
References CVersionAPI::AddComponentVersion(), Critical(), eDiagAppState_AppBegin, CNcbiApplicationAPI::eNoExits, eNoOwnership, ERR_POST_X, eSecond, GetDiagContext(), CNcbiApplicationAPI::GetInstanceLock(), CVersionAPI::GetPackageVersion(), CDiagContext::GetUID(), CVersionAPI::GetVersionInfo(), CThread::InitializeMainThreadId(), CDiagContext::InitMessages(), CVersionInfo::IsAny(), CNcbiApplicationAPI::m_Arguments, CNcbiApplicationAPI::m_CinBuffer, CNcbiApplicationAPI::m_Config, CNcbiApplicationAPI::m_DisableArgDesc, CNcbiApplicationAPI::m_DryRun, CNcbiApplicationAPI::m_Environ, CNcbiApplicationAPI::m_ExitCodeCond, CNcbiApplicationAPI::m_HideArgs, CNcbiApplicationAPI::m_Instance, CNcbiApplicationAPI::m_PhoneHomePolicy, CNcbiApplicationAPI::m_PhoneHomePolicy_Ownership, CNcbiApplicationAPI::m_StdioFlags, CNcbiApplicationAPI::m_Version, NCBI_APP_SBUILDINFO_DEFAULT, NCBI_SC_VERSION_PROXY, NCBI_SUBVERSION_REVISION_PROXY, NCBI_TEAMCITY_PROJECT_NAME_PROXY, NCBI_THROW, CRef< C, Locker >::Reset(), CDiagContext::SetGlobalAppState(), CVersionAPI::SetVersionInfo(), and VerifyCpuCompatibility().
|
private |
Definition at line 96 of file ncbiapp.cpp.
References CNcbiApplicationAPI::GetInstanceLock(), CNcbiApplicationGuard::m_App, and CNcbiApplicationGuard::m_AppLock.
|
private |
|
protected |
Definition at line 64 of file ncbi_toolkit.cpp.
|
inline |
Create an empty nullable.
Definition at line 778 of file ncbimisc.hpp.
|
inline |
Initialize nullable with a specific value.
Definition at line 781 of file ncbimisc.hpp.
Default create function.
Definition at line 351 of file ncbimisc.hpp.
|
inlineconstexpr |
Definition at line 1363 of file ncbimisc.hpp.
Referenced by CSafeFlags< Enum >::operator&(), CSafeFlags< Enum >::operator^(), CSafeFlags< Enum >::operator|(), and CSafeFlags< Enum >::operator~().
|
inlineconstexpr |
Definition at line 1372 of file ncbimisc.hpp.
|
inlineexplicitconstexpr |
Definition at line 1368 of file ncbimisc.hpp.
|
inline |
Definition at line 998 of file ncbimisc.hpp.
|
inlineexplicit |
Definition at line 1026 of file ncbimisc.hpp.
Definition at line 997 of file ncbimisc.hpp.
Default delete function.
Definition at line 360 of file ncbimisc.hpp.
|
inlinestatic |
Array delete function.
Definition at line 369 of file ncbimisc.hpp.
|
protected |
Definition at line 1294 of file ncbiapp.cpp.
References CNcbiApplicationAPI::m_DisableArgDesc.
Referenced by CCgiApplication::CCgiApplication(), CCpGDemoApp::CCpGDemoApp(), CEntrez2ClientApp::CEntrez2ClientApp(), CGeneModelDemoApp::CGeneModelDemoApp(), CGridCommandLineInterfaceApp::CGridCommandLineInterfaceApp(), CRegexpLocApp::CRegexpLocApp(), CRemoteCgiApp::CRemoteCgiApp(), and CNcbiApplogApp::Init().
|
virtual |
Test run the application.
It is only supposed to test if the Run() is possible, or makes sense: that is, test all preconditions etc.
Reimplemented in CNcbiTestApplication, and CTbl2AsnApp.
Definition at line 280 of file ncbiapp.cpp.
References ERR_POST_X, and Info().
Referenced by CNcbiApplicationAPI::x_TryMain().
|
inline |
Definition at line 1284 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer, and CFastBuffer< KEmbeddedSize, TType >::m_Size.
|
inline |
Definition at line 1285 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer, and CFastBuffer< KEmbeddedSize, TType >::m_Size.
| int CNcbiToolkit_LogMessage::ErrCode | ( | void | ) | const |
Get error code.
Definition at line 101 of file ncbi_toolkit.cpp.
References SDiagMessage::m_ErrCode, and ncbi::CNcbiToolkit_LogMessage::m_Msg.
| int CNcbiToolkit_LogMessage::ErrSubCode | ( | void | ) | const |
Get error subcode.
Definition at line 106 of file ncbi_toolkit.cpp.
References SDiagMessage::m_ErrSubCode, and ncbi::CNcbiToolkit_LogMessage::m_Msg.
|
pure virtual |
Implemented in CNcbiActionGuard::CAction< TFunc >.
|
inlineoverridevirtual |
Implements CNcbiActionGuard::CAction_Base.
Definition at line 1539 of file ncbimisc.hpp.
References CNcbiActionGuard::CAction< TFunc >::m_Func.
|
inline |
Definition at line 1505 of file ncbimisc.hpp.
References ERR_POST, ITERATE, and CNcbiActionGuard::m_Actions.
Referenced by CNcbiApplicationAPI::ExecuteOnExitActions(), and CNcbiActionGuard::~CNcbiActionGuard().
|
protected |
Should only be called from the destructors of classes derived from CNcbiApplicationAPI - if it is necessary to access their data members and virtual methods; or to dynamic_cast<> from the base app class.
Definition at line 206 of file ncbiapp.cpp.
References CNcbiActionGuard::ExecuteActions(), and CNcbiApplicationAPI::m_OnExitActions.
Referenced by CNcbiApplication::~CNcbiApplication(), and CNcbiApplicationAPI::~CNcbiApplicationAPI().
|
virtual |
Cleanup on application exit.
Perform cleanup before exiting. The default behavior of this is "do nothing". If you have special cleanup logic that needs to be performed, then you must override this method with your own logic.
Reimplemented in CSubImageApp, CImageDemoApp, CConvImageApp, CBam2GraphApp, CFeatTreeSampleApp, CEUtilsApp, CDbCopyApp, CDbapiSimpleApp, CDbapiAdvancedFeaturesApp, VSRunSampleApplication, CBlastDemoApplication, CBlastSampleApplication, CBlastDemoApplication, CSampleBasicApplication, CAnalyzeShiftApp, CColumnarVCFReaderApp, CTestDispatchApp, CAppJobTestApplication, CObjConvProfile, CProjBulderApp, CStreamTestApp, CMytestApplication, SegMaskerApplication, CDemoApp, CObjExtractApp, CNmer_repeatsApplication, CIdfetchApplication, CId2FetchApp, CId1FetchApp, CId1FetchApp, CFormatGuessApp, CFeatImportApp, Cn3DNoWin, CVDBTblastnApp, CVDBBlastnApp, CGuideTreeApplication, CConvert2BlastMaskApplication, BlastdbCopyApplication, CBlastDbCheckApplication, CWalkAsnCacheApplication, CAsnSubCacheCreateApplication, CReadIndexSpeedApp, CPrimeCacheApplication, CAsnCacheDumpSeqIdsApplication, CConcatSeqEntriesApplication, CCacheIndexCopyApp, CAsnCacheTestApplication, CAgpconvertApplication, CAgpValidateApplication, CAdapterSearchApplication, COmssa2pepxmlApplication, CMultiApplication, CMultiApplication, CClustererApplication, CBlastKmerBuildIndexApplication, CBlastKmerApplication, CCkblastindexApplication, CGumbelParamsApplication, CBlastInputDemoApplication, CDemoScoreBuilderApp, CTestCompartApplication, CAlignCleanupApplication, CNCBIwxApplication, CCgiApplication, CSdbapiTest, CUsageReportPhoneHomeSampleApp, CDbapiSampleApp, CAppNWA, CAppHitFilter, and CCompartApp.
Definition at line 287 of file ncbiapp.cpp.
Referenced by CCgiApplication::Exit(), and CNcbiApplicationAPI::x_TryMain().
| string CNcbiToolkit_LogMessage::File | ( | void | ) | const |
Get file name in which message was originated.
Definition at line 119 of file ncbi_toolkit.cpp.
References SDiagMessage::m_File, and ncbi::CNcbiToolkit_LogMessage::m_Msg.
|
staticprotected |
Find the application's executable file.
Find the path and name of the executable file that this application is running from. Will be accessible by GetArguments().GetProgramName().
| argc | Standard argument count "argc". |
| argv | Standard argument vector "argv". |
| real_path | If non-NULL, will get the fully resolved path to the executable. |
Definition at line 1402 of file ncbiapp.cpp.
References _ASSERT, _T_STDSTRING, _TX, BOOL, buf, CDll::eAutoUnload, eFollowLinks, CDll::eLoadNow, eUnknown, FAR, NStr::fSplit_MergeDelimiters, NStr::fSplit_Truncate, CNcbiEnvironment::Get(), CNcbiApplicationAPI::GetArguments(), CDirEntry::GetBase(), CDir::GetCwd(), CDll::GetEntryPoint_Func(), CNcbiApplicationAPI::GetEnvironment(), CDirEntry::GetPathSeparator(), CNcbiArguments::GetProgramName(), HANDLE, CNcbiApplicationAPI::InstanceGuard(), int, NStr::IntToString(), CDirEntry::IsAbsolutePath(), ITERATE, kEmptyStr, CDirEntry::MakePath(), NCBI_THROW, NcbiSys_getenv, CDirEntry::NormalizePath(), NULL, PATH_MAX, s_Init(), s_Path, NStr::Split(), and CDirEntry::SplitPath().
Referenced by CNcbiApplicationAPI::AppMain(), and CNcbiApplicationAPI::GetAppName().
|
inlinevirtual |
Deinitialize policy/reporting API.
Redefine if you want to gracefully terminate reporting API. Automatically called from the destructor.
Reimplemented in CSamplePhoneHomePolicy, and CBlastPhoneHomePolicy.
Definition at line 95 of file phone_home_policy.hpp.
Referenced by CNcbiApplicationAPI::SetPhoneHomePolicy(), and IPhoneHomePolicy::~IPhoneHomePolicy().
|
inline |
Check if the application has finished loading config file (successfully or not).
Definition at line 809 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_ConfigLoaded.
Referenced by g_GetConfigDouble(), g_GetConfigFlag(), g_GetConfigInt(), g_GetConfigString(), and CParam< TDescription >::sx_GetDefault().
|
inlinenoexcept |
Definition at line 278 of file ncbimisc.hpp.
Referenced by CConstRef< CSeq_loc >::AtomicReleaseTo(), CRef< CAlnMixSegment >::AtomicReleaseTo(), CConstRef< CSeq_loc >::AtomicResetFrom(), CRef< CAlnMixSegment >::AtomicResetFrom(), CGuard< IRegistry, SSimpleReadLock< IRegistry > >::GetLock(), CConstRef< CSeq_loc >::GetLocker(), CRef< CAlnMixSegment >::GetLocker(), CGuard< IRegistry, SSimpleReadLock< IRegistry > >::GetUnlock(), CRef< CAlnMixSegment >::Release(), CConstRef< CSeq_loc >::Release(), CRef< CAlnMixSegment >::ReleaseOrNull(), CConstRef< CSeq_loc >::ReleaseOrNull(), AutoPtr< CNcbistrstream_Base >::reset(), AutoArray< CS_INT >::reset(), CRef< CAlnMixSegment >::Reset(), CConstRef< CSeq_loc >::Reset(), pair_base_member< TKeyGetter, CTreeNode * >::Swap(), CRef< CAlnMixSegment >::Swap(), CConstRef< CSeq_loc >::Swap(), CBlobIdFor< Value, Converter >::ToString(), CStaticArraySearchBase< NStaticArray::PKeyValuePair< SStaticPair< KeyType, ValueType > >, less< KeyType > >::value_comp(), CRef< CAlnMixSegment >::x_AssignFromRef(), CConstRef< CSeq_loc >::x_AssignFromRef(), CRef< CAlnMixSegment >::x_LockFromMoveConstructor(), CConstRef< CSeq_loc >::x_LockFromMoveConstructor(), CRef< CAlnMixSegment >::x_LockFromPtr(), CConstRef< CSeq_loc >::x_LockFromPtr(), CRef< CAlnMixSegment >::x_LockFromRef(), CConstRef< CSeq_loc >::x_LockFromRef(), CRef< CAlnMixSegment >::x_MoveAssign(), and CConstRef< CSeq_loc >::x_MoveAssign().
|
inlinenoexcept |
Definition at line 282 of file ncbimisc.hpp.
| SIZE_TYPE CNcbiApplicationAPI::FlushDiag | ( | CNcbiOstream * | os, |
| bool | close_diag = false |
||
| ) |
Flush the in-memory diagnostic stream (for "eDS_ToMemory" case only).
In case of "eDS_ToMemory", the diagnostics is stored in the internal application memory buffer ("m_DiagStream"). Call this function to dump all the diagnostics to stream "os" and purge the buffer.
| os | Output stream to dump diagnostics to. If it is NULL, then nothing will be written to it (but the buffer will still be purged). |
| close_diag | If "close_diag" is TRUE, then also destroy "m_DiagStream". |
Definition at line 303 of file ncbiapp.cpp.
References CDiagContext::DiscardMessages(), CDiagContext::FlushMessages(), GetDiagContext(), GetDiagHandler(), and SetDiagStream().
Referenced by CNcbiApplicationAPI::~CNcbiApplicationAPI().
| NCBI_XNCBI_EXPORT void g_ThrowOnNull | ( | void | ) |
Definition at line 861 of file ncbiexpt.cpp.
References NCBI_THROW.
Referenced by SThrowOnNull< TValue >::operator()().
|
inline |
Definition at line 1377 of file ncbimisc.hpp.
References CSafeFlags< Enum >::m_Flags.
Referenced by CSafeFlags< Enum >::operator!=(), CSafeFlags< Enum >::operator&(), operator<<(), CSafeFlags< Enum >::operator==(), CSafeFlags< Enum >::operator^(), CSafeFlags< Enum >::operator|(), and CSafeFlags< Enum >::operator~().
|
inline |
Definition at line 111 of file ncbiapp_api.hpp.
References CNcbiApplicationGuard::m_App.
Referenced by CNcbiApplicationGuard::operator*(), CNcbiApplicationGuard::operator->(), and s_CreateISynRegistry().
|
inline |
Definition at line 112 of file ncbiapp_api.hpp.
References CNcbiApplicationGuard::m_App.
Definition at line 1020 of file ncbimisc.hpp.
Referenced by IBISInteraction::GetGi(), and CObjectOStream::WriteGi().
|
inlinenoexcept |
Get pointer.
Definition at line 509 of file ncbimisc.hpp.
Referenced by CSeqMaskerUsetHash::add_ht_info(), CSeqMaskerUsetHash::add_vt_info(), CAutomaticGenCodeSingleton::AddGeneticCode(), CFileModules::AddModule(), CPSGL_Blob_Processor::AssignChunks(), CRPCClient< TRequest, TReply >::AsyncConnect(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::BlobSize(), BOOST_AUTO_TEST_CASE(), CAlignCompare::SAlignment::BreakOnBoundaries(), BuildAln(), CAutomaticGenCodeSingleton::CAutomaticGenCodeSingleton(), CCgiWatchFile::CCgiWatchFile(), CConnTest::CheckFWConnections(), CVDBBlastUtil::CheckVDBs(), CLadder::CLadder(), CSearch< LEGACY, NHITS >::ClearLadderCalc(), CompressNcbi2na(), CReaderServiceConnector::Connect(), CPssmCddInputTest::CreatePssmInput(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::CreateReader(), CTeeDiagHandler::CTeeDiagHandler(), CConnTest::DispatcherOkay(), CSeqMaskerOstatOpt::doFinalize(), CGffObjectLoader::Execute(), CConnTest::ExtraCheckOnFailure(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::Fetch(), CAliasTypeStrings::GenerateCode(), CAliasTypeStrings::GenerateUserHPPCode(), CDataType::GetAnyTypeInfo(), CTemplate1TypeStrings::GetArg1Type(), CTemplate2TypeStrings::GetArg2Type(), CNcbiTestApplication::GetArgDescrs(), CBlastSeqVectorFromCSeq_data::GetCompressedPlusStrand(), CBlastSeqVectorOM::GetCompressedPlusStrand(), CReaderServiceConnector::GetConnDescription(), CAutoPtrTypeInfo< Data >::GetData(), CPointerTypeStrings::GetDataTypeStr(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::GetDb(), CStringPairs< TExtraValuesMap >::GetDecoder(), CDataMember::GetDefault(), CUniSequenceDataType::GetElementType(), CStringPairs< TExtraValuesMap >::GetEncoder(), CConnTest::GetFWConnections(), CIdlerWrapper::GetIdler(), CBamDb::GetIdMapper(), CNcbiTestApplication::GetIniParser(), CTL_RowResult::GetItemInternal(), CSearch< LEGACY, NHITS >::GetLadderCalc(), CBAMDataLoader::GetLoaderNameFromArgs(), CTeeDiagHandler::GetLogName(), CMSHit::GetModInfo(), CMSPeakList::GetMZI(), CDataTypeModule::GetNamespace(), CTeeDiagHandler::GetOriginalHandler(), CFileCode::GetPrimaryClass(), CDataType::GetRealTypeInfo(), CDataMember::GetType(), CCgiWatchFile::HasChanged(), CConnTest::HttpOkay(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::InitDbMutex(), CDiagMatcher::IsErrCodeMatcher(), CPubseqReader::LoadGiHash(), CPubseqReader::LoadGiSeq_ids(), CPubseqReader::LoadSeq_idAccVer(), CPubseqReader::LoadSeq_idInfo(), main(), CStringPairs< TExtraValuesMap >::Merge(), MergeExternal(), NcbiOpenURL(), CPipeHandle::Open(), CLadder::operator[](), CRWStreambuf::overflow(), CStringPairs< TExtraValuesMap >::Parse(), CTeeDiagHandler::Post(), CSplitCacheApp::ProcessBlob(), CSplitCacheApp::ProcessEntry(), CPSGL_CDDAnnot_Processor::ProcessReplySlow(), PsiBlastComputePssmFromAlignment(), CBDB_File::ReadCursor(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::ReadRealloc(), CTeeDiagHandler::Reopen(), CMergeVolumes::Run(), CAsn2Asn::RunAsn2Asn(), CIdlerWrapper::RunIdler(), s_HttpConnectorBuilder(), s_IdLabel(), s_ServiceConnectorBuilder(), s_SocketConnectorBuilder(), s_TestCreatePssmFromFreqs(), CBamDb::SAADBImpl::SAADBImpl(), SERV_GetServers(), CConnTest::ServiceOkay(), CSearch< LEGACY, NHITS >::SetLadderCalc(), CMSHit::SetModInfo(), LinkHspTestFixture::setupLinkHspInputBlastn(), SetupQueries_OMF(), NuclWordFinderTextFixture::setupSequences(), SetupSubjects_OMF(), CFastaOstream::SetWidth(), CRWStreambuf::showmanyc(), CAlignCompare::SAlignment::Slice(), CConnTest::StatefulOkay(), CPSGL_Blob_Processor::TSE_ToOM(), CRWStreambuf::underflow(), CSDBAPI::UpdateMirror(), CSQLITE_Blob::Write(), CStreamLineReader::x_AdvanceEOLSimple(), CStreamLineReader::x_AdvanceEOLUnknown(), CRPCClient< TRequest, TReply >::x_Connect(), CRPCClient< TRequest, TReply >::x_ConnectURL(), CPsiBlastInputClustalW::x_CopyQueryToMsa(), CBDB_RawFile::x_DB_CPut(), CBDB_RawFile::x_DB_Fetch(), CBDB_RawFile::x_DB_Put(), CBDB_RawFile::x_DBC_Fetch(), CSDB_Decryptor::x_Decrypt(), CPsiBlastInputClustalW::x_ExtractAlignmentData(), CPsiBlastInputClustalW::x_ExtractQueryForPssm(), CPsiBlastInputClustalW::x_ExtractQueryFromMsa(), CBlastFastaInputSource::x_FastaToSeqLoc(), x_FormatError(), CId1Reader::x_GetConnection(), CId2Reader::x_GetConnection(), CPubseqReader::x_GetConnection(), CPubseq2Reader::x_GetConnection(), CGen_code_table::x_GetImplementation(), CSeqVector::x_GetIterator(), CLDS2_Database::x_GetStatement(), CLoadLockSetter::x_Init(), CGen_code_table::x_InitImplementation(), CId2FetchApp::x_InitPubSeqConnection(), CTSE_Split_Info::x_LoadChunks(), CPdfObject::x_PrintTo(), CId2FetchApp::x_ProcessData(), CPagedFile::x_ReadPage(), CPubseqReader::x_ReceiveData(), CSeqVector::x_ResetIterator(), CDBLBClientApp::x_RunWhatIs(), CDBLBClientApp::x_RunWhereIs(), CPubseq2Reader::x_SendPacket(), CId2FetchApp::x_SendRequestPacket(), CPsiBlastInputClustalW::x_ValidateQueryInMsa(), CFastaOstream::x_WriteSequence(), CRWStreambuf::xsgetn(), and CRWStreambuf::xsputn().
|
inlinenoexcept |
Get pointer.
Definition at line 664 of file ncbimisc.hpp.
Referenced by CCompressionStreambuf::CCompressionStreambuf(), CBamString::clear(), CLZOCompression::CompressBlock(), CTL_RowResult::CTL_RowResult(), CBamString::data(), CMySQL_LangCmd::EscapeString(), CDB_Object::GetLogString(), CBufferedLineReader::GetPosition(), CWigBufferedLineReader::GetPosition(), CArchiveMemory::Load(), CQueue::LoadFromDump(), CSeqVector_CI::operator--(), CSeqVector_CI::operator=(), CSparseKmerCounts::Reset(), CLZOBuffer::ResetBuffer(), CSeqVector_CI::SetPos(), CSeqVector_CI::x_BackupSize(), CSeqVector_CI::x_CacheOffset(), CSeqVector_CI::x_CacheSize(), CStatementBase::x_GetData(), CSeqVector_CI::x_InitializeCache(), CSeqVector_CI::x_NextCacheSeg(), CSeqVector_CI::x_PrevCacheSeg(), CBGZFFile::x_ReadBlock(), CBufferedLineReader::x_ReadBuffer(), CWigBufferedLineReader::x_ReadBuffer(), CSeqVector_CI::x_ResetBackup(), CSeqVector_CI::x_ResetCache(), CSeqVector_CI::x_ResizeCache(), CSeqVector_CI::x_SetPos(), CSeqVector_CI::x_SwapCache(), CSeqVector_CI::x_UpdateCacheDown(), and CSeqVector_CI::x_UpdateCacheUp().
|
static |
Definition at line 1366 of file ncbiapp.cpp.
References CNcbiApplicationAPI::eBaseName, eFollowLinks, CNcbiApplicationAPI::eFullName, eIgnoreLinks, CNcbiApplicationAPI::eRealName, CNcbiApplicationAPI::FindProgramExecutablePath(), CNcbiApplicationAPI::GetProgramDisplayName(), CNcbiApplicationAPI::GetProgramExecutablePath(), CNcbiApplicationAPI::InstanceGuard(), NULL, and CDirEntry::SplitPath().
Referenced by CDirEntry::CreateAbsolutePath(), FtaErrInit(), CDiagContext::GetAppName(), CDbapiSimpleApp::ParseArgs(), CCgiRequestProcessor::ProcessVersionRequest(), CFlat2AsnApp::Run(), s_GetProgramPath(), s_InitAllKNS(), s_ReportError(), and CNcbiApplicationAPI::SetProgramDisplayName().
|
inlineprotected |
Get argument descriptions (set by SetupArgDescriptions)
Definition at line 831 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_ArgDesc.
Referenced by CCgiApplication::GetArgs(), CCgiApplication::InitArgs(), CCgiRequestProcessor::OnException(), CCgiRequestProcessor::ProcessHelpRequest(), and CMakeScoreMethodApp::Run().
Get parsed command line arguments.
Get command line arguments parsed according to the arg descriptions set by SetupArgDescriptions(). Throw exception if no descriptions have been set.
Reimplemented in CCgiApplication.
Definition at line 293 of file ncbiapp.cpp.
References CNcbiApplicationAPI::m_Args, and NCBI_THROW.
Referenced by CReadBlastApp::AnalyzeSeqs(), CSamplePhoneHomePolicy::Apply(), CFileModules::BeginXMLSchema(), BOOST_AUTO_TEST_CASE(), CAlignCollapser::CAlignCollapser(), CNcbiApplogApp::Cmd_Generate(), CNcbiApplogApp::Cmd_Health(), CReadBlastApp::CollectFrameshiftedSeqs(), CPsgPerfApplication::ColorMe(), CBlastDBAliasApp::ConvertGiFile(), CBlastDBAliasApp::CreateAliasFile(), CNcbiEncryptApp::Decrypt(), CSdbapiSimpleApp::DemoDynamicSql(), CSdbapiSimpleApp::DemoParamerizedSql(), CSdbapiSimpleApp::DemoSqlInjection(), CSampleNetCacheClient::DemoStream(), CPsiBlastApp::DoIterations(), CReadBlastApp::dump_fasta_for_pretty_blast(), DumpExpected(), CNcbiEncryptApp::Encrypt(), CAlignCollapser::FilterAlignments(), CDataTool::GenerateCode(), CNcbiEncryptApp::GenerateKey(), SGridWorkerNodeImpl::GetArgs(), CCgiApplication::GetArgs(), CJniUtil::GetArgsFromNcbiApp(), CAlignCollapser::GetCollapsedAlgnments(), pub_report::CPubReportApp::GetEutilsOnly(), CDemoApp::GetIds(), pub_report::CPubReportApp::GetInputStream(), CIdMapperApp::GetMapper(), pub_report::CPubReportApp::GetMaxDateCheck(), CCodeGenerator::GetOpt(), pub_report::CPubReportApp::GetOutputStream(), subfuse::CSubfuseApp::GetOutputStream(), CMytestApplication::GetSeqEntry(), pub_report::CPubReportApp::GetSerialDataFormat(), CIdMapperApp::GetSourceIds(), CCleanupApp::HandleSeqEntry(), CFeatTreeSampleApp::Init(), CIgBlastnApp::Init_Worker_Threads(), CCgiApplication::InitArgs(), pub_report::CPubReportApp::IsJournalReport(), pub_report::CPubReportApp::IsUnpublishedReport(), CAlnVwrApp::LoadDenseg(), CAlnMrgApp::LoadInputAlns(), CId1FetchApp::LookUpGI(), NCBITEST_AUTO_INIT(), NCBITEST_INIT_VARIABLES(), SGridWorkerNodeImpl::OfflineRun(), CAsn2FastaApp::OpenFastaOstream(), CDbapiAdvancedFeaturesApp::ParseArgs(), CDbapiSimpleApp::ParseArgs(), CSdbapiSimpleApp::ParseArgs(), CProjBulderApp::ParseArguments(), CBlastFormatterApp::PrintFormattedOutput(), CBlastFormatterVdbApp::PrintFormattedOutput(), CAlnMrgApp::PrintMergedAln(), CAsn2FastaApp::PrintQualityScores(), CPsgPerfApplication::PrintResult(), CSplitCacheApp::Process(), CBlastDemoApplication::ProcessCommandLineArgs(), CDataTool::ProcessData(), CBam2GraphApp::ProcessFile(), CDataTool::ProcessModules(), CBiosampleChkApp::ProcessOneFile(), CBam2GraphApp::ProcessSrz(), CNcbiApplogApp::Redirect(), CDemoContigAssemblyApp::Run(), CMergeyApp::Run(), CNgAlignApp::Run(), CProSplignApp::Run(), CSRSearchApplication::Run(), CReadresult::Run(), COMSSA::Run(), COMSSAMerge::Run(), CDemoSeqQaApp::Run(), CBlastFormatterApp::Run(), CBlastUsageReportApp::Run(), CBlastnApp::Run(), CBlastpApp::Run(), CBlastxApp::Run(), CDeltaBlastApp::Run(), CPsiBlastApp::Run(), CRPSBlastApp::Run(), CRPSTBlastnApp::Run(), CSeedTopApp::Run(), CTblastnApp::Run(), CTblastxApp::Run(), CBlastDBAliasApp::Run(), CBlastdbConvertApp::Run(), CBlastDBCmdApp::Run(), CClusterDBCmdApp::Run(), CBlastFormatterVdbApp::Run(), CBlastVdbCmdApp::Run(), CCompartApp::Run(), CCompactSAMApplication::Run(), CExonSelectorApplication::Run(), CAppHitFilter::Run(), CIgBlastnApp::Run(), CIgBlastpApp::Run(), CMagicBlastApp::Run(), CPsgClientApp::Run(), CRMBlastnApp::Run(), CSplignApp::Run(), CSrcChkApp::Run(), seqsubmit_split::CSeqSubSplitter::Run(), CVecScreenApp::Run(), CDbapiDriverSampleApp::Run(), CDbapiSampleApp::Run(), CTestGuiRegistryApp::Run(), CGBProjectTool::Run(), CNcbiApplogApp::Run(), CTax4BlastDemo::Run(), CHugeFileDemoApp::Run(), CPsgClientSampleApp::Run(), CSdbapiTest::Run(), CSftpSampleApp::Run(), CAnnotWriterApp::Run(), CAsn2FastaApp::Run(), CAsn2FlatApp::Run(), CCleanupApp::Run(), CBiosampleChkApp::Run(), CDiscRepApp::Run(), CMultiReaderApp::Run(), pub_report::CPubReportApp::Run(), CPubmedFetchApplication::Run(), CTestRemoteUpdaterApplication::Run(), SGridWorkerNodeImpl::Run(), CGridWorkerApp::Run(), CThreadedApp::Run(), CAVApp::Run(), CAlignCleanupApplication::Run(), CTestCompartApplication::Run(), CDemoScoreBuilderApp::Run(), CBlastInputDemoApplication::Run(), CGumbelParamsApplication::Run(), CCkblastindexApplication::Run(), CBlastKmerApplication::Run(), CBlastKmerBuildIndexApplication::Run(), CClustererApplication::Run(), CMultiApplication::Run(), CLocalFinderApp::Run(), COmssa2pepxmlApplication::Run(), CAdapterSearchApplication::Run(), CCpGDemoApp::Run(), CGeneModelDemoApp::Run(), CRegexpLocApp::Run(), CXcompareAnnotsApplication::Run(), CWinMaskDemoApplication::Run(), CAgpValidateApplication::Run(), CAgpconvertApplication::Run(), CAsnCacheTestApplication::Run(), CCacheIndexCopyApp::Run(), CConcatSeqEntriesApplication::Run(), CAsnCacheDumpSeqIdsApplication::Run(), CPrimeCacheApplication::Run(), CReadIndexSpeedApp::Run(), CAsnSubCacheCreateApplication::Run(), CWalkAsnCacheApplication::Run(), BlastdbCopyApplication::Run(), CGuideTreeApplication::Run(), CVDBBlastnApp::Run(), CVDBTblastnApp::Run(), Cn3DNoWin::Run(), CCompartApplication::Run(), CConversionApp::Run(), CDBLBClientApp::Run(), CDustMaskApplication::Run(), CFeatImportApp::Run(), CFormatGuessApp::Run(), CGapStatsApplication::Run(), CGffDeconcatApp::Run(), CGi2TaxIdApp::Run(), CHgvsToSeqfeatConverter::Run(), CId1FetchApp::Run(), CId2FetchApp::Run(), CIdfetchApplication::Run(), CMultipatternApp::Run(), CNcbiEncryptApp::Run(), CNetScheduleDApp::Run(), CNetStorageDApp::Run(), CNetStorageGCApp::Run(), CNmer_repeatsApplication::Run(), CObjExtractApp::Run(), CDemoApp::Run(), CReadBlastApp::Run(), SegMaskerApplication::Run(), CMytestApplication::Run(), CSplitCacheApp::Run(), CStreamTestApp::Run(), subfuse::CSubfuseApp::Run(), CWig2tableApplication::Run(), CWinMaskApplication::Run(), CPsgPerfApplication::Run(), CBDB_CacheVerifyApp::Run(), CBDB_FileDumperApp::Run(), CRunTestApplication::Run(), CMysqlDemoApp::Run(), CTestApplication::Run(), CMakeScoreMethodApp::Run(), CColumnarVCFReaderApp::Run(), CEntrez2ClientApp::Run(), CAlnMrgApp::Run(), CAlnVwrApp::Run(), CTestIndexDetectionApp::Run(), CFetchGBProjectApp::Run(), CSampleAlnmgrApplication::Run(), CSampleAsnApplication::Run(), CSampleBasicApplication::Run(), CBlastDemoApplication::Run(), CBlastSampleApplication::Run(), VSRunSampleApplication::Run(), CEUtilsApp::Run(), CHttpSessionApp::Run(), CSampleLds2Application::Run(), CMultiCommandApplication::Run(), CSampleNetCacheClient::Run(), CGridClientSampleApp::Run(), CSampleNetScheduleClient::Run(), CSampleNetScheduleNode::Run(), CRemoteAppClientSampleApp::Run(), CSampleObjectsApplication::Run(), CEditBioseqSampleApp::Run(), CSampleObjmgrApplication::Run(), CBssInfoApp::Run(), CProcessHighestSeObjs::Run(), CSeqAnnotSplicerApp::Run(), CSampleLibtestApplication::Run(), CBam2GraphApp::Run(), CConvImageApp::Run(), CImageDemoApp::Run(), CSubImageApp::Run(), CGapStatsApplication::RunNoCatch(), CDbapiTestSpeedApp::RunSample(), CLangQueryApp::RunSample(), CAsn2FlatApp::SetFlatfileOstream(), CAlnMrgApp::SetOptions(), CSplitCacheApp::SetupCache(), CHttpSessionApp::SetupParam(), Verbose(), CAlnMrgApp::ViewMergedAln(), CAsn2FlatApp::WrapINSDSet(), CBlastFormatterApp::x_AddCmdOptions(), CBlastDBAliasApp::x_AddCmdOptions(), CBlastDBCmdApp::x_AddCmdOptions(), CConvert2BlastMaskApplication::x_AddCmdOptions(), CMakeBlastDBApp::x_AddCmdOptions(), CMakeClusterDBApp::x_AddCmdOptions(), CBlastFormatterVdbApp::x_AddCmdOptions(), CBlastVdbCmdApp::x_AddCmdOptions(), CMakeProfileDBApp::x_AddCmdOptions(), CNgAlignApp::x_AddFilters(), CNgAlignApp::x_AddScorers(), CMakeBlastDBApp::x_BuildDatabase(), CMakeClusterDBApp::x_BuildDatabase(), CDiscRepApp::x_ConstructOutputName(), CBlastDBAliasApp::x_ConvertSeqIDFile(), CNgAlignApp::x_CreateBlastAligner(), CNgAlignApp::x_CreateSequenceSet(), CBlastSampleApplication::x_CreateSSeqLoc(), CDiscRepApp::x_DefaultHeader(), CAppHitFilter::x_DoMultiple(), CAppHitFilter::x_DoPairwise(), CAppHitFilter::x_DumpOutput(), CWig2tableApplication::x_Error(), CAsnSubCacheCreateApplication::x_FetchMissingBlobs(), CAsn2FlatApp::x_FFGenerate(), CAsn2FlatApp::x_GenerateBatchMode(), CAsnSubCacheCreateApplication::x_GetBioseqHandle(), CBlastDBAliasApp::x_GetDbsToAggregate(), CBlastDBAliasApp::x_GetOperationMode(), CBlastVdbCmdApp::x_GetQueries(), CConvert2BlastMaskApplication::x_GetReader(), CDustMaskApplication::x_GetReader(), SegMaskerApplication::x_GetReader(), CGapStatsApplication::x_GetScope(), CMakeBlastDBApp::x_GetUserInputTypeHint(), CConvert2BlastMaskApplication::x_GetWriter(), CDustMaskApplication::x_GetWriter(), SegMaskerApplication::x_GetWriter(), CAgpconvertApplication::x_HandleTaxArgs(), CBlastVdbCmdApp::x_InitApplicationData(), CBlastDBCmdApp::x_InitBlastDB(), CBlastDBCmdApp::x_InitBlastDB_TaxIdList(), CAsn2FlatApp::x_InitNewContext(), CMakeProfileDBApp::x_InitProgramParameters(), CId2FetchApp::x_InitPubSeqConnection(), CBlastDBCmdApp::x_InitSearchRequest(), CAgpconvertApplication::x_IsAnySimpleSubsourceArgSet(), CAppHitFilter::x_LoadConstraints(), CNgAlignApp::x_LoadExternalSequences(), CColumnarVCFReaderApp::x_LoadSerializedData(), CAgpconvertApplication::x_LoadTemplate(), CColumnarVCFReaderApp::x_LoadVCFFile(), CNcbiApplicationAPI::x_LogOptions(), CClusterDBCmdApp::x_OpenDb(), CAsn2FastaApp::x_OpenIStream(), CCleanupApp::x_OpenOStream(), CDiscRepApp::x_Output(), CDiscRepApp::x_ParseDirectory(), CBlastDBCmdApp::x_PrintBlastDatabaseInformation(), CBlastVdbCmdApp::x_PrintBlastDatabaseInformation(), CBlastDBCmdApp::x_PrintBlastDatabaseTaxInformation(), CBlastVdbCmdApp::x_PrintVDBPaths(), CPrimeCacheApplication::x_Process_Fasta(), CPrimeCacheApplication::x_Process_SeqEntry(), CClusterDBCmdApp::x_ProcessAccession(), CBlastDBCmdApp::x_ProcessBatchEntry(), CBlastDBCmdApp::x_ProcessBatchEntry_NoDup(), CBlastDBCmdApp::x_ProcessBatchPig(), CClusterDBCmdApp::x_ProcessCommonAncestor(), CBlastDBCmdApp::x_ProcessEntry(), CHugeFileDemoApp::x_ProcessFileTraditionally(), CMakeBlastDBApp::x_ProcessInputData(), CAsn2FastaApp::x_ProcessISubdirectory(), CMakeBlastDBApp::x_ProcessMaskData(), CCleanupApp::x_ProcessOneFile(), CClusterDBCmdApp::x_ProcessRepresentative(), CBlastDBCmdApp::x_ProcessSearchRequest(), CBlastVdbCmdApp::x_ProcessSearchRequest(), CBlastDBCmdApp::x_ProcessSearchType(), CClusterDBCmdApp::x_ProcessTaxid(), CAppHitFilter::x_ReadInputHits(), CHugeFileDemoApp::x_RunDemo(), CPsiBlastApp::x_RunLocalPsiBlastIterations(), CDBLBClientApp::x_RunLookup(), CBlastnApp::x_RunMTBySplitDB(), CBlastpApp::x_RunMTBySplitDB(), CBlastxApp::x_RunMTBySplitDB(), CRPSBlastApp::x_RunMTBySplitDB(), CRPSTBlastnApp::x_RunMTBySplitDB(), CTblastnApp::x_RunMTBySplitDB(), CBlastnApp::x_RunMTBySplitQuery(), CBlastpApp::x_RunMTBySplitQuery(), CBlastxApp::x_RunMTBySplitQuery(), CRPSBlastApp::x_RunMTBySplitQuery(), CRPSTBlastnApp::x_RunMTBySplitQuery(), CTblastnApp::x_RunMTBySplitQuery(), CAppNWA::x_RunOnPair(), CDBLBClientApp::x_RunWhatIs(), CDBLBClientApp::x_RunWhereIs(), CBlastDBAliasApp::x_SeqIDFileInfo(), CSplignApp::x_SetupBlastOptions(), CVDBBlastnApp::x_SetupLocalVDBSearch(), CVDBTblastnApp::x_SetupLocalVDBSearch(), CMakeBlastDBApp::x_ShouldParseSeqIds(), CBlastDBCmdApp::x_UseLongSeqIds(), CNetScheduleDApp::x_WritePid(), CNetStorageDApp::x_WritePid(), CAnnotWriterApp::xAssemblyAccession(), CAnnotWriterApp::xAssemblyName(), seqsubmit_split::CSeqSubSplitter::xGetInputObject(), seqsubmit_split::CSeqSubSplitter::xInitInputStream(), CAnnotWriterApp::xProcessInputObject(), and seqsubmit_split::CSeqSubSplitter::xTryProcessSeqEntries().
|
inline |
Get the application's cached unprocessed command-line arguments.
Definition at line 768 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_Arguments.
Referenced by COMSSA::AppInit(), CSamplePhoneHomePolicy::Apply(), CNcbiApplogApp::Cmd_Generate(), CCgiStatistics::Compose_ProgramName(), CNcbiApplicationAPI::FindProgramExecutablePath(), CMetaRegistry::GetDefaultSearchPath(), CDemoContigAssemblyApp::Init(), CNgAlignApp::Init(), CSRSearchApplication::Init(), CDemoSeqQaApp::Init(), CBlastFormatterApp::Init(), CBlastUsageReportApp::Init(), CSeedTopApp::Init(), CBlastDBAliasApp::Init(), CBlastdbConvertApp::Init(), CBlastDBCmdApp::Init(), CClusterDBCmdApp::Init(), CMakeBlastDBApp::Init(), CMakeClusterDBApp::Init(), CBlastFormatterVdbApp::Init(), CBlastVdbCmdApp::Init(), CCompartApp::Init(), CCompactSAMApplication::Init(), CExonSelectorApplication::Init(), CCgi2RCgiApp::Init(), CAppHitFilter::Init(), CIdMapperApp::Init(), CAppNWA::Init(), CPsgClientApp::Init(), CSplignApp::Init(), CSrcChkApp::Init(), seqsubmit_split::CSeqSubSplitter::Init(), CVecScreenApp::Init(), CDbapiDriverSampleApp::Init(), CDbapiSampleApp::Init(), CGBProjectTool::Init(), CNcbiApplogApp::Init(), CTax4BlastDemo::Init(), CHugeFileDemoApp::Init(), CDbapiAdvancedFeaturesApp::Init(), CPsgClientSampleApp::Init(), CSdbapiTest::Init(), CSftpSampleApp::Init(), CBiosampleChkApp::Init(), pub_report::CPubReportApp::Init(), CGridWorkerApp::Init(), CThreadedApp::Init(), CRemoteCgiApp::Init(), CAVApp::Init(), CAlignCleanupApplication::Init(), CProSplignApp::Init(), CTestCompartApplication::Init(), CBlastInputDemoApplication::Init(), CGumbelParamsApplication::Init(), CCkblastindexApplication::Init(), CClustererApplication::Init(), CMultiApplication::Init(), COmssa2pepxmlApplication::Init(), CAdapterSearchApplication::Init(), CCpGDemoApp::Init(), CRegexpLocApp::Init(), CXcompareAnnotsApplication::Init(), CWinMaskDemoApplication::Init(), CAgpValidateApplication::Init(), CAgpconvertApplication::Init(), CAsnCacheTestApplication::Init(), CCacheIndexCopyApp::Init(), CConcatSeqEntriesApplication::Init(), CAsnCacheDumpSeqIdsApplication::Init(), CPrimeCacheApplication::Init(), CReadIndexSpeedApp::Init(), CAsnSubCacheCreateApplication::Init(), CWalkAsnCacheApplication::Init(), CBDBEnvKeeperApp::Init(), CBlastDbCheckApplication::Init(), BlastdbCopyApplication::Init(), CConvert2BlastMaskApplication::Init(), CGuideTreeApplication::Init(), Cn3DNoWin::Init(), CCompartApplication::Init(), CConversionApp::Init(), CDBLBClientApp::Init(), CDustMaskApplication::Init(), CFeatImportApp::Init(), CFormatGuessApp::Init(), CGapStatsApplication::Init(), CHgvsToSeqfeatConverter::Init(), CId1FetchApp::Init(), CId2FetchApp::Init(), CIdfetchApplication::Init(), CMultipatternApp::Init(), CNcbiEncryptApp::Init(), CNetScheduleDApp::Init(), CNetStorageDApp::Init(), CNetStorageGCApp::Init(), CNmer_repeatsApplication::Init(), CObjExtractApp::Init(), CDemoApp::Init(), CReadBlastApp::Init(), SegMaskerApplication::Init(), CMytestApplication::Init(), CSplitCacheApp::Init(), CStreamTestApp::Init(), subfuse::CSubfuseApp::Init(), CWig2tableApplication::Init(), CWinMaskApplication::Init(), CProjBulderApp::Init(), CPsgPerfApplication::Init(), CNcbiTestApplication::Init(), CBDB_CacheVerifyApp::Init(), CBDB_FileDumperApp::Init(), CRunTestApplication::Init(), CMysqlDemoApp::Init(), CObjConvProfile::Init(), CAppJobTestApplication::Init(), CTestDispatchApp::Init(), CMakeScoreMethodApp::Init(), CColumnarVCFReaderApp::Init(), CEntrez2ClientApp::Init(), CAlnMrgApp::Init(), CAlnVwrApp::Init(), CTestIndexDetectionApp::Init(), CFetchGBProjectApp::Init(), CSampleAlnmgrApplication::Init(), CSampleAsnApplication::Init(), CSampleBasicApplication::Init(), CBlastDemoApplication::Init(), CBlastSampleApplication::Init(), VSRunSampleApplication::Init(), CDbapiSimpleApp::Init(), CEUtilsApp::Init(), CHttpSessionApp::Init(), CSampleLds2Application::Init(), CMultiCommandApplication::Init(), CSampleNetCacheClient::Init(), CGridClientSampleApp::Init(), CSampleNetScheduleClient::Init(), CSampleNetScheduleNode::Init(), CRemoteAppClientSampleApp::Init(), CSampleObjectsApplication::Init(), CEditBioseqSampleApp::Init(), CFeatTreeSampleApp::Init(), CSampleObjmgrApplication::Init(), CSdbapiSimpleApp::Init(), CBssInfoApp::Init(), CProcessHighestSeObjs::Init(), CSeqAnnotSplicerApp::Init(), CSampleSoapClientApplication::Init(), CSampleLibtestApplication::Init(), CBam2GraphApp::Init(), CConvImageApp::Init(), CImageDemoApp::Init(), CSubImageApp::Init(), CBlastFormatterApp::PrintFormattedOutput(), CBlastFormatterVdbApp::PrintFormattedOutput(), CNcbiApplogApp::PrintTokenInformation(), CCommandArgDescriptions::PrintUsage(), CNcbiApplogApp::Redirect(), CDeltaBlastApp::Run(), CPsiBlastApp::Run(), CTblastxApp::Run(), CMagicBlastApp::Run(), CTest::Run(), CVDBBlastnApp::Run(), CVDBTblastnApp::Run(), Cn3DNoWin::Run(), CTestApplication::Run(), CAdvancedAlignCleanup::SetParams(), CNcbiApplicationAPI::SetupArgDescriptions(), CCgiApplication::ShouldRestart(), CNetScheduleHandler::x_ProcessHealth(), CFastCgiApplicationMT::x_RunFastCGI(), CBlastnApp::x_RunMTBySplitDB(), CBlastpApp::x_RunMTBySplitDB(), CBlastxApp::x_RunMTBySplitDB(), CRPSBlastApp::x_RunMTBySplitDB(), CRPSTBlastnApp::x_RunMTBySplitDB(), CTblastnApp::x_RunMTBySplitDB(), CBlastnApp::x_RunMTBySplitQuery(), CBlastpApp::x_RunMTBySplitQuery(), CBlastxApp::x_RunMTBySplitQuery(), CRPSBlastApp::x_RunMTBySplitQuery(), CRPSTBlastnApp::x_RunMTBySplitQuery(), CTblastnApp::x_RunMTBySplitQuery(), CNCBIwxApplication::x_SetupArgDescriptions(), CTestBMApp::x_SetupArgDescriptions(), CMakeProfileDBApp::x_SetupArgDescriptions(), CCgiSampleApplication::x_SetupArgs(), CFastCgiMTSampleApplication::x_SetupArgs(), CGridCgiSampleApplication::x_SetupArgs(), and CNcbiApplicationAPI::x_TryInit().
|
inline |
Definition at line 789 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_Config.
|
inline |
Get the application's cached configuration parameters (read-only).
Application also can use protected GetRWConfig() to get read-write
Definition at line 783 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_Config.
Referenced by CCgiApplication::AddLBCookie(), NWinHook::CApiHookMgr::CApiHookMgr(), CBlastDBExtractor::CBlastDBExtractor(), CBlastFormat::CBlastFormat(), CConnIniter::CConnIniter(), CDataSourceInitializer::CDataSourceInitializer(), CFastaBioseqSource::CFastaBioseqSource(), CGI2GRID_ComposeHtmlPage(), CGridRPCBaseClient< CAsnBinCompressed >::CGridRPCBaseClient(), CCgiApplication::CheckMemoryLimit(), CCgiStatistics::Compose(), CCgiStatistics::Compose_Entries(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CDBConnectionFactory::ConfigureFromRegistry(), CDBUDRandomMapper::ConfigureFromRegistry(), CDBUDPriorityMapper::ConfigureFromRegistry(), CDBUniversalMapper::ConfigureFromRegistry(), CPluginManager< TClass >::CPluginManager(), CProjectsLstFileFilter::CProjectsLstFileFilter(), CPSGDataLoader_Impl::CPSGDataLoader_Impl(), CCgiApplication::CreateContextWithFlags_Default(), CCgiApplication::CreateFastCGIWatchFile(), CGraphCacheFactory::CreateObject(), CSampleNetCacheClient::DemoIWriterIReader(), CSampleNetCacheClient::DemoStream(), CSeqFormatter::DumpAll(), EnabledDelayBuffers(), CProjBulderApp::EnumOpt(), CIgBlastArgs::ExtractAlgorithmOptions(), CDebugArgs::ExtractAlgorithmOptions(), FindBlastDbPath(), CProjBulderApp::FindDepGraph(), g_GetConfigDouble(), g_GetConfigFlag(), g_GetConfigInt(), g_GetConfigString(), CSeqDBAtlas::GenerateSearchPath(), CRmtScriptTimeout::Get(), CProjBulderApp::GetBuildConfigs(), CCgiContext::GetConfig(), CProjBulderApp::GetConfigureMacro(), CProjBulderApp::GetDatatoolCommandLine(), CProjBulderApp::GetDatatoolId(), CProjBulderApp::GetDatatoolPathForApp(), CProjBulderApp::GetDatatoolPathForLib(), GetDefaultTmsContext(), CWinMaskerFileStorage::GetEnvPath(), CCgiApplication::GetFastCGIChannelErrors(), CCgiApplication::GetFastCGIComplete_Request_On_Sigterm(), CCgiApplication::GetFastCGIDebug(), CCgiApplication::GetFastCGIHonorExitRequest(), CCgiApplication::GetFastCGIIterations(), CCgiApplication::GetFastCGIMTMaxThreads(), CCgiApplication::GetFastCGIStandaloneServer(), CCgiApplication::GetFastCGIStatLog(), CCgiApplication::GetFastCGIStopIfFailed(), CCgiApplication::GetFastCGIWatchFileRestartDelay(), CCgiApplication::GetFastCGIWatchFileTimeout(), CGencollSvc::GetGenCollService(), GetLinksURL(), CCgiApplication::GetLogOpt(), CProjBulderApp::GetMetaDataFiles(), CProjBulderApp::GetProjectTreeInfo(), CProjBulderApp::GetRegSettings(), CCgiSessionSampleApplication::GetSessionStorage(), CSysLog::HonorRegistrySettings(), CSeqTextDemoDlg::Init(), CCgiApplication::Init(), CGridClientApp::Init(), CSDBAPI::Init(), CGlCgiImageApplication::Init(), CCgiRedirectApplication::Init(), CDemoApp::Init(), CCgiApplicationCached::Init(), CGridCgiApplication::InitGridClient(), CProjBulderApp::ParseArguments(), CProjBulderApp::ProcessLocationMacros(), impl::CDriverContext::ReadDBConfParams(), CSrcChkApp::Run(), CAnnotWriterApp::Run(), CAsn2FastaApp::Run(), CAsn2FlatApp::Run(), CCleanupApp::Run(), CCgiApplication::Run(), CNCBIwxApplication::Run(), CAgpValidateApplication::Run(), CBDBEnvKeeperApp::Run(), CId2FetchApp::Run(), CNetScheduleDApp::Run(), CNetStorageDApp::Run(), CNetStorageGCApp::Run(), CDemoApp::Run(), CSampleAlnmgrApplication::Run(), CEditBioseqSampleApp::Run(), CSampleObjmgrApplication::Run(), CTrackMgrClient::s_Ask(), s_CreateISynRegistry(), s_GetConfigString(), s_GetMandatoryFields(), s_init_LookForMultipleIsolates(), s_init_UseGeoLocNameForCountry(), s_InitAllKNS(), CGraphTrack::s_InitICache(), CBrowserUtils::SendToBrowser(), ColumnarVcfCache::SetInfoFields(), CFeaturePanel::SetInputObject(), CAsnvalApp::Setup(), CBiosampleChkApp::Setup(), CSplitCacheApp::SetupCache(), SEutilsParams::SEutilsParams(), CMakeBlastDBApp::x_BuildDatabase(), CNetStorageGCApp::x_CheckExpiration(), CDebugDumpViewer::x_CheckLocation(), CODBC_Connection::x_Connect(), CGBDataLoader_Native::x_CreateDriver(), CNetStorageHandler::x_CreateObjectStream(), CQueueDataBase::x_GetConfigQueues(), CNetCacheBlobFetchApp::x_GetInitString(), CSDB_Decryptor::x_GetKey(), CNetStorageHandler::x_GetObject(), NSNPWebServices::x_GetSearchHost(), CDBLBClientApp::x_GetServiceMapper(), CGuiObjectInfoVariation::x_GetTooltipService(), CRmtFileStatus::x_Init(), SDataLoaderConfig::x_Init(), CBlastFormat::x_InitAlignTemplates(), CBlastFormat::x_InitDeflineTemplates(), CDataCrawlerCache::x_InitICache(), CEutilsClient::x_InitParams(), CDiagContext::x_LogEnvironment(), CNcbiApplicationAPI::x_LogOptions(), CNetStorageHandler::x_ProcessConfiguration(), CNetScheduleHandler::x_ProcessGetConf(), CCleanupApp::x_ProcessOneFile(), CNetStorageHandler::x_ProcessReconfigure(), CNetScheduleHandler::x_ProcessReloadConfig(), CNcbiTestApplication::x_ReadConfiguration(), CNSTDatabase::x_ReadDbAccessInfo(), CNetStorageGCApp::x_RemoveObjects(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CDataLoadersUtil::x_SetupVDBDataLoader(), CSequenceSearchForm::x_UpdateFileList(), COrfSearchForm::x_UpdateKozak(), CBlastDBCmdApp::x_UseLongSeqIds(), CTaxonomyUpdater::xSetFromConfig(), and CPubmedUpdater::xSetFromConfig().
Get the full path to the configuration file (if any) we ended up using.
Definition at line 799 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_ConfigPath.
Referenced by CProjBulderApp::GetSite(), CProjBulderApp::ParseArguments(), CNcbiApplicationAPI::ReloadConfig(), CNetScheduleDApp::Run(), CNetStorageDApp::Run(), CServiceThread::x_CheckConfigFile(), CNetStorageServiceThread::x_CheckConfigFile(), CNetScheduleHandler::x_ProcessHealth(), CNetStorageHandler::x_ProcessReconfigure(), CNetScheduleHandler::x_ProcessReloadConfig(), and CCgiSessionSampleApplication::x_ShowConfigFile().
|
inline |
Get the application's cached environment.
Definition at line 773 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_Environ.
Referenced by CGRPCServerCallbacks::BeginRequest(), BlastFindMatrixPath(), BOOST_AUTO_TEST_CASE(), CCgiUserAgent::CCgiUserAgent(), CNcbiApplogApp::Cmd_Health(), CreateConfigurableFile(), FindBlastDbPath(), CSampleLibraryObject::FindInPath(), CNcbiApplicationAPI::FindProgramExecutablePath(), CProjBulderApp::GenerateMsvcProjects(), CCgiSampleApplication::GetCdVersion(), CArgDescDefault::GetDefaultValue(), SGridWorkerNodeImpl::GetEnvironment(), CMsvcConfigure::GetSignature(), CSeqTestApplication::Init(), CQueryParseTree::Parse(), CCgiSampleApplication::ProcessPrintEnvironment(), CNcbiApplogApp::Redirect(), CGridCommandLineInterfaceApp::Run(), CNcbiApplogApp::Run(), CCgiApplication::Run(), ASNIOTestApp::Run(), s_init_LookForMultipleIsolates(), s_init_NewTaxVal(), s_init_UseGeoLocNameForCountry(), CMsvcConfigure::WriteBuildVer(), CMakeBlastDBApp::x_BuildDatabase(), CRequestContext::x_LoadEnvContextProperties(), CDiagContext::x_LogEnvironment(), and CNcbiApplicationAPI::x_LogOptions().
|
overridevirtual |
Translate from the error code value to its string representation.
Reimplemented from CCoreException.
Definition at line 1762 of file ncbiapp.cpp.
References CAppException::eLoadConfig, CAppException::eNoRegistry, CAppException::eSecond, CAppException::eSetupDiag, CAppException::eUnsetArgs, CCoreException::GetErrCode(), and CException::GetErrCodeString().
| const CVersionAPI & CNcbiApplicationAPI::GetFullVersion | ( | void | ) | const |
Get the program version information.
Definition at line 1177 of file ncbiapp.cpp.
References CNcbiApplicationAPI::m_Version.
Referenced by CNcbiApplicationAPI::AppMain(), CDataTool::GenerateCode(), CCgiApplication::PreparseArgs(), CDiagContext_Extra::PrintNcbiAppInfoOnRequest(), CDiagContext_Extra::PrintNcbiAppInfoOnStart(), CCgiRequestProcessor::ProcessVersionRequest(), CAsn2FastaApp::Run(), CAsn2FlatApp::Run(), and SGridWorkerNodeImpl::Run().
| INcbiIdler* GetIdler | ( | EOwnership | ownership = eNoOwnership | ) |
Return currently installed idler or NULL.
Update idler ownership according to the flag.
Definition at line 1828 of file ncbiapp.cpp.
References s_IdlerWrapper.
|
staticprotected |
Definition at line 119 of file ncbiapp.cpp.
References s_InstanceRWLock.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationGuard::CNcbiApplicationGuard(), and CNcbiApplicationAPI::~CNcbiApplicationAPI().
|
static |
Mutex for application singleton object.
Lock this mutex when calling Instance()
Definition at line 111 of file ncbiapp.cpp.
| const SDiagMessage & CNcbiToolkit_LogMessage::GetNativeToolkitMessage | ( | void | ) | const |
Get all of the message's data – as provided natively by the Toolkit.
Definition at line 80 of file ncbi_toolkit.cpp.
References ncbi::CNcbiToolkit_LogMessage::m_Msg.
|
inlineprotected |
Return pointer to current Phone Home Policy or NULL.
Definition at line 646 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_PhoneHomePolicy.
Get the application's "display" name.
Get name of this application, suitable for displaying or for using as the base name for other files. Will be the 'name' argument of AppMain if given. Otherwise will be taken from the actual name of the application file or argv[0].
Definition at line 819 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_ProgramDisplayName.
Referenced by CCgiRequest::CalcChecksum(), CRemoteAppLauncher::CRemoteAppLauncher(), CWindowsCmdErrorHandler::CWindowsCmdErrorHandler(), CDataTool::GenerateCode(), SGridWorkerNodeImpl::GetAppName(), CNcbiApplicationAPI::GetAppName(), CUsageReportAPI::GetAppName(), SNetServiceImpl::Init(), CThreadInPool_ForServer::Main(), CAsyncDiagThread::Main(), CCgiApplication::PreparseArgs(), CAsn2FastaApp::Run(), CAsn2FlatApp::Run(), s_GetAppName(), impl::s_TransformLoginData(), CArgDescriptions::SetUsageContext(), CNCBIwxApplication::x_Init_wxApplication(), CNCBIwxApplication::x_SetupArgDescriptions(), and CMultiReaderApp::xSetFormat().
|
inline |
Get the application's executable path.
The path to executable file of this application. Return empty string if not possible to determine this path.
Definition at line 825 of file ncbiapp_api.hpp.
References eFollowLinks, CNcbiApplicationAPI::m_ExePath, and CNcbiApplicationAPI::m_RealExePath.
Referenced by CNcbiApplicationAPI::AppStart(), createAnnot(), CNcbiApplicationAPI::GetAppName(), GetDefaultLogLocation(), CCgiApplication::GetDefaultLogPath(), SNetServiceImpl::MakeAuthString(), CDiagContext_Extra::PrintNcbiAppInfoOnStart(), CGetStatisticsProcessor::Process(), CCgiRequestProcessor::ProcessHelpRequest(), COMSSA::Run(), CNcbiApplogApp::Run(), COmssa2pepxmlApplication::Run(), CDiagContext::SetupDiag(), SNetStorageRPC::SNetStorageRPC(), SNetStorage::SConfig::Validate(), CNcbiApplicationAPI::x_LogOptions(), and CNetScheduleHandler::x_ProcessHealth().
|
inlineprotected |
Get the application's cached configuration parameters, accessible for read-write for an application's internal use only.
Definition at line 794 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_Config.
Referenced by CFakeApplication::CFakeApplication(), CNcbiTestApplication::GetTestRWConfig(), CCgi2RCgiApp::Init(), CRemoteCgiApp::Init(), CStreamTestApp::Init(), CHelloApp::LoadResource(), CProjBulderApp::ParseArguments(), CCgiApplication::ProcessHttpReferer(), CGridCgiApplication::ProcessRequest(), CNcbiApplicationAPI::ReloadConfig(), CGridCommandLineInterfaceApp::Run(), CAsnSubCacheCreateApplication::Run(), CDemoApp::Run(), CGridCommandLineInterfaceApp::SetUp_NetCache(), and CSplitCacheApp::SetupCache().
|
inline |
Get a const reference to the current value.
If NULL, the reference is a copy of the default value or throw (depending on TNullToValue implementation). In any case the IsNull state is unchanged.
Definition at line 802 of file ncbimisc.hpp.
Referenced by CGBLoaderParams::GetEnableCDD(), CReaderParams::GetEnableCDD(), CGBLoaderParams::GetEnableSNP(), CReaderParams::GetEnableSNP(), CGBLoaderParams::GetEnableWGS(), CReaderParams::GetEnableWGS(), CPSGL_Blob_Processor::GetWaitDeadline(), operator<<(), ncbi::grid::netcache::search::SBlobInfoImpl::operator[](), CPSG_BlobId::Repr(), CJsonResponse::Set(), CPSG_Request_IpgResolve::x_GetAbsPathRef(), CPSG_Request_IpgResolve::x_GetId(), and CNetStorageObjectLoc::x_Pack().
| CVersionInfo CNcbiApplicationAPI::GetVersion | ( | void | ) | const |
Get the program version information.
Definition at line 1172 of file ncbiapp.cpp.
References CVersionAPI::GetVersionInfo(), and CNcbiApplicationAPI::m_Version.
Referenced by CSamplePhoneHomePolicy::Apply(), BlastdbCopyApplication::BlastdbCopyApplication(), CBlastDBAliasApp::CBlastDBAliasApp(), CBlastDbCheckApplication::CBlastDbCheckApplication(), CBlastDBCmdApp::CBlastDBCmdApp(), CBlastdbConvertApp::CBlastdbConvertApp(), CBlastFormatterApp::CBlastFormatterApp(), CBlastFormatterVdbApp::CBlastFormatterVdbApp(), CBlastnApp::CBlastnApp(), CBlastpApp::CBlastpApp(), CBlastVdbCmdApp::CBlastVdbCmdApp(), CBlastxApp::CBlastxApp(), CClusterDBCmdApp::CClusterDBCmdApp(), CConvert2BlastMaskApplication::CConvert2BlastMaskApplication(), CDeltaBlastApp::CDeltaBlastApp(), CMagicBlastApp::CMagicBlastApp(), CMakeBlastDBApp::CMakeBlastDBApp(), CMakeClusterDBApp::CMakeClusterDBApp(), CMakeProfileDBApp::CMakeProfileDBApp(), CNcbiApplogApp::Cmd_Health(), CMultiApplication::CMultiApplication(), CPsiBlastApp::CPsiBlastApp(), CRPSBlastApp::CRPSBlastApp(), CRPSTBlastnApp::CRPSTBlastnApp(), CTblastnApp::CTblastnApp(), CTblastxApp::CTblastxApp(), CVDBBlastnApp::CVDBBlastnApp(), CVDBTblastnApp::CVDBTblastnApp(), CProjBulderApp::GenerateUnixProjects(), CUsageReportAPI::GetAppVersion(), CFileModules::GetRefInfo(), CIgBlastnApp::Init(), CIgBlastpApp::Init(), CAgpValidateApplication::Init(), CSampleSoapServerApplication::Init(), CCgiRequestProcessor::ProcessVersionRequest(), CMagicBlastApp::Run(), CNcbiApplogApp::Run(), CProjBulderApp::Run(), s_InitAllKNS(), SCommonDumpHeader::SCommonDumpHeader(), CTable2AsnContext::UpdateSubmitObject(), CQueueDataBase::x_CheckOpenPreconditions(), and CQueueDataBase::x_CreateStorageVersionFile().
|
inline |
Check if the config file has been loaded.
Definition at line 804 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_ConfigPath.
Referenced by s_GetConfigString().
|
protected |
Set the hide mask for the Hide Std Flags.
Definition at line 1300 of file ncbiapp.cpp.
References CNcbiApplicationAPI::m_HideArgs.
Referenced by CEntrez2ClientApp::CEntrez2ClientApp(), CBlastFormatterApp::Init(), CBlastUsageReportApp::Init(), CBlastnApp::Init(), CBlastpApp::Init(), CBlastxApp::Init(), CDeltaBlastApp::Init(), CPsiBlastApp::Init(), CRPSBlastApp::Init(), CRPSTBlastnApp::Init(), CSeedTopApp::Init(), CTblastnApp::Init(), CTblastxApp::Init(), CBlastDBAliasApp::Init(), CBlastdbConvertApp::Init(), CBlastDBCmdApp::Init(), CClusterDBCmdApp::Init(), CMakeBlastDBApp::Init(), CMakeClusterDBApp::Init(), CBlastFormatterVdbApp::Init(), CBlastVdbCmdApp::Init(), CCompartApp::Init(), CAppHitFilter::Init(), CIgBlastnApp::Init(), CIgBlastpApp::Init(), CMagicBlastApp::Init(), CAppNWA::Init(), CRMBlastnApp::Init(), CSplignApp::Init(), CVecScreenApp::Init(), CTax4BlastDemo::Init(), CBlastInputDemoApplication::Init(), CGumbelParamsApplication::Init(), CBlastKmerApplication::Init(), CBlastKmerBuildIndexApplication::Init(), CClustererApplication::Init(), CMultiApplication::Init(), CAgpconvertApplication::Init(), CBlastDbCheckApplication::Init(), BlastdbCopyApplication::Init(), CConvert2BlastMaskApplication::Init(), CGuideTreeApplication::Init(), CVDBBlastnApp::Init(), CVDBTblastnApp::Init(), CDustMaskApplication::Init(), CNmer_repeatsApplication::Init(), SegMaskerApplication::Init(), CWinMaskApplication::Init(), CBlastSampleApplication::Init(), VSRunSampleApplication::Init(), and CMakeProfileDBApp::x_SetupArgDescriptions().
|
virtual |
Implements INcbiIdler.
Definition at line 1775 of file ncbiapp.cpp.
References DiagHandler_Reopen().
|
pure virtual |
Implemented in CDefaultIdler.
Referenced by CIdlerWrapper::RunIdler().
|
inlinevirtual |
Initialize policy/reporting API.
Reimplemented in CSamplePhoneHomePolicy.
Definition at line 90 of file phone_home_policy.hpp.
|
virtual |
Initialize the application.
The default behavior of this is "do nothing". If you have special initialization logic that needs to be peformed, then you must override this method with your own logic.
Reimplemented in CFastCgiMTSampleApplication, CCgiApplicationCached, CSubImageApp, CImageDemoApp, CConvImageApp, CCacheDemoApp, CBam2GraphApp, CDataTool, CSampleLibtestApplication, CSampleSoapServerApplication, CSampleSoapClientApplication, CSeqAnnotSplicerApp, CProcessHighestSeObjs, CBssInfoApp, CSdbapiSimpleApp, CSampleObjmgrApplication, CFeatTreeSampleApp, CEditBioseqSampleApp, CSampleObjectsApplication, CRemoteAppClientSampleApp, CCgiSampleApplication, CSampleNetScheduleNode, CSampleNetScheduleClient, CGridClientSampleApp, CGridCgiSampleApplication, CSampleNetCacheClient, CCgiSampleApplication, CMultiCommandApplication, CSampleLds2Application, CHttpSessionApp, CEUtilsApp, CCgiSampleApplication, CDbCopyApp, CDbapiSimpleApp, CCgiSampleApplication, VSRunSampleApplication, CBlastDemoApplication, CBlastSampleApplication, CBlastDemoApplication, CSampleBasicApplication, CSampleAsnApplication, CSampleAlnmgrApplication, CAnalyzeShiftApp, CFetchGBProjectApp, CAce2AsnApp, CTestIndexDetectionApp, CAlnVwrApp, CAlnMrgApp, CAlnTestApp, CAlnBuildApp, CClientGenomicCollectionsSvcApplication, CEntrez2ClientApp, CApp, CColumnarVCFReaderApp, CMakeScoreMethodApp, CTestDispatchApp, CAppJobTestApplication, CTestBMApp, CObjConvProfile, CTestApplication, CMysqlDemoApp, CRunTestApplication, CRunTestApplication, CBDB_MergeTest, CBDB_SplitTest, CBDB_FileDumperApp, CBDB_BLobDemo1, CBDB_PhoneBookDemo3, CBDB_PhoneBookDemo2, CBDB_PhoneBookDemo1, CBDB_CacheVerifyApp, CNcbiTestApplication, CPsgPerfApplication, CProjBulderApp, CWinMaskApplication, CWig2tableApplication, subfuse::CSubfuseApp, CStreamTestApp, CSplitCacheApp, CMytestApplication, SegMaskerApplication, CReadBlastApp, CDemoApp, CDemoApp, CObjExtractApp, CNmer_repeatsApplication, CNetStorageGCApp, CNetStorageDApp, CNetScheduleDApp, CNcbiEncryptApp, CMultipatternApp, CIdfetchApplication, CId2FetchApp, CId1FetchApp, CId1FetchApp, CHgvsToSeqfeatConverter, CGi2TaxIdApp, CGffDeconcatApp, CGapStatsApplication, CFormatGuessApp, CFeatImportApp, CDustMaskApplication, CDBLBClientApp, CConversionApp, CCompartApplication, Cn3DNoWin, CBsDiffApp, CVDBTblastnApp, CVDBBlastnApp, CGuideTreeApplication, CConvert2BlastMaskApplication, BlastdbCopyApplication, CBlastDbCheckApplication, CBDBEnvKeeperApp, CWalkAsnCacheApplication, CAsnSubCacheCreateApplication, CReadIndexSpeedApp, CPrimeCacheApplication, CAsnCacheDumpSeqIdsApplication, CConcatSeqEntriesApplication, CCacheIndexCopyApp, CAsnCacheTestApplication, CAsn2Asn, CAgpconvertApplication, CAgpValidateApplication, CWinMaskDemoApplication, CXcompareAnnotsApplication, CRegexpLocApp, CGeneModelDemoApp, CCpGDemoApp, CAdapterSearchApplication, COmssa2pepxmlApplication, CLocalFinderApp, CMultiApplication, CMultiApplication, CClustererApplication, CBlastKmerBuildIndexApplication, CBlastKmerApplication, CCkblastindexApplication, CGumbelParamsApplication, CBlastInputDemoApplication, CDemoScoreBuilderApp, CTestCompartApplication, CProSplignApp, CMergeyApp, CAlignCleanupApplication, CAVApp, CRemoteCgiApp, CGridCgiApplication, CCgiRedirectApplication, CNCBIwxApplication, CGlCgiImageApplication, CThreadedApp, CGridWorkerApp, CGridClientApp, CCgiApplication, CTestRemoteUpdaterApplication, CPubmedFetchApplication, CPubmedFetchApplication, CTbl2AsnApp, CPsgCgiApp, pub_report::CPubReportApp, CPrt2FsmApp, CMultiReaderApp, CDiscRepApp, CBiosampleChkApp, CAsnvalApp, CCleanupApp, CAsn2FlatApp, CAsn2FastaApp, CAnnotWriterApp, CSftpSampleApp, CSdbapiTest, CPsgClientSampleApp, CDbapiAdvancedFeaturesApp, CUsageReportPhoneHomeSampleApp, CUsageReportSampleApp, CHugeFileDemoApp, CTax4BlastDemo, CNcbiApplogApp, CSeqTestApplication, CGBProjectTool, CTestGuiRegistryApp, CDbapiSampleApp, CDbapiDriverSampleApp, CVecScreenApp, seqsubmit_split::CSeqSubSplitter, CSrcChkApp, CSplignApp, CRMBlastnApp, CPsgClientApp, CAppNWA, CMagicBlastApp, CIgBlastpApp, CIgBlastnApp, CIdMapperApp, CAppHitFilter, CCgi2RCgiApp, CExonSelectorApplication, CCompactSAMApplication, CCompartApp, CBlastVdbCmdApp, CBlastFormatterVdbApp, CMakeProfileDBApp, CMakeClusterDBApp, CMakeBlastDBApp, CClusterDBCmdApp, CBlastDBCmdApp, CBlastDBCmdApp, CBlastdbConvertApp, CBlastDBAliasApp, CTblastxApp, CTblastnApp, CSeedTopApp, CRPSTBlastnApp, CRPSBlastApp, CPsiBlastApp, CDeltaBlastApp, CBlastxApp, CBlastpApp, CBlastnApp, CBlastUsageReportApp, CBlastFormatterApp, CDemoSeqQaApp, COMSSAMerge, COMSSABase, CReadresult, CSRSearchApplication, CMkIndexApplication, CNgAlignApp, and CDemoContigAssemblyApp.
Definition at line 274 of file ncbiapp.cpp.
Referenced by CCgiApplication::Init(), CGridClientApp::Init(), CGridWorkerApp::Init(), CHttpSessionApp::Init(), CSampleSoapClientApplication::Init(), and CNcbiApplicationAPI::x_TryInit().
|
static |
Singleton method.
Track the instance of CNcbiApplicationAPI, and throw an exception if an attempt is made to create another instance of the application.
Definition at line 127 of file ncbiapp.cpp.
References CNcbiApplicationAPI::m_Instance.
Referenced by BOOST_AUTO_TEST_CASE(), CBlastDBExtractor::CBlastDBExtractor(), CSeqDBAtlas::GenerateSearchPath(), GetDefaultTmsContext(), CNcbiApplication::Instance(), CArgDescriptions::SetUsageContext(), CTaxonomyUpdater::xSetFromConfig(), and CPubmedUpdater::xSetFromConfig().
|
static |
Singleton method.
Get instance of the application and prevent its destruction until the lock is destroyed.
Definition at line 133 of file ncbiapp.cpp.
References CNcbiApplicationAPI::CNcbiApplicationGuard, and CNcbiApplicationAPI::m_Instance.
Referenced by CBDB_Cache_OnAppExit::AddOnExitCallback(), CBDB_Env_OnAppExit::AddOnExitCallback(), CAutoEnvironmentVariable::CAutoEnvironmentVariable(), CConnIniter::CConnIniter(), CGridRPCBaseClient< CAsnBinCompressed >::CGridRPCBaseClient(), CID2SNPProcessor_Impl::CID2SNPProcessor_Impl(), CJaegerTracer::CJaegerTracer(), CEnvironmentCleaner::Clean(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CPluginManager< TClass >::CPluginManager(), CPSGDataLoader_Impl::CPSGDataLoader_Impl(), EnabledDelayBuffers(), CNcbiApplicationAPI::FindProgramExecutablePath(), g_GetConfigDouble(), g_GetConfigFlag(), g_GetConfigInt(), g_GetConfigString(), CNcbiApplicationAPI::GetAppName(), CUsageReportAPI::GetAppName(), CUsageReportAPI::GetAppVersion(), CMetaRegistry::GetDefaultSearchPath(), SNetServiceImpl::Init(), CThreadInPool_ForServer::Main(), CAsyncDiagThread::Main(), SNetScheduleAPIImpl::MakeAuthString(), SNetServiceImpl::MakeAuthString(), CPipeHandle::Open(), CQueryParseTree::Parse(), CGetStatisticsProcessor::Process(), s_CreateISynRegistry(), s_GetAppName(), s_GetConfigString(), s_InitAllKNS(), s_InitProxyConfig(), CDiagContext::SetupDiag(), SNetStorageRPC::SNetStorageRPC(), SUvNgHttp2_UserAgentImpl::SUvNgHttp2_UserAgentImpl(), CParam< TDescription >::sx_GetDefault(), CGBDataLoader_Native::x_CreateDriver(), COpentelemetryTracer::x_GetTracer(), CEutilsClient::x_InitParams(), CRequestContext::x_LoadEnvContextProperties(), and CDiagContext::x_LogEnvironment().
|
inline |
Constructor.
Definition at line 66 of file phone_home_policy.hpp.
|
inline |
Check if it is a test run.
Definition at line 837 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_DryRun.
|
inlinevirtual |
Return current policy status (enabbed/disabled).
Definition at line 98 of file phone_home_policy.hpp.
References IPhoneHomePolicy::m_IsEnabled.
Referenced by CSamplePhoneHomePolicy::Apply(), BOOST_FIXTURE_TEST_CASE(), CBlastUsageReport::CBlastUsageReport(), CBlastPhoneHomePolicy::PhoneHomeStatusReport(), CSamplePhoneHomePolicy::Restore(), CBlastUsageReportApp::Run(), and CBlastPhoneHomePolicy::UpdatePhoneHomeStatus().
Check if console application can interact with the user.
Definition at line 658 of file ncbiapp_api.hpp.
References CSystemInfo::IsInteractive().
|
inline |
Check if the object is unassigned.
Definition at line 785 of file ncbimisc.hpp.
Referenced by CVariant::Char(), SPSG_Nullable< size_t >::Cmp(), CPSG_Request_IpgResolve::CPSG_Request_IpgResolve(), CPSG_Reply::SImpl::CreateImpl(), CVariant::Double(), CVariant::Float(), CPSGL_Blob_Processor::GetWaitDeadline(), CGBLoaderParams::IsSetEnableCDD(), CReaderParams::IsSetEnableCDD(), CGBLoaderParams::IsSetEnableSNP(), CReaderParams::IsSetEnableSNP(), CGBLoaderParams::IsSetEnableWGS(), CReaderParams::IsSetEnableWGS(), CVariant::LongChar(), operator<<(), CPSG_BlobId::Repr(), CJsonResponse::Set(), CNetStorageObjectLoc::ToJSON(), CVariant::VarChar(), CVariant::VarCharMax(), CPSG_Request_IpgResolve::x_GetAbsPathRef(), CPSG_Request_IpgResolve::x_GetId(), CHttpRequest::x_InitConnection(), and CNetStorageObjectLoc::x_Pack().
|
inlinenoexcept |
Definition at line 551 of file ncbimisc.hpp.
Referenced by CSocketReaderWriter::Pushback(), CStreamReader::Pushback(), and AutoPtr< CNcbistrstream_Base >::reset().
|
inlinenoexcept |
Definition at line 712 of file ncbimisc.hpp.
Referenced by AutoArray< CS_INT >::reset().
| size_t CNcbiToolkit_LogMessage::Line | ( | void | ) | const |
Get line number in which message was originated.
Definition at line 124 of file ncbi_toolkit.cpp.
References SDiagMessage::m_Line, and ncbi::CNcbiToolkit_LogMessage::m_Msg.
|
protectedvirtual |
Load settings from the configuration file to the registry.
CNcbiApplicationAPI::LoadConfig(reg, conf) just calls LoadConfig(reg, conf, IRegistry::fWithNcbirc).
Definition at line 1279 of file ncbiapp.cpp.
References IRegistry::fWithNcbirc, and CNcbiApplicationAPI::LoadConfig().
|
protectedvirtual |
Load settings from the configuration file to the registry.
This method is called from inside AppMain() to load (add) registry settings from the configuration file specified as the "conf" arg passed to AppMain(). The "conf" argument has the following special meanings:
Regardless, this method normally loads global settings from .ncbirc or ncbi.ini when reg_flags contains fWithNcbirc (as it typically does), even if conf is NULL.
NOTE: If "conf" arg is empty or non-empty, but without path, then the Toolkit will try to look for it in several potentially relevant directories, as described in <corelib/metareg.hpp>.
Throw an exception if "conf" is non-empty, and cannot open file. Throw an exception if file exists, but contains invalid entries.
| reg | The loaded registry is returned via the reg parameter. |
| conf | The configuration file to loaded the registry entries from. |
| reg_flags | Flags for loading the registry |
Definition at line 1214 of file ncbiapp.cpp.
References CMetaRegistry::SEntry::actual_name, basename, eFollowLinks, eIgnoreLinks, IRegistry::Empty(), CMetaRegistry::eName_AsIs, CMetaRegistry::eName_Ini, CMetaRegistry::eName_RcOrIni, ERR_POST_X, CMetaRegistry::FindRegistry(), CDirEntry::GetName(), CRef< C, Locker >::GetPointer(), CNcbiRegistry::IncludeNcbircIfAllowed(), Info(), CMetaRegistry::Load(), CNcbiApplicationAPI::m_Arguments, CNcbiApplicationAPI::m_Config, CNcbiApplicationAPI::m_ConfigLoaded, CNcbiApplicationAPI::m_ConfigPath, CNcbiApplicationAPI::m_DefaultConfig, NCBI_THROW, IRWRegistry::Read(), CMetaRegistry::SEntry::registry, CRef< C, Locker >::Reset(), CDirEntry::SplitPath(), str(), and IRegistry::Write().
Referenced by CFakeApplication::CFakeApplication(), CNcbiApplicationAPI::LoadConfig(), CProjBulderApp::ParseArguments(), and CNcbiApplicationAPI::x_TryInit().
Overload for the above for all types of allocated memory that are to be deallocated by free()
Definition at line 1563 of file ncbimisc.hpp.
References free(), and make_c_unique().
Eliminates the necessity for specifying types of both allocated resource and deallocating C function.
Definition at line 1556 of file ncbimisc.hpp.
Referenced by CServiceDiscovery::DiscoverImpl(), make_c_unique(), NAMEDPIPE_CreateConnector(), NcbiOpenURL(), PIPE_CreateConnector(), and CHttpRequest::sx_Adjust().
| string CNcbiToolkit_LogMessage::Message | ( | void | ) | const |
Get text part of the message.
Definition at line 111 of file ncbi_toolkit.cpp.
References kEmptyStr, SDiagMessage::m_Buffer, SDiagMessage::m_BufferLen, ncbi::CNcbiToolkit_LogMessage::m_Msg, and string.
| CAppException::NCBI_EXCEPTION_DEFAULT | ( | CAppException | , |
| CCoreException | |||
| ) |
| void ncbi::NcbiToolkit_Fini | ( | void | ) |
Release resources allocated for NCBI C++ Toolkit.
| void ncbi::NcbiToolkit_Init | ( | int | argc, |
| const TNcbiToolkit_XChar *const * | argv, | ||
| const TNcbiToolkit_XChar *const * | envp = NULL, |
||
| INcbiToolkit_LogHandler * | log_handler = NULL |
||
| ) |
Initialialize NCBI C++ Toolkit internal infrastructure: arguments, environment, diagnostics, logging.
| argc | Argument count [argc in a regular main(argc, argv)]. |
| argv | Argument vector [argv in a regular main(argc, argv)]. |
| envp | Environment pointer [envp in a regular main(argc, argv, envp)]; a null pointer (the default) corresponds to the standard system array (environ on most Unix platforms). |
| log_handler | Handler for diagnostic messages that are emitted by the C++ Toolkit code |
| void ncbi::NcbiToolkit_RegisterNcbiApplicationFactory | ( | FNcbiApplicationFactory | f | ) |
|
inline |
Definition at line 115 of file ncbiapp_api.hpp.
References CNcbiApplicationGuard::m_App.
| ncbi::CNcbiToolkit_LogMessage::operator std::string | ( | void | ) | const |
Get the message the way it is formatted by the Toolkit.
Definition at line 498 of file ncbimisc.hpp.
|
inline |
Definition at line 661 of file ncbimisc.hpp.
|
inline |
Definition at line 1382 of file ncbimisc.hpp.
|
inline |
|
inline |
Get nullable value.
If NULL, then call TNullToValue and use the value return by the latter.
Definition at line 794 of file ncbimisc.hpp.
|
inline |
Definition at line 116 of file ncbiapp_api.hpp.
References CNcbiApplicationGuard::m_App.
| bool operator!= | ( | const CNullable< TValue, TNullToValue > & | l, |
| const CNullable< TValue, TNullToValue > & | r | ||
| ) |
Definition at line 846 of file ncbimisc.hpp.
References l(), operator==(), and r().
|
inline |
Definition at line 1388 of file ncbimisc.hpp.
References b, and CSafeFlags< Enum >::get().
|
inline |
Definition at line 1002 of file ncbimisc.hpp.
|
inline |
Definition at line 1397 of file ncbimisc.hpp.
References CSafeFlags< Enum >::get().
|
private |
|
private |
|
private |
|
inline |
Definition at line 1407 of file ncbimisc.hpp.
References b, CSafeFlags< Enum >::CSafeFlags(), and CSafeFlags< Enum >::get().
|
inline |
Definition at line 1471 of file ncbimisc.hpp.
|
inline |
Definition at line 1411 of file ncbimisc.hpp.
References b, and CSafeFlags< Enum >::m_Flags.
|
inline |
Definition at line 1642 of file ncbimisc.hpp.
|
inline |
Definition at line 757 of file ncbimisc.hpp.
References g_ThrowOnNull().
|
inline |
Definition at line 114 of file ncbiapp_api.hpp.
References CNcbiApplicationGuard::Get().
|
inline |
Definition at line 1275 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer.
|
inline |
Definition at line 1276 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer.
|
inlinenoexcept |
Dereference operator.
Definition at line 503 of file ncbimisc.hpp.
|
inline |
Definition at line 1013 of file ncbimisc.hpp.
|
inline |
Definition at line 1278 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer, and offset.
|
inline |
Definition at line 1279 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer, and offset.
Definition at line 1009 of file ncbimisc.hpp.
|
inline |
Definition at line 1008 of file ncbimisc.hpp.
|
inline |
Definition at line 1014 of file ncbimisc.hpp.
|
inline |
Definition at line 1015 of file ncbimisc.hpp.
Definition at line 1011 of file ncbimisc.hpp.
|
inline |
Definition at line 1010 of file ncbimisc.hpp.
|
inline |
Definition at line 113 of file ncbiapp_api.hpp.
References CNcbiApplicationGuard::Get().
|
inlinenoexcept |
Reference operator.
Definition at line 506 of file ncbimisc.hpp.
|
inline |
Definition at line 1003 of file ncbimisc.hpp.
|
inline |
Definition at line 1045 of file ncbimisc.hpp.
References out().
|
inline |
Definition at line 1480 of file ncbimisc.hpp.
References CSafeFlags< Enum >::get(), and out().
|
inline |
Definition at line 1004 of file ncbimisc.hpp.
|
inlinenoexcept |
Move assignment operator.
Definition at line 630 of file ncbimisc.hpp.
|
inlinenoexcept |
Move assignment operator.
Definition at line 467 of file ncbimisc.hpp.
|
inlinenoexcept |
Assignment operator.
Definition at line 643 of file ncbimisc.hpp.
|
inlinenoexcept |
Assignment operator.
Definition at line 480 of file ncbimisc.hpp.
|
private |
|
private |
|
private |
|
inline |
Definition at line 999 of file ncbimisc.hpp.
|
inlinenoexcept |
Assignment operator.
Definition at line 491 of file ncbimisc.hpp.
|
inlinenoexcept |
Assignment operator.
Definition at line 654 of file ncbimisc.hpp.
|
inline |
Reset nullable to unassigned state.
Definition at line 828 of file ncbimisc.hpp.
|
inline |
Assign a value to the nullable.
Definition at line 821 of file ncbimisc.hpp.
|
inline |
Definition at line 1384 of file ncbimisc.hpp.
References b, and CSafeFlags< Enum >::get().
|
inline |
Definition at line 1001 of file ncbimisc.hpp.
|
inline |
Definition at line 1393 of file ncbimisc.hpp.
References CSafeFlags< Enum >::get().
|
private |
|
private |
|
private |
|
inline |
Definition at line 1005 of file ncbimisc.hpp.
|
inline |
Definition at line 1006 of file ncbimisc.hpp.
|
inline |
Definition at line 1052 of file ncbimisc.hpp.
References in().
|
inline |
Definition at line 1273 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer.
|
inlinenoexcept |
Array style dereference (returns value)
Definition at line 678 of file ncbimisc.hpp.
|
inlinenoexcept |
Array style dereference (returns reference)
Definition at line 681 of file ncbimisc.hpp.
|
inline |
Definition at line 1427 of file ncbimisc.hpp.
References b, CSafeFlags< Enum >::CSafeFlags(), and CSafeFlags< Enum >::get().
|
inline |
Definition at line 1475 of file ncbimisc.hpp.
|
inline |
Definition at line 1431 of file ncbimisc.hpp.
References b, and CSafeFlags< Enum >::m_Flags.
|
inline |
Definition at line 1417 of file ncbimisc.hpp.
References b, CSafeFlags< Enum >::CSafeFlags(), and CSafeFlags< Enum >::get().
|
inline |
Helper operators for safe-flags enums.
These operators will be used only for enums marked as safe-flag enums by macro DECLARE_SAFE_FLAGS()
Definition at line 1467 of file ncbimisc.hpp.
|
inline |
Definition at line 1421 of file ncbimisc.hpp.
References b, and CSafeFlags< Enum >::m_Flags.
|
inline |
Definition at line 1402 of file ncbimisc.hpp.
References CSafeFlags< Enum >::CSafeFlags(), and CSafeFlags< Enum >::get().
|
inlineexplicit |
Definition at line 272 of file ncbimisc.hpp.
|
inlineexplicit |
Definition at line 262 of file ncbimisc.hpp.
|
inlineexplicitnoexcept |
Definition at line 267 of file ncbimisc.hpp.
|
inline |
Definition at line 257 of file ncbimisc.hpp.
|
pure virtual |
|
protectedvirtual |
Check the command line arguments before parsing them.
Reimplemented in CNetStorageDApp, and CCgiApplication.
Definition at line 1287 of file ncbiapp.cpp.
References CNcbiApplicationAPI::ePreparse_Continue.
Referenced by CNcbiApplicationAPI::AppMain(), and CNetStorageDApp::PreparseArgs().
|
pure virtual |
Print a message about collecting data, disablig telemetry and privacy policies.
Implemented in CBlastPhoneHomePolicy, and CSamplePhoneHomePolicy.
|
inlinenoexcept |
Release will release ownership of pointer to caller.
Definition at line 512 of file ncbimisc.hpp.
Referenced by AascanTestFixture::AascanTestFixture(), CBAMDataLoader_Impl::AddSrzDef(), DTDParser::AttribBlock(), BOOST_AUTO_TEST_CASE(), CSeqTable_multi_data::ChangeToBit_bvector(), CSeqTable_sparse_index::ChangeToBit_set_bvector(), DTDParser::CompositeNode(), CompressedAascanTestFixture::CompressedAascanTestFixture(), CObjectIStream::Create(), CObjectIStream::CreateFromBuffer(), ASNParser::EnumeratedBlock(), CDataType::GenerateCode(), CChoiceDataType::GenerateCode(), CBitStringDataType::GetFullCType(), CIdlerWrapper::GetIdler(), CTL_RowResult::GetItemInternal(), CDataType::GetRefCType(), CSeqFeatData::GetRegulatoryClass(), CompressedAalookupTestFixture::GetSeqBlk(), AalookupTestFixture::GetSeqBlk(), GetSequenceProtein(), GetSequenceSingleNucleotideStrand(), CId2FetchApp::Init(), CNcbiTestApplication::Init(), CWig2tableApplication::MakeTable(), DTDParser::NillableBlock(), AutoPtr< CNcbistrstream_Base >::reset(), NtlookupTestFixture::SetUpQuery(), TestFixture::SetUpQuery(), NuclWordFinderTextFixture::setupSequences(), TestFixture::SetUpSubject(), SetupSubjects_OMF(), ASNParser::TypesBlock(), DTDParser::TypesBlock(), CBVector_data::x_CreateBitVector(), CHistogramBinning::x_IdentifyClusters(), CPssmEngine::x_InitializeScoreBlock(), CPkgManager::x_LoadPackage(), CDiagSyntaxParser::x_PutIntoFilter(), CPubseqReader::x_ReceiveData(), AutoPtr< CNcbistrstream_Base >::x_Release(), CPubseq2Reader::x_SendPacket(), CId2FetchApp::x_SendRequestPacket(), CHistogramBinning::x_TryForEvenBins(), and DTDParser::x_Type().
|
inlinenoexcept |
Release will release ownership of pointer to caller.
Definition at line 667 of file ncbimisc.hpp.
Referenced by CCompressionStreambuf::CCompressionStreambuf(), AutoArray< CS_INT >::reset(), and AutoArray< CS_INT >::x_Release().
|
inline |
Reload the configuration file.
By default, does nothing if the file has the same size and date as before.
Note that this may lose other data stored in the registry!
| flags | Controls how aggressively to reload. |
| reg_flags | Flags to use when parsing the registry; ignored if the registry was already cached (as it should normally have been). |
Definition at line 814 of file ncbiapp_api.hpp.
References flags, CNcbiApplicationAPI::GetConfigPath(), CNcbiApplicationAPI::GetRWConfig(), and CMetaRegistry::Reload().
Referenced by BOOST_AUTO_TEST_CASE(), CAutoNcbiConfigFile::CAutoNcbiConfigFile(), CNetStorageHandler::x_ProcessReconfigure(), CNetScheduleHandler::x_ProcessReloadConfig(), and CAutoNcbiConfigFile::~CAutoNcbiConfigFile().
|
inlinenoexcept |
Reset will delete the old pointer (if owned)
Definition at line 523 of file ncbimisc.hpp.
Referenced by CSeqMaskerUsetHash::add_ht_info(), CSeqMaskerUsetHash::add_vt_info(), CBamUIDataSource::AddDataLoader(), CBAMDataLoader_Impl::AddSrzDef(), CAgpErrEx::CAgpErrEx(), CAutoEnvironmentVariable::CAutoEnvironmentVariable(), CBAMDataLoader_Impl::CBAMDataLoader_Impl(), CConnTest::CheckFWConnections(), CAsnSizer::CloseDataStream(), CSplitDataMaker::CloseDataStream(), CPagedFile::CPagedFile(), CProjectStorage::CProjectStorage(), CPtbRegistry::CPtbRegistry(), CTeeDiagHandler::CTeeDiagHandler(), CSeqMaskerOstatOpt::doFinalize(), CGffObjectLoader::Execute(), CConnTest::ExtraCheckOnFailure(), CDataType::GetAnyTypeInfo(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::GetDb(), CValidator::CCacheImpl::GetFeatStrKeyToFeats(), CIdlerWrapper::GetIdler(), CTL_RowResult::GetItemInternal(), CDataTypeModule::GetNamespace(), CDataType::GetRealTypeInfo(), GetSequenceProtein(), GetSequenceSingleNucleotideStrand(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::InitDbMutex(), CAlnVecRow::LoadDefaultTracks(), CGen_code_table::LoadTransTable(), CPipeHandle::Open(), CAsnSizer::OpenDataStream(), CSplitDataMaker::OpenDataStream(), AutoPtr< CNcbistrstream_Base >::operator=(), CMSHit::operator=(), CSeqVector::operator=(), SAnnotSelector::operator=(), CMSHit::RecordMatches(), CNcbiApplogApp::Redirect(), AutoPtr< CNcbistrstream_Base >::reset(), CBVector_data::Reset(), CBVector_data::ResetBitVector(), SAnnotSelector::ResetSourceLoc(), CGapStatsApplication::Run(), CWig2tableApplication::Run(), CAsn2Asn::RunAsn2Asn(), CSearch< LEGACY, NHITS >::Search(), CSQLITE_Blob::SetAppendStatement(), CBVector_data::SetBitVector(), CBDB_RawFile::SetCompressor(), CStringPairs< TExtraValuesMap >::SetDecoder(), CStringPairs< TExtraValuesMap >::SetEncoder(), CIdlerWrapper::SetIdler(), CBamDb::SetIdMapper(), CLoadLockSetter::SetLoaded(), CMergeVolumes::SetMergeAccumulator(), CMergeVolumes::SetMergeStore(), CMSPeakList::SetMZI(), CDisplaySeqalign::SetSequencePropertyLabel(), SAnnotSelector::SetSourceLoc(), CSplitCacheApp::SetupCache(), CFastaOstream::SetWidth(), CAlignCompare::SAlignment::Slice(), CSplitCacheApp::TestSplit(), CPSGL_Blob_Processor::TSE_ToOM(), CSDBAPI::UpdateMirror(), CSQLITE_Blob::Write(), x_AdjustAnchorDirection(), CBVector_data::x_CreateBitVector(), CSGAlignmentJob::x_CreateFeatGlyph(), CSeqVector::x_CreateIterator(), CAlnVecRow::x_CreateTrackPanel(), CId1Reader::x_DisconnectAtSlot(), CId2Reader::x_DisconnectAtSlot(), CPubseqReader::x_DisconnectAtSlot(), CPubseq2Reader::x_DisconnectAtSlot(), CArchive::x_ExtractEntry(), CPsiBlastInputClustalW::x_ExtractQueryFromMsa(), CPubseq2Reader::x_GetConnection(), CLDS2_Database::x_GetStatement(), CLoadLockSetter::x_Init(), CId2FetchApp::x_InitConnection(), CGen_code_table::x_InitImplementation(), CBlastFastaInputSource::x_InitInputReader(), CId2FetchApp::x_InitPubSeqConnection(), CFileLoader::x_LoadGff(), CHTMLPage::x_LoadTemplateLib(), CRegexpTemplateTester::x_Op_Skip(), CPdfObject::x_PrintTo(), CId2FetchApp::x_ProcessData(), CTar::x_ProcessEntry(), CXcompareAnnotsApplication::x_ProcessSeqAlignSetFromFile(), CPubseqReader::x_ReceiveData(), CSeqVector::x_ResetIterator(), CAlnVecRow::x_ResetTrackPanel(), CDBLBClientApp::x_RunWhatIs(), CId2FetchApp::x_SendRequestPacket(), and AutoPtr< CNcbistrstream_Base >::~AutoPtr().
|
inlinenoexcept |
Reset will delete the old pointer.
Definition at line 684 of file ncbimisc.hpp.
Referenced by CArchiveMemory::Create(), CLZOCompression::InitCompression(), AutoArray< CS_INT >::operator=(), CSparseKmerCounts::Reset(), AutoArray< CS_INT >::reset(), CLZOBuffer::ResetBuffer(), CStatementBase::x_GetData(), CSeqVector_CI::x_InitializeCache(), CBamString::x_reserve(), and AutoArray< CS_INT >::~AutoArray().
|
inlinenoexcept |
Reset will delete the old pointer, set content to the new value, and assume the ownership upon the new pointer.
Definition at line 695 of file ncbimisc.hpp.
|
inlinenoexcept |
Reset will delete the old pointer (if owned), set content to the new value, and assume the ownership upon the new pointer by default.
Definition at line 534 of file ncbimisc.hpp.
|
pure virtual |
Restore policy configuration.
Implemented in CBlastPhoneHomePolicy, and CSamplePhoneHomePolicy.
|
pure virtual |
Run the application.
It is defined as a pure virtual method – so you must(!) supply the Run() method to implement the application-specific logic.
Implemented in CFakeApplication, CSubImageApp, CImageDemoApp, CConvImageApp, CCacheDemoApp, CBam2GraphApp, CDataTool, CSampleLibtestApplication, CSampleSoapClientApplication, CSeqAnnotSplicerApp, CProcessHighestSeObjs, CBssInfoApp, CDemoApp, CDemoApp, CDemoApp, CSdbapiSimpleApp, CSampleObjmgrApplication, CFeatTreeSampleApp, CEditBioseqSampleApp, CSampleObjectsApplication, CRemoteAppClientSampleApp, CSampleNetScheduleNode, CSampleNetScheduleClient, CGridClientSampleApp, CSampleNetCacheClient, CMultiCommandApplication, CSampleLds2Application, CHttpSessionApp, CEUtilsApp, CDbCopyApp, CDbapiSimpleApp, VSRunSampleApplication, CBlastDemoApplication, CBlastSampleApplication, CBlastDemoApplication, CSampleBasicApplication, CSampleAsnApplication, CSampleAlnmgrApplication, CFetchGBProjectApp, CAce2AsnApp, CTestIndexDetectionApp, ASNIOTestApp, CAlnVwrApp, CAlnMrgApp, CAlnTestApp, CAlnBuildApp, CClientGenomicCollectionsSvcApplication, CEntrez2ClientApp, CDemoApplication, CColumnarVCFReaderApp, CMakeScoreMethodApp, CTestDispatchApp, CAppJobTestApplication, CTestBMApp, CObjConvProfile, CTestApplication, COdbcSpwhoDemoApp, COcbdDemoApp, CMysqlDemoApp, CRunTestApplication, CRunTestApplication, CBDB_MergeTest, CBDB_SplitTest, CBDB_FileDumperApp, CBDB_BLobDemo1, CBDB_PhoneBookDemo3, CBDB_PhoneBookDemo2, CBDB_PhoneBookDemo1, CBDB_CacheVerifyApp, CNcbiTestApplication, CNcbiToolkitImpl_Application, CPsgPerfApplication, CProjBulderApp, CWinMaskApplication, CWig2tableApplication, subfuse::CSubfuseApp, CStreamTestApp, CSplitCacheApp, CMytestApplication, SegMaskerApplication, CReadBlastApp, CDemoApp, CDemoApp, CObjExtractApp, CNmer_repeatsApplication, CNetStorageGCApp, CNetStorageDApp, CNetScheduleDApp, CNcbiEncryptApp, CMultipatternApp, CIdfetchApplication, CId2FetchApp, CId1FetchApp, CId1FetchApp, CHgvsToSeqfeatConverter, CGi2TaxIdApp, CGffDeconcatApp, CGapStatsApplication, CFormatGuessApp, CFeatImportApp, CDustMaskApplication, CDBLBClientApp, CConversionApp, CCompartApplication, Cn3DNoWin, CBsDiffApp, CVDBTblastnApp, CVDBBlastnApp, CGuideTreeApplication, CConvert2BlastMaskApplication, BlastdbCopyApplication, CBlastDbCheckApplication, CBDBEnvKeeperApp, CWalkAsnCacheApplication, CAsnSubCacheCreateApplication, CReadIndexSpeedApp, CPrimeCacheApplication, CAsnCacheDumpSeqIdsApplication, CConcatSeqEntriesApplication, CCacheIndexCopyApp, CAsnCacheTestApplication, CTest, CAsn2Asn, CAgpconvertApplication, CAgpValidateApplication, CWinMaskDemoApplication, CXcompareAnnotsApplication, CRegexpLocApp, CGeneModelDemoApp, CCpGDemoApp, CAdapterSearchApplication, COmssa2pepxmlApplication, CLocalFinderApp, CMultiApplication, CMultiApplication, CClustererApplication, CBlastKmerBuildIndexApplication, CBlastKmerApplication, CCkblastindexApplication, CGumbelParamsApplication, CBlastInputDemoApplication, CDemoScoreBuilderApp, CTestCompartApplication, CAlignCleanupApplication, CAVApp, CRemoteCgiApp, CNCBIwxApplication, CThreadedApp, CGridWorkerApp, CCgiApplication, COMSSABase, CTestRemoteUpdaterApplication, CPubmedFetchApplication, CPubmedFetchApplication, CTbl2AsnApp, pub_report::CPubReportApp, CPrt2FsmApp, CMultiReaderApp, CDiscRepApp, CBiosampleChkApp, CAsnvalApp, CCleanupApp, CAsn2FlatApp, CAsn2FastaApp, CAnnotWriterApp, CSftpSampleApp, CSdbapiTest, CPsgClientSampleApp, CDbapiAdvancedFeaturesApp, CUsageReportPhoneHomeSampleApp, CUsageReportSampleApp, CAnalyzeShiftApp, CHugeFileDemoApp, CTax4BlastDemo, CNcbiApplogApp, CGBProjectTool, CTestGuiRegistryApp, CDbapiSampleApp, CDbapiDriverSampleApp, CVecScreenApp, seqsubmit_split::CSeqSubSplitter, CSrcChkApp, CSplignApp, CRMBlastnApp, CPsgClientApp, CAppNWA, CMagicBlastApp, CIgBlastpApp, CIgBlastnApp, CIdMapperApp, CAppHitFilter, CComponentIDToolApp, CGridCommandLineInterfaceApp, CExonSelectorApplication, CCompactSAMApplication, CCompartApp, CBlastVdbCmdApp, CBlastFormatterVdbApp, CMakeProfileDBApp, CMakeClusterDBApp, CMakeBlastDBApp, CClusterDBCmdApp, CBlastDBCmdApp, CBlastDBCmdApp, CBlastdbConvertApp, CBlastDBAliasApp, CTblastxApp, CTblastnApp, CSeedTopApp, CRPSTBlastnApp, CRPSBlastApp, CPsiBlastApp, CDeltaBlastApp, CBlastxApp, CBlastpApp, CBlastnApp, CBlastUsageReportApp, CBlastFormatterApp, CDemoSeqQaApp, COMSSAMerge, COMSSA, CReadresult, CSRSearchApplication, CMkIndexApplication, CProSplignApp, CNgAlignApp, CMergeyApp, and CDemoContigAssemblyApp.
Referenced by CNcbiApplicationAPI::x_TryMain().
| void RunIdler | ( | void | ) |
Execute currently installed idler if any.
Definition at line 1840 of file ncbiapp.cpp.
References s_IdlerWrapper.
Referenced by CFastCgiApplicationMT::x_ProcessThreadedRequest().
Definition at line 886 of file ncbimisc.hpp.
Definition at line 895 of file ncbimisc.hpp.
|
inline |
Definition at line 498 of file ncbimisc.hpp.
|
inline |
Definition at line 661 of file ncbimisc.hpp.
|
inline |
Definition at line 1382 of file ncbimisc.hpp.
|
pure virtual |
Save policy configuration.
Implemented in CSamplePhoneHomePolicy, and CBlastPhoneHomePolicy.
|
inlinenoexcept |
Definition at line 287 of file ncbimisc.hpp.
Referenced by CConstRef< CSeq_loc >::AtomicResetFrom(), CRef< CAlnMixSegment >::AtomicResetFrom(), CRef< CAlnMixSegment >::AtomicSwap(), CConstRef< CSeq_loc >::AtomicSwap(), CStaticArraySearchBase< NStaticArray::PKeyValuePair< SStaticPair< KeyType, ValueType > >, less< KeyType > >::begin(), CRef< CAlnMixSegment >::Empty(), CConstRef< CSeq_loc >::Empty(), CRef< CAlnMixSegment >::GetNCPointerOrNull(), CRef< CAlnMixSegment >::GetNonNullNCPointer(), CRef< CAlnMixSegment >::GetNonNullPointer(), CConstRef< CSeq_loc >::GetNonNullPointer(), CConstRef< CSeq_loc >::GetPointerOrNull(), CRef< CAlnMixSegment >::GetPointerOrNull(), CGuard< IRegistry, SSimpleReadLock< IRegistry > >::GetResource(), CGuard< IRegistry, SSimpleReadLock< IRegistry > >::GetUnlock(), CBlobIdFor< Value, Converter >::GetValue(), CRef< CAlnMixSegment >::IsNull(), CConstRef< CSeq_loc >::IsNull(), AutoPtr< CNcbistrstream_Base >::IsOwned(), AutoArray< CS_INT >::IsOwned(), CRef< CAlnMixSegment >::NotEmpty(), CConstRef< CSeq_loc >::NotEmpty(), CRef< CAlnMixSegment >::NotNull(), CConstRef< CSeq_loc >::NotNull(), CRef< CAlnMixSegment >::operator!(), CConstRef< CSeq_loc >::operator!(), CRef< CAlnMixSegment >::operator=(), CConstRef< CSeq_loc >::operator=(), CRef< CAlnMixSegment >::Release(), CConstRef< CSeq_loc >::Release(), AutoPtr< CNcbistrstream_Base >::release(), AutoArray< CS_INT >::release(), CRef< CAlnMixSegment >::ReleaseOrNull(), CConstRef< CSeq_loc >::ReleaseOrNull(), AutoPtr< CNcbistrstream_Base >::reset(), AutoArray< CS_INT >::reset(), CRef< CAlnMixSegment >::Reset(), CConstRef< CSeq_loc >::Reset(), pair_base_member< TKeyGetter, CTreeNode * >::Swap(), CRef< CAlnMixSegment >::Swap(), CConstRef< CSeq_loc >::Swap(), CBlobIdFor< Value, Converter >::ToString(), CRef< CAlnMixSegment >::x_AssignFromRef(), CConstRef< CSeq_loc >::x_AssignFromRef(), CRef< CAlnMixSegment >::x_LockFromMoveConstructor(), CConstRef< CSeq_loc >::x_LockFromMoveConstructor(), CRef< CAlnMixSegment >::x_LockFromPtr(), CConstRef< CSeq_loc >::x_LockFromPtr(), CRef< CAlnMixSegment >::x_LockFromRef(), CConstRef< CSeq_loc >::x_LockFromRef(), CRef< CAlnMixSegment >::x_MoveAssign(), CConstRef< CSeq_loc >::x_MoveAssign(), CStaticArraySearchBase< NStaticArray::PKeyValuePair< SStaticPair< KeyType, ValueType > >, less< KeyType > >::x_Set(), and CStaticArraySearchBase< NStaticArray::PKeyValuePair< SStaticPair< KeyType, ValueType > >, less< KeyType > >::~CStaticArraySearchBase().
|
inlinenoexcept |
Definition at line 291 of file ncbimisc.hpp.
Definition at line 1021 of file ncbimisc.hpp.
Referenced by CObjectIStream::ReadGi().
Definition at line 1022 of file ncbimisc.hpp.
|
inlineprotected |
Definition at line 621 of file ncbiapp_api.hpp.
References flags, and CNcbiApplicationAPI::m_AppFlags.
Referenced by CNcbiTestApplication::InitTestFramework().
Set policy status (enabled/disabled).
Definition at line 101 of file phone_home_policy.hpp.
References IPhoneHomePolicy::m_IsEnabled.
Referenced by CSamplePhoneHomePolicy::Apply(), CBlastUsageReport::CBlastUsageReport(), and CBlastPhoneHomePolicy::UpdatePhoneHomeStatus().
Set a specified environment variable by name.
Definition at line 1114 of file ncbiapp.cpp.
References CNcbiEnvironment::Set(), CNcbiApplicationAPI::SetEnvironment(), and rapidjson::value.
|
inline |
Get a non-const copy of the application's cached environment.
Definition at line 778 of file ncbiapp_api.hpp.
References CNcbiApplicationAPI::m_Environ.
Referenced by BOOST_AUTO_TEST_CASE(), CAutoEnvironmentVariable::CAutoEnvironmentVariable(), CEnvironmentCleaner::Clean(), CCgi2RCgiApp::CreateContextWithFlags(), CSeqEditPackage::Init(), CSeqTestApplication::Init(), CVDBBlastnApp::Init(), CVDBTblastnApp::Init(), CNetStorageDApp::Init(), CPipeHandle::Open(), CCgi2RCgiApp::ProcessRequest(), CRunTestApplication::Run(), s_TestReadPDBAsn1(), CNcbiApplicationAPI::SetEnvironment(), CNcbiRegistry::x_Init(), CAlnMultiCGIApplication::x_PreProcess(), and CSeqEditPackage::x_UpdateValAuxFile().
|
protected |
Force the program to return a specific exit code later, either when it exits due to an exception or unconditionally.
In the latter case, Run's return value will be ignored.
Definition at line 1756 of file ncbiapp.cpp.
References CNcbiApplicationAPI::m_ExitCode, and CNcbiApplicationAPI::m_ExitCodeCond.
|
protected |
Set version data for the program.
Definition at line 1162 of file ncbiapp.cpp.
References ERR_POST_X, CNcbiApplicationAPI::m_Version, CRef< C, Locker >::Reset(), s_IsApplicationStarted, and dtl::version.
Referenced by BlastdbCopyApplication::BlastdbCopyApplication(), CBlastDBAliasApp::CBlastDBAliasApp(), CBlastDbCheckApplication::CBlastDbCheckApplication(), CBlastDBCmdApp::CBlastDBCmdApp(), CBlastdbConvertApp::CBlastdbConvertApp(), CBlastFormatterApp::CBlastFormatterApp(), CBlastFormatterVdbApp::CBlastFormatterVdbApp(), CBlastnApp::CBlastnApp(), CBlastpApp::CBlastpApp(), CBlastUsageReportApp::CBlastUsageReportApp(), CBlastVdbCmdApp::CBlastVdbCmdApp(), CBlastxApp::CBlastxApp(), CClusterDBCmdApp::CClusterDBCmdApp(), CConvert2BlastMaskApplication::CConvert2BlastMaskApplication(), CDeltaBlastApp::CDeltaBlastApp(), CDustMaskApplication::CDustMaskApplication(), CGumbelParamsApplication::CGumbelParamsApplication(), CIgBlastnApp::CIgBlastnApp(), CIgBlastpApp::CIgBlastpApp(), CMagicBlastApp::CMagicBlastApp(), CMakeBlastDBApp::CMakeBlastDBApp(), CMakeClusterDBApp::CMakeClusterDBApp(), CMakeProfileDBApp::CMakeProfileDBApp(), CMultiApplication::CMultiApplication(), CNetScheduleDApp::CNetScheduleDApp(), CNetStorageDApp::CNetStorageDApp(), CNetStorageGCApp::CNetStorageGCApp(), CPsiBlastApp::CPsiBlastApp(), CRMBlastnApp::CRMBlastnApp(), CRPSBlastApp::CRPSBlastApp(), CRPSTBlastnApp::CRPSTBlastnApp(), CSeedTopApp::CSeedTopApp(), CSplignApp::CSplignApp(), CTblastnApp::CTblastnApp(), CTblastxApp::CTblastxApp(), CVDBBlastnApp::CVDBBlastnApp(), CVDBTblastnApp::CVDBTblastnApp(), CVecScreenApp::CVecScreenApp(), CWinMaskApplication::CWinMaskApplication(), and SegMaskerApplication::SegMaskerApplication().
| void SetIdler | ( | INcbiIdler * | idler, |
| EOwnership | ownership = eTakeOwnership |
||
| ) |
Set new idler and ownership.
Definition at line 1834 of file ncbiapp.cpp.
References s_IdlerWrapper.
|
protected |
Set Phone Home Policy.
| policy | Pointer to new Phone Home policy. NULL - delete current policy without a setting new one. If you have active policy, it automatically calls Finish() for the previously set policy, if any. |
| ownership | Phone Home policy ownership. |
Definition at line 212 of file ncbiapp.cpp.
References IPhoneHomePolicy::Apply(), eTakeOwnership, IPhoneHomePolicy::Finish(), CNcbiApplicationAPI::m_PhoneHomePolicy, and CNcbiApplicationAPI::m_PhoneHomePolicy_Ownership.
Set program's display name.
Set up application name suitable for display or as a basename for other files. It can also be set by the user when calling AppMain().
Definition at line 1355 of file ncbiapp.cpp.
References ctll::empty(), CNcbiApplicationAPI::GetAppName(), GetDiagContext(), CNcbiApplicationAPI::m_ProgramDisplayName, and CDiagContext::SetAppName().
Referenced by CNcbiApplicationAPI::AppMain().
|
protected |
Adjust the behavior of standard I/O streams.
Unless this function is called, the behaviour of "C++" Cin/Cout/Cerr streams will be the same regardless of the compiler used.
IMPLEMENTATION NOTE: Do not call this function more than once and from places other than App's constructor.
Definition at line 1306 of file ncbiapp.cpp.
References _ASSERT, and CNcbiApplicationAPI::m_StdioFlags.
Referenced by CCgiApplication::CCgiApplication().
|
protectedvirtual |
Setup the command line argument descriptions.
Call from the Init() method. The passed "arg_desc" will be owned by this class, and it will be deleted by ~CNcbiApplicationAPI(), or if SetupArgDescriptions() is called again.
Reimplemented in CRemoteCgiApp, CGridWorkerApp, and CCgiApplication.
Definition at line 1183 of file ncbiapp.cpp.
References CArgDescriptions::CreateArgs(), CNcbiApplicationAPI::GetArguments(), CNcbiApplicationAPI::m_ArgDesc, CNcbiApplicationAPI::m_Args, CNcbiApplicationAPI::m_DefaultConfig, and CNcbiApplicationAPI::m_DisableArgDesc.
Referenced by CDemoContigAssemblyApp::Init(), CNgAlignApp::Init(), CSRSearchApplication::Init(), CReadresult::Init(), COMSSABase::Init(), COMSSAMerge::Init(), CDemoSeqQaApp::Init(), CBlastFormatterApp::Init(), CBlastUsageReportApp::Init(), CBlastnApp::Init(), CBlastpApp::Init(), CBlastxApp::Init(), CDeltaBlastApp::Init(), CPsiBlastApp::Init(), CRPSBlastApp::Init(), CRPSTBlastnApp::Init(), CSeedTopApp::Init(), CTblastnApp::Init(), CTblastxApp::Init(), CBlastDBAliasApp::Init(), CBlastdbConvertApp::Init(), CBlastDBCmdApp::Init(), CClusterDBCmdApp::Init(), CMakeBlastDBApp::Init(), CMakeClusterDBApp::Init(), CBlastFormatterVdbApp::Init(), CBlastVdbCmdApp::Init(), CCompartApp::Init(), CCompactSAMApplication::Init(), CExonSelectorApplication::Init(), CAppHitFilter::Init(), CIdMapperApp::Init(), CIgBlastnApp::Init(), CIgBlastpApp::Init(), CMagicBlastApp::Init(), CAppNWA::Init(), CPsgClientApp::Init(), CRMBlastnApp::Init(), CSplignApp::Init(), CSrcChkApp::Init(), seqsubmit_split::CSeqSubSplitter::Init(), CVecScreenApp::Init(), CDbapiDriverSampleApp::Init(), CDbapiSampleApp::Init(), CTestGuiRegistryApp::Init(), CGBProjectTool::Init(), CNcbiApplogApp::Init(), CTax4BlastDemo::Init(), CHugeFileDemoApp::Init(), CDbapiAdvancedFeaturesApp::Init(), CPsgClientSampleApp::Init(), CSdbapiTest::Init(), CSftpSampleApp::Init(), CAnnotWriterApp::Init(), CAsn2FastaApp::Init(), CAsn2FlatApp::Init(), CCleanupApp::Init(), CBiosampleChkApp::Init(), CDiscRepApp::Init(), CMultiReaderApp::Init(), pub_report::CPubReportApp::Init(), CPubmedFetchApplication::Init(), CTestRemoteUpdaterApplication::Init(), CThreadedApp::Init(), CAVApp::Init(), CAlignCleanupApplication::Init(), CMergeyApp::Init(), CProSplignApp::Init(), CTestCompartApplication::Init(), CDemoScoreBuilderApp::Init(), CBlastInputDemoApplication::Init(), CGumbelParamsApplication::Init(), CCkblastindexApplication::Init(), CBlastKmerApplication::Init(), CBlastKmerBuildIndexApplication::Init(), CClustererApplication::Init(), CMultiApplication::Init(), CLocalFinderApp::Init(), COmssa2pepxmlApplication::Init(), CAdapterSearchApplication::Init(), CCpGDemoApp::Init(), CGeneModelDemoApp::Init(), CRegexpLocApp::Init(), CXcompareAnnotsApplication::Init(), CWinMaskDemoApplication::Init(), CAgpValidateApplication::Init(), CAgpconvertApplication::Init(), CAsnCacheTestApplication::Init(), CCacheIndexCopyApp::Init(), CConcatSeqEntriesApplication::Init(), CAsnCacheDumpSeqIdsApplication::Init(), CPrimeCacheApplication::Init(), CReadIndexSpeedApp::Init(), CAsnSubCacheCreateApplication::Init(), CWalkAsnCacheApplication::Init(), CBDBEnvKeeperApp::Init(), CBlastDbCheckApplication::Init(), BlastdbCopyApplication::Init(), CConvert2BlastMaskApplication::Init(), CGuideTreeApplication::Init(), CVDBBlastnApp::Init(), CVDBTblastnApp::Init(), Cn3DNoWin::Init(), CCompartApplication::Init(), CConversionApp::Init(), CDBLBClientApp::Init(), CDustMaskApplication::Init(), CFeatImportApp::Init(), CFormatGuessApp::Init(), CGapStatsApplication::Init(), CGffDeconcatApp::Init(), CGi2TaxIdApp::Init(), CHgvsToSeqfeatConverter::Init(), CId1FetchApp::Init(), CId2FetchApp::Init(), CIdfetchApplication::Init(), CMultipatternApp::Init(), CNcbiEncryptApp::Init(), CNetScheduleDApp::Init(), CNetStorageDApp::Init(), CNetStorageGCApp::Init(), CNmer_repeatsApplication::Init(), CObjExtractApp::Init(), CDemoApp::Init(), CReadBlastApp::Init(), SegMaskerApplication::Init(), CMytestApplication::Init(), CSplitCacheApp::Init(), CStreamTestApp::Init(), subfuse::CSubfuseApp::Init(), CWig2tableApplication::Init(), CWinMaskApplication::Init(), CProjBulderApp::Init(), CPsgPerfApplication::Init(), CNcbiTestApplication::Init(), CBDB_CacheVerifyApp::Init(), CBDB_PhoneBookDemo1::Init(), CBDB_PhoneBookDemo2::Init(), CBDB_PhoneBookDemo3::Init(), CBDB_BLobDemo1::Init(), CBDB_FileDumperApp::Init(), CBDB_SplitTest::Init(), CBDB_MergeTest::Init(), CRunTestApplication::Init(), CMysqlDemoApp::Init(), CTestApplication::Init(), CObjConvProfile::Init(), CAppJobTestApplication::Init(), CTestDispatchApp::Init(), CMakeScoreMethodApp::Init(), CColumnarVCFReaderApp::Init(), CEntrez2ClientApp::Init(), CAlnMrgApp::Init(), CAlnVwrApp::Init(), CTestIndexDetectionApp::Init(), CFetchGBProjectApp::Init(), CSampleAlnmgrApplication::Init(), CSampleAsnApplication::Init(), CSampleBasicApplication::Init(), CBlastDemoApplication::Init(), CBlastSampleApplication::Init(), VSRunSampleApplication::Init(), CDbapiSimpleApp::Init(), CEUtilsApp::Init(), CHttpSessionApp::Init(), CSampleLds2Application::Init(), CMultiCommandApplication::Init(), CSampleNetCacheClient::Init(), CGridClientSampleApp::Init(), CSampleNetScheduleClient::Init(), CSampleNetScheduleNode::Init(), CRemoteAppClientSampleApp::Init(), CSampleObjectsApplication::Init(), CEditBioseqSampleApp::Init(), CFeatTreeSampleApp::Init(), CSampleObjmgrApplication::Init(), CSdbapiSimpleApp::Init(), CBssInfoApp::Init(), CProcessHighestSeObjs::Init(), CSeqAnnotSplicerApp::Init(), CSampleSoapClientApplication::Init(), CSampleLibtestApplication::Init(), CDataTool::Init(), CBam2GraphApp::Init(), CConvImageApp::Init(), CImageDemoApp::Init(), CSubImageApp::Init(), CCgiApplication::SetupArgDescriptions(), CGridWorkerApp::SetupArgDescriptions(), CNCBIwxApplication::x_SetupArgDescriptions(), CTestBMApp::x_SetupArgDescriptions(), CMakeProfileDBApp::x_SetupArgDescriptions(), and CNcbiApplicationAPI::x_TryInit().
|
protected |
Setup the application diagnostic stream.
Definition at line 1200 of file ncbiapp.cpp.
References eDCM_Flush, CNcbiApplicationAPI::m_LogFile, and CDiagContext::SetupDiag().
|
virtual |
Setup application specific diagnostic stream.
Called from SetupDiag when it is passed the eDS_AppSpecific parameter. Currently, this calls SetupDiag(eDS_ToStderr) to setup diagonistic stream to the std error channel.
Definition at line 1207 of file ncbiapp.cpp.
References eDCM_Flush, eDS_ToStderr, CNcbiApplicationAPI::m_LogFile, and CDiagContext::SetupDiag().
|
inline |
Get a non-const reference to the value.
If NULL, try to initialize this instance with the default value or throw.
Definition at line 812 of file ncbimisc.hpp.
|
protected |
Set the version number for the program.
If not set, a default of 0.0.teamcity_build_number is used.
Definition at line 1143 of file ncbiapp.cpp.
References ERR_POST_X, CNcbiApplicationAPI::m_Version, s_IsApplicationStarted, CVersionAPI::SetVersionInfo(), and dtl::version.
Referenced by CAgpValidateApplication::CAgpValidateApplication(), CAnnotWriterApp::CAnnotWriterApp(), CAsn2FastaApp::CAsn2FastaApp(), CAsn2FlatApp::CAsn2FlatApp(), CBiosampleChkApp::CBiosampleChkApp(), CCleanupApp::CCleanupApp(), CDataTool::CDataTool(), CDiscRepApp::CDiscRepApp(), CGffDeconcatApp::CGffDeconcatApp(), CGridWorkerApp::CGridWorkerApp(), CMultiReaderApp::CMultiReaderApp(), CNetScheduleDApp::CNetScheduleDApp(), CNetStorageDApp::CNetStorageDApp(), CNetStorageGCApp::CNetStorageGCApp(), COmssa2pepxmlApplication::COmssa2pepxmlApplication(), COMSSABase::COMSSABase(), COMSSAMerge::COMSSAMerge(), CProjBulderApp::CProjBulderApp(), CPubmedFetchApplication::CPubmedFetchApplication(), pub_report::CPubReportApp::CPubReportApp(), seqsubmit_split::CSeqSubSplitter::CSeqSubSplitter(), CSrcChkApp::CSrcChkApp(), subfuse::CSubfuseApp::CSubfuseApp(), and CTestRemoteUpdaterApplication::CTestRemoteUpdaterApplication().
|
protected |
Definition at line 1152 of file ncbiapp.cpp.
References ERR_POST_X, CNcbiApplicationAPI::m_Version, s_IsApplicationStarted, CVersionAPI::SetVersionInfo(), and dtl::version.
|
protected |
Definition at line 1136 of file ncbiapp.cpp.
References CNcbiApplicationAPI::m_Version, NCBI_SC_VERSION_PROXY, NCBI_TEAMCITY_BUILD_NUMBER_PROXY, and CVersionAPI::SetVersionInfo().
| CNcbiToolkit_LogMessage::ESeverity CNcbiToolkit_LogMessage::Severity | ( | void | ) | const |
Get message severity.
Definition at line 86 of file ncbi_toolkit.cpp.
References ncbi::CNcbiToolkit_LogMessage::eCritical, eDiag_Critical, eDiag_Error, eDiag_Fatal, eDiag_Info, eDiag_Trace, eDiag_Warning, ncbi::CNcbiToolkit_LogMessage::eError, ncbi::CNcbiToolkit_LogMessage::eFatal, ncbi::CNcbiToolkit_LogMessage::eInfo, ncbi::CNcbiToolkit_LogMessage::eTrace, ncbi::CNcbiToolkit_LogMessage::eWarning, ncbi::CNcbiToolkit_LogMessage::m_Msg, and SDiagMessage::m_Severity.
|
inline |
Definition at line 1287 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Size.
| char* strdup | ( | const char * | str | ) |
Supply string duplicate function, if one is not defined.
Definition at line 5578 of file ncbistr.cpp.
|
inlinenoexcept |
Definition at line 545 of file ncbimisc.hpp.
|
inlinenoexcept |
Definition at line 706 of file ncbimisc.hpp.
|
inlinenoexcept |
Definition at line 1625 of file ncbimisc.hpp.
|
inlinenoexcept |
Definition at line 1616 of file ncbimisc.hpp.
Referenced by __WORKAROUND_RENAME(), CInt_fuzz::Add(), CAlignCollapser::AddAlignment(), CLinks::AddLink(), CIdMapper::AddMapping(), CTableAnnotDataSource::AddSeqLoc(), CTSE_ScopeInfo::AddUsedTSE(), CAdjustForConsensusSpliceSite::AdjustCDS(), variation_ref::CVariationUtil::AdjustDelinsToInterval(), AlignFNog(), AlignModelToSeqalign(), CFastaReader::AssembleSeq(), xml::document::assign(), xml::node::assign(), bm::basic_bmatrix< BV >::basic_bmatrix(), bisection(), bNNItopSwitch(), bNNIupdateAverages(), BOOST_AUTO_TEST_CASE(), CBuildAlnVecJob::Build(), BuildAlignDataSource(), CCSraDb_Impl::CCSraDb_Impl(), CFixedBlob_ids::CFixedBlob_ids(), CFixedSeq_ids::CFixedSeq_ids(), CSeqTable_multi_data::ChangeToBit(), CSeqTable_multi_data::ChangeToBytes(), CSeqTable_multi_data::ChangeToInt1(), CSeqTable_multi_data::ChangeToInt2(), CSeqTable_multi_data::ChangeToInt4(), CSeqTable_multi_data::ChangeToInt8(), CSeqTable_multi_data::ChangeToInt_delta(), CSeqTable_multi_data::ChangeToInt_scaled(), CSeqTable_multi_data::ChangeToReal(), CSeqTable_multi_data::ChangeToReal_scaled(), CSeqTable_multi_data::ChangeToString(), CheckCountRange(), CSplicedAligner::CheckPreferences(), CPSGL_Blob_Processor::Chunk_ToOM(), CGeneModel::Clip(), CAlignCollapser::ClipNotSupportedFlanks(), CREnzyme::CombineIsoschizomers(), dtl::Diff< elem, vector< elem >, Compare< elem > >::composeUnifiedHunks(), CClusterer::ComputeClusters(), DeBruijn::CDBGraphDigger::ConnectTwoNodes(), CCassStatusHistoryTaskFetch::Consume(), CCassBlobTaskLoadBlob::ConsumeBlobRecord(), CSeq_loc_Conversion::ConvertInterval(), CProteinAlignText::CProteinAlignText(), CAnnotationASN1::CImplementationData::create_packed_int_seqloc(), CAlignmentAssistant::CreateFeature(), CProtSeqlocHelper::CreateSeqloc(), CDeltaHelper::CreateSSR(), CSegmentGlyph::CSegmentGlyph(), lmdb::cursor::cursor(), CPaintSequence::CutSelection(), lmdb::dbi::dbi(), CAlignmentAssistant::DeleteSelection(), CPSGL_RequestTracker::CBackgroundTask::DisconnectFromTracker(), CAlignGlyph::DrawPWAlignElem(), CPaintAlignment::DrawTextCell(), CPaintSequence::DrawTextCell(), lmdb::env::env(), CCmdChangeProjectItem::Execute(), CCmdChangeBioseqId::Execute(), CCmdChangeSeqdesc::Execute(), CDense_seg::ExtractSlice(), CAlignCollapser::FillGapsInAlignmentAndAddToGenomicGaps(), bm::sparse_vector_scanner< SV, S_FACTOR >::find_range_float(), bm::sparse_vector_scanner< SV, S_FACTOR >::find_range_float_unbounded(), CCompactSAMApplication::FindCompactAligns(), FindCompartments(), FindFGapIntronNog(), FindIGapIntrons(), CFeatureGenerator::SImplementation::FixOrderOfCrossTheOriginSeqloc(), CImage::Flip(), CImageUtil::FlipX(), CGBSeqFormatter::FormatFeature(), FrAlign(), FrAlignFNog1(), fta_fix_tpa_keywords(), CCassandraFilteredPlan::Generate(), generate_vect_simpl0(), CPaintAlignment::GetAlignSelection(), CAlnVecMultiDataSource::GetAlnFromSeq(), CSparseMultiDataSource::GetAlnFromSeq(), CCSraRefSeqIterator::GetAlnOverStarts(), CDensegGraphicDataSource::GetAlnSeqString(), CHitElemGlyph::GetDistPixels(), CDictionaryUtil::GetEditDistance(), CFeatureGenerator::SImplementation::GetExonStructure(), CPaintAlignment::GetFeatWholeRange(), CParse::GetGenes(), CBulkLocationPanel::GetLocForBioseq(), CSeqUtils::GetLocPlacements(), CDBConnectionFactory::CServiceInfo::GetOptions(), GetRandomSegment(), CGuiObjectInfoSeq_align::GetRangeAroundPosition(), CHitMatrixRenderer::GetSelectedHitElemsRect(), CPaintSequence::GetSelection(), CPaintAlignment::GetSelection(), CAlnVecMultiDataSource::GetSeqFromAln(), CSparseMultiDataSource::GetSeqFromAln(), CGuiObjectInfoSeq_align::GetSeqString(), IAlnGraphicDataSource::GetSeqString(), GetTerminalPartialness(), CTranslationGlyph::GetTooltip(), GetUnalignedRegionLength(), GetVector(), GlbAlign(), IEditingActionFeat::GoToOrigFeature(), IEditingActionFeat::GoToProtFeature(), hunt(), huntExtreme(), in_range_const(), in_range_const_unbounded(), in_range_constRSC(), in_range_vect(), in_range_vect_unbounded(), in_range_vectRSC(), dtl::Diff< elem, vector< elem >, Compare< elem > >::init(), CSeqScores::Init(), C5ColImportData::Initialize(), CAlignRange< Position >::IsAbutting(), CLinks::IsLink(), iter_swap(), LclAlign(), CAlnVecRow::LTH_OnLayoutChanged(), CHitList::MakeCanonical(), CNWFormatter::MakeSegments(), CPosMapper::Map(), CPhyloTreeDataSource::MoveNode(), StyleManager::MoveUserAnnotation(), newtonRaphson(), SNetServiceIterator_RandomPivot::Next(), CDistMethods::NjTree(), NNItopSwitch(), NNIupdateAverages(), CAlignmentAssistant::OnAddAlignCDS(), CAlignmentAssistant::OnAddAlignOther(), CAlignmentAssistant::OnAddAlignRNA(), CStringConstraintSelect::OnApply(), CPaintSequence::OnCopy(), CSuspectProductRulesEditor::OnDeleteRules(), DeBruijn::CDBGraphDigger::OneStepBranchExtend(), CPaintAlignment::OnPaint(), CPaintSequence::OnPaint(), CAssemblyTrackingPanel::OnPopulateBtnClick(), CLocationListCtrl::OnSortClick(), CPubseqGatewayApp::OnStatistics(), CWGSResolver_VDB::Open(), CPhyTreeCalc::CDistMatrix::operator()(), xml::impl::ait_impl::operator=(), xml::attributes::operator=(), xml::attributes::const_iterator::operator=(), xml::node::const_iterator::operator=(), xml::node_set::const_iterator::operator=(), xml::document::operator=(), xml::attributes::iterator::operator=(), xml::node::iterator::operator=(), xml::node_set::iterator::operator=(), xml::node::operator=(), lmdb::cursor::operator=(), lmdb::dbi::operator=(), lmdb::env::operator=(), lmdb::txn::operator=(), SSparseIndex::Optimize(), CDense_seg::OrderAdjacentGaps(), ParseAttributes(), CSeqGlyph::PointInRect(), PreserveTerminalCodons(), CTabularFormatter_AlignStart::Print(), CTabularFormatter_AlignEnd::Print(), ProjectExons(), readGFF3(), CHitElemGlyph::Render(), CFindASN1Dlg::ReplaceLinebreaks(), CSuspectProductRulesEditor::ReplaceRule(), CChain::RestoreReasonableConfirmedStart(), CDense_seg::Reverse(), DeBruijn::CDBGraphDigger::SContig::ReverseComplement(), ReverseComplementLocation(), CCompactSAMApplication::Run(), CXcompareAnnotsApplication::Run(), s_GetAlnMapplingLocs(), s_GetBlobs(), s_GetLatLong(), variation::CVariationUtil::CVariantPropertiesIndex::s_GetNeighborhoodLocs(), variation::CVariationUtil::CVariantPropertiesIndex::s_GetStartAndStopCodonsLocs(), variation::CVariationUtil::CVariantPropertiesIndex::s_GetUTRLocs(), s_MakeRandomDeflineSet(), CMacroFunction_SetStructCommDb::s_MoveSuffixToTheEnd(), s_PartialAtGapOrNs(), s_PopulateUserObject(), s_PrepareTrackPane(), s_PrintLocAsJavascriptArray(), s_ProcessSeqIdFilters(), s_RCUMoveGPMarkers(), s_ReorderNorthSouthEastWest(), s_SetRangesForMixedAlignments(), s_SwapRows(), s_TestForOverlapEx(), CWGSDb_Impl::SAmbiguityInfo::SAmbiguityInfo(), xml::document::save_to_file(), xml::document::save_to_stream(), xml::document::save_to_string(), CChain::SetConfirmedEnds(), CChain::SetConfirmedStartStopForCompleteProteins(), CCassandraFullscanPlan::SetConnection(), CBlastPrelimSearch::SetInterruptCallback(), SetPartial(), CSeqMarkHandler::SetRange(), CIpgStorageReportEntry::SetRefseq(), CBlobStatusHistoryRecord::SetReplacedByIds(), CBlobStatusHistoryRecord::SetReplacesIds(), CAlignShadow::SetStrand(), sort_feat_cit(), bm::sparse_vector< Val, BV >::sparse_vector(), CCassandraFullscanPlan::SplitTokenRangesForLimits(), hashtable< _Val, _Key, _HF, _ExK, _EqK, _All >::swap(), xml::attributes::attr::swap(), xml::attributes::swap(), AutoPtr< CNcbistrstream_Base >::Swap(), AutoArray< CS_INT >::Swap(), DeBruijn::CKmerCountTemplate< LargeInt< 1 >, LargeInt< 2 >, LargeInt< 4 >, LargeInt< 8 >, LargeInt< 16 > >::Swap(), CNcbiMatrix< T >::Swap(), xml::attributes::const_iterator::swap(), xml::node::const_iterator::swap(), xml::node_set::const_iterator::swap(), CRawScoreVector< Key, Score >::Swap(), DeBruijn::CReadHolder::Swap(), CScoreVector< Key, Score >::Swap(), CSeqDB_BitSet::Swap(), CSimpleBufferT< char >::swap(), xml::document::swap(), xml::attributes::iterator::swap(), xml::node::iterator::swap(), xml::node_set::iterator::swap(), xml::node::swap(), pair_base_member< TKeyGetter, CTreeNode * >::Swap(), SNetServiceImpl::SRetry::Swap(), bm::sparse_vector< Val, BV >::swap(), bm::str_sparse_vector< CharType, BV, STR_SIZE >::swap(), set< ETranslationFrame >::swap(), multiset< TIndexKey, PIndexBySecondLess >::swap(), TParse_rule::Swap(), IEditingActionBiosource::SwapContext(), IEditingActionDesc::SwapContext(), IEditingActionInst::SwapContext(), IEditingActionDescPub::SwapContext(), CEditingActionDescPubTitle::SwapContext(), CEditingActionDescPubPmid::SwapContext(), IEditingActionDescAffil::SwapContext(), IEditingActionDescAuthors::SwapContext(), CEditingActionDescAuthorNameList::SwapContext(), IEditingActionFeat::SwapContext(), CEditingActionFlatFile::SwapContext(), CEditingActionSeqid::SwapContext(), IEditingAction::SwapContext(), NMacroUtil::SwapGbQualWithValues(), CNcbiMatrix< T >::SwapRows(), CDense_seg::SwapRows(), CStd_seg::SwapRows(), CObjectIStreamAsyncIterator< TRoot >::sx_ClearGarbageAndParse(), CObjectIStreamAsyncIterator< TRoot, TChild >::sx_ClearGarbageAndParse(), sx_PopLastNewPtrMultiple(), CGlBitmapFont::TextOut(), CGlTextureFont::TextOut(), CMacroFunction_MakeInterval::TheFunction(), CLocationListCtrl::TransferDataFromWindow(), ProjectCDS::transform_align(), RemoveTrailingNs::transform_model(), CPaintSequence::TranslateCDS(), CAlignmentAssistant::TranslateLocations(), CMatrix3< T >::Transpose(), CMatrix4< T >::Transpose(), CNcbiMatrix< T >::Transpose(), CChainer::CChainerImpl::TrimAlignmentsIncludedInDifferentGenes(), lmdb::txn::txn(), CPrintSetupDlg::UpdateMargins(), CSDBAPI::UpdateMirror(), CFarPointerSeq::ValidateAlignment(), CAlignRangeCollection< CAlignRange< TSeqPos > >::ValidateRanges(), CAlignRangeCollectionList< CAlignRange< TSignedSeqPos > >::ValidateRanges(), VariBandAlign(), CFeatureTableReader_Imp::x_AddIntervalToFeature(), CSeqSearch::x_AddPattern(), CLocationListCtrl::x_AddRow(), CAdjustForConsensusSpliceSite::x_AdjustCDS3End(), CAdjustForConsensusSpliceSite::x_AdjustCDS5End(), variation::CVariationUtil::x_AdjustDelinsToInterval(), CFeatTree::x_AssignGenes(), CFeatTree::x_AssignParentsByOverlap(), CAlignGlyph::x_CalcIntervals(), CLayoutPWAlign::x_CalcIntervals(), CSafeStaticGuard::x_Cleanup(), CFeatureGraph::x_Create(), CInversionMergeAligner::x_CreateDiscAlignment(), CSGAlignStatJob::x_CreatePileUpGraphs(), CNaSeqlocHelper::x_CreateSeqloc(), CAlignGlyph::x_DrawAlignRowSequence(), CFeatGlyph::x_DrawFeatureBar(), CAlignGlyph::x_DrawGaps(), CAlignGlyph::x_DrawInternalUnalignedRegions(), CAlignGlyph::x_DrawMultiAlign(), CFeatGlyph::x_DrawProjectedRuler(), CTranslationGlyph::x_DrawSequence(), CHistogramGlyph::x_DrawSmoothCurve(), CAlignGlyph::x_DrawUnalignedRowSequence(), CAlnVecRow::x_ForEachAlnSeg(), CAlnVecRow::x_GetAlignmentTooltip_Helper(), CBoundaryShapeTri::x_GetArc(), CSeq_align_Mapper_Base::x_GetDstSpliced(), CSeq_align_Mapper_Base::x_GetDstStd(), CLinks::x_GetLink(), CLocationListCtrl::x_GetRowData(), CCommonComponentScorer::x_GetSeqHistCompList(), CGuiObjectInfoSeq_feat::x_GetSplicedSeqTitle(), CSeq_align_Mapper_Base::x_Init(), CPairwise_CI::x_InitSegment(), CSparse_CI::x_InitSegment(), CTranslationGlyph::x_Intersecting(), CValidError_bioseq::x_IsPartialAtSpliceSiteOrGap(), CAuthorNamesPanel::x_MoveRowUp(), CMacroAuthorNamesPanel::x_MoveRowUp(), CNCMMSizePool::x_NewEmptySet(), CFeatureTableReader_Imp::x_ParseFeatureTableLine(), CIntronTrack::x_ParseSettings(), variation::CHgvsParser::x_PlacementCoordsToStr(), CAlnSpanVertModel::x_PopulateRows(), CAlnSpanVertModel::x_PopulateRowsSpliced(), CPSGS_SNPProcessor::x_ProcessAnnotationRequest(), CAlignFilter::x_Query_Range(), CAlignGlyph::x_RenderAveragableScores(), CTraceGlyph::x_RenderConfGraph(), CTraceGraph::x_RenderConfGraph(), CTraceGraph::x_RenderContour(), CTraceGlyph::x_RenderCurveSegment(), CTraceGraph::x_RenderCurveSegment(), CHitMatrixGraph::x_RenderEventHandler(), CAlnVecRow::x_RenderIcons(), CAlnVecRow::x_RenderIconStrand(), CTraceGlyph::x_RenderIntensityGraphs(), CTraceGraph::x_RenderIntensityGraphs(), CAlignGlyph::x_RenderNonAveragableScores(), CSeqGraphicPane::x_RenderRectSelHandler(), CRuler::x_RenderScale(), IPhyloTreeRender::x_RenderSelection(), CMouseZoomHandler::x_RenderZoomRect(), IPhyloTreeRender::x_SelectByRect(), CNewCleanup_imp::x_SeqIntervalBC(), CNCMMReserve::x_SortChunkPtrs(), CSeqVector_CI::x_SwapCache(), x_TestAlignmentQuerySubjStrandCombinations(), CFeatTrim::x_TrimLocation(), CObjectIStreamAsyncIterator< TRoot >::CData::x_UpdateFuturesQueue(), CAlnSpanVertModel::x_UpdateMetaData(), CPsiBlastInputClustalW::x_ValidateQueryInMsa(), CGff3Writer::xAssignAlignmentDensegTarget(), CGff3FlybaseWriter::xAssignAlignmentDensegTarget(), CSeqGraphicRenderer::ZoomOnRange(), and CUnlockedTSEsGuard::~CUnlockedTSEsGuard().
|
inlinenoexcept |
Definition at line 296 of file ncbimisc.hpp.
|
private |
Definition at line 1345 of file ncbiapp.cpp.
References CNcbiApplicationAPI::fHideAll, CNcbiApplicationAPI::fHideFullHelp, CNcbiApplicationAPI::fHideFullVersion, CNcbiApplicationAPI::fHideHelp, CNcbiApplicationAPI::fHideVersion, CNcbiApplicationAPI::m_ArgDesc, CNcbiApplicationAPI::m_DisableArgDesc, CNcbiApplicationAPI::m_HideArgs, and mask.
Referenced by CNcbiApplicationAPI::AppMain(), and CNcbiApplicationAPI::x_TryMain().
|
private |
Read standard NCBI application configuration settings.
[NCBI]: HeapSizeLimit, CpuTimeLimit [DEBUG]: ABORT_ON_THROW, DIAG_POST_LEVEL, MessageFile
| reg | Registry to read from. If NULL, use the current registry setting. |
Definition at line 1589 of file ncbiapp.cpp.
References ABORT_ON_THROW, DIAG_MESSAGE_FILE, DIAG_POST_LEVEL, DIAG_TRACE, CSafeStaticGuard::DisableChildThreadsCheck(), eDiagFilter_Post, eDiagFilter_Trace, eDT_Enable, IRegistry::eErrPost, ERR_POST_X, IRegistry::Get(), get_limits(), IRegistry::GetBool(), GetDiagHandler(), IRegistry::GetInt(), CRef< C, Locker >::GetPointer(), IRegistry::GetString(), CSystemInfo::GetTotalPhysicalMemorySize(), CSysLog::HonorRegistrySettings(), info, kEmptyStr, CNcbiApplicationAPI::m_Config, max(), NCBI_CATCH_X, NCBI_THROW, NPOS, NULL, CStackTrace::s_HonorSignalHandlingConfiguration(), CObject::SetAllocFillMode(), SetCpuTimeLimit(), SetDiagErrCodeInfo(), SetDiagFilter(), SetDiagFixedPostLevel(), SetDiagTrace(), SetMemoryLimit(), SetThrowTraceAbort(), NStr::StringToSizet(), NStr::StringToUInt(), NStr::StringToUInt8_DataSize(), CNcbiDiag::StrToSeverityLevel(), and Warning().
Referenced by CNcbiApplicationAPI::x_TryInit().
|
private |
Log environment, registry, command arguments, path.
Definition at line 538 of file ncbiapp.cpp.
References CProcessBase::SMemoryUsage::data, CProcessBase::eChildren, IRegistry::EnumerateEntries(), IRegistry::EnumerateSections(), env, CProcessBase::eProcess, eStartEvent, eStopEvent, CProcessBase::eThread, CDiagContext::Extra(), fLogAppArguments, fLogAppEnvironment, fLogAppEnvironmentStop, fLogAppPath, fLogAppRegistry, fLogAppRegistryStop, fLogAppResUsageStop, IRegistry::Get(), CNcbiApplicationAPI::GetArgs(), CNcbiApplicationAPI::GetConfig(), GetDiagContext(), CNcbiApplicationAPI::GetEnvironment(), CCurrentProcess::GetMemoryUsage(), CNcbiApplicationAPI::GetProgramExecutablePath(), CCurrentProcess::GetTimes(), ITERATE, CNcbiApplicationAPI::m_LogOptions, Print(), CDiagContext_Extra::Print(), RES_SIZE_USAGE, RES_TIME_USAGE, CProcessBase::SMemoryUsage::resident, CProcessBase::SMemoryUsage::resident_peak, CProcessBase::SMemoryUsage::shared, CProcessBase::SMemoryUsage::stack, CProcessBase::SMemoryUsage::total, CProcessBase::SMemoryUsage::total_peak, and val.
Referenced by CNcbiApplicationAPI::x_TryMain().
|
private |
Read switches that are stored in m_LogOptions from registry and environment.
Definition at line 483 of file ncbiapp.cpp.
References fLogAppArguments, fLogAppEnvironment, fLogAppEnvironmentStop, fLogAppPath, fLogAppRegistry, fLogAppRegistryStop, fLogAppResUsageStop, and CNcbiApplicationAPI::m_LogOptions.
Referenced by CNcbiApplicationAPI::x_TryMain().
|
inlineprivatenoexcept |
Release for const object, used in deprecated methods.
Definition at line 558 of file ncbimisc.hpp.
|
inlineprivatenoexcept |
Release for const object, used in deprecated methods.
Definition at line 716 of file ncbimisc.hpp.
|
private |
Setup C++ standard I/O streams' behaviour.
Called from AppMain() to do compiler-specific optimization for C++ I/O streams. For example, since SUN WorkShop STL stream library has significant performance loss when sync_with_stdio is TRUE (default), so we turn it off. Another, for GCC version greater than 3.00 we forcibly set cin stream buffer size to 4096 bytes – which boosts the performance dramatically.
Definition at line 1315 of file ncbiapp.cpp.
References _ASSERT, CNcbiApplicationAPI::fBinaryCin, CNcbiApplicationAPI::fBinaryCout, CNcbiApplicationAPI::fDefault_CinBufferSize, CNcbiApplicationAPI::fNoSyncWithStdio, CNcbiApplicationAPI::m_CinBuffer, CNcbiApplicationAPI::m_StdioFlags, NCBI_OS_UNIX, NcbiSys_fileno, and NcbiSys_setmode.
Referenced by CNcbiApplicationAPI::AppMain().
|
private |
Definition at line 401 of file ncbiapp.cpp.
References CNcbiApplicationAPI::AppStart(), Critical(), eDCM_Flush, ERR_POST_X, Fatal(), fatal(), CNcbiApplicationAPI::GetArguments(), CNcbiApplicationAPI::Init(), CNcbiApplicationAPI::LoadConfig(), CNcbiApplicationAPI::m_ArgDesc, CNcbiApplicationAPI::m_Config, CNcbiApplicationAPI::m_ConfigLoaded, CNcbiApplicationAPI::m_DisableArgDesc, CNcbiApplicationAPI::m_LogFile, NCBI, NCBI_PARAM_TYPE(), NULL, CNcbiApplicationAPI::SetupArgDescriptions(), CDiagContext::SetupDiag(), VerifyCpuCompatibility(), CDiagContext::x_FinalizeSetupDiag(), and CNcbiApplicationAPI::x_HonorStandardSettings().
Referenced by CNcbiApplicationAPI::x_TryMain().
|
private |
Definition at line 626 of file ncbiapp.cpp.
References CNcbiApplicationAPI::DryRun(), eDiagAppState_AppEnd, eDiagAppState_AppRun, ITracerSpan::eError, CArgHelpException::eHelpErr, CArgHelpException::eHelpFull, CArgHelpException::eHelpShowAll, CArgHelpException::eHelpXml, ERR_POST_X, eStartEvent, eStopEvent, CNcbiApplicationAPI::Exit(), GetDiagContext(), CCoreException::GetErrCode(), CDiagContext::GetRequestContext(), CException::GetRequestContext(), CRequestContext::GetTracerSpan(), CNcbiApplicationAPI::m_ArgDesc, CNcbiApplicationAPI::m_DryRun, NCBI_REPORT_EXCEPTION_X, NCBI_RETHROW_SAME, CNcbiApplicationAPI::Run(), s_HandleExceptions(), CDiagContext::SetGlobalAppState(), CDiagContext::SetRequestContext(), str(), CException::what(), CNcbiApplicationAPI::x_AddDefaultArgs(), CNcbiApplicationAPI::x_LogOptions(), CNcbiApplicationAPI::x_ReadLogOptions(), and CNcbiApplicationAPI::x_TryInit().
Referenced by CNcbiApplicationAPI::AppMain().
Definition at line 623 of file ncbimisc.hpp.
Destructor.
Definition at line 460 of file ncbimisc.hpp.
|
inlinevirtual |
Definition at line 1538 of file ncbimisc.hpp.
|
inlinevirtual |
Definition at line 1527 of file ncbimisc.hpp.
|
inlinevirtual |
Definition at line 741 of file ncbiapp_api.hpp.
|
inline |
Definition at line 1271 of file ncbimisc.hpp.
References CFastBuffer< KEmbeddedSize, TType >::m_Buffer, and CFastBuffer< KEmbeddedSize, TType >::m_EmbeddedBuffer.
|
inlinevirtual |
Definition at line 1498 of file ncbimisc.hpp.
References CNcbiActionGuard::ExecuteActions().
|
virtual |
Destructor.
Clean up the application settings, flush the diagnostic stream.
Definition at line 228 of file ncbiapp.cpp.
References CNcbiApplicationAPI::ExecuteOnExitActions(), CNcbiApplicationAPI::FlushDiag(), CNcbiApplicationAPI::GetInstanceLock(), CNcbiApplicationAPI::m_CinBuffer, CNcbiApplicationAPI::m_Instance, CThread::sm_IsExiting, and CThread::WaitForAllThreads().
| CNcbiApplicationGuard::~CNcbiApplicationGuard | ( | void | ) |
Definition at line 104 of file ncbiapp.cpp.
|
protectedvirtual |
Definition at line 69 of file ncbi_toolkit.cpp.
|
inlinevirtual |
Definition at line 729 of file ncbiapp_api.hpp.
|
inlinevirtual |
Definition at line 162 of file ncbi_toolkit.hpp.
|
inlinevirtual |
Destructor.
Definition at line 68 of file phone_home_policy.hpp.
References IPhoneHomePolicy::Finish().
| BEGIN_NCBI_NAMESPACE |
NCBI_EOWNERSHIP_DEFINED.
Definition at line 113 of file ncbimisc.hpp.
| BEGIN_STD_NAMESPACE |
Definition at line 1612 of file ncbimisc.hpp.
| END_NCBI_NAMESPACE |
Definition at line 1610 of file ncbimisc.hpp.
| END_STD_NAMESPACE |
Definition at line 1664 of file ncbimisc.hpp.
Define special value for invalid sequence position.
Definition at line 977 of file ncbimisc.hpp.
Referenced by SAlignment_Segment::AddRow(), BOOST_AUTO_TEST_CASE(), BuildGoodByteGraph(), CSeqMap::CanResolveRange(), CBamRawAlignIterator::CBamRawAlignIterator(), CCSraDb_Impl::CCSraDb_Impl(), CFastaReader::CloseMask(), CBam2Seq_graph::CollectCoverage(), CBam2Seq_graph::CollectEstimatedCoverage(), CBam2Seq_graph::CollectRawAccessCoverage(), CSeq_loc_Conversion::CombineWith(), CSeq_loc_Conversion_Set::ConvertInterval(), CSeq_loc_Conversion::ConvertPacked_pnt(), CSeq_loc_Conversion_Set::ConvertPacked_pnt(), CSeq_loc_Conversion::ConvertPos(), CBlobSplitterImpl::CopyDescr(), CBlobSplitterImpl::CopySequence(), CBlobSplitterImpl::CopySkeleton(), CreateDense_diagFromAnchoredAln(), CreatePackedsegFromAnchoredAln(), CreatePackedsegFromPairwiseAln(), CDense_seg::CreateRowSeq_interval(), CSeqMap::CSeqMap(), CSeqMap_CI::CSeqMap_CI(), CSNPDbPageIterator::CSNPDbPageIterator(), CIdRangeMap::SExtremes::Empty(), SBamIndexRefIndex::EstimateDataSizeByAlnStartPos(), CInternalStopFinder::FindStartStopRanges(), CSparseAln::GetAlnSeqString(), NSnpGui::GetBinTooltip(), CSeq_loc::GetCircularLength(), CResolveIntersectingFeats::GetCommand(), CFastaReader::GetCurrentPos(), CSeq_align_Mapper_Base::GetDstAlign(), NSnpBins::GetEntry(), CIntronOffsetHelper::GetIntronOffset(), CBlobSplitterImpl::GetLength(), CSeqMap::GetLength(), CBamRefSeqIterator::GetLength(), CRegexp_loc::GetLoc(), CBamAlignIterator::GetMatchAlign(), CCSraAlignIterator::GetMatchAlign(), CBamAlignIterator::GetNextRefSeqPos(), GetOverlappingFeatures(), CAnnotObject_Less::GetRangeOpen(), CBamDb::GetRefSeqLength(), CBamAlignIterator::SAADBImpl::GetRefSeqPos(), SRepeatRegion::GetRptLength(), CBamRawAlignIterator::GetSegments(), SAlignment_Segment::SAlignment_Row::GetSegStart(), CScope_Impl::GetSeq_featHandle(), CCSraRefSeqIterator::GetSeqLength(), CDefault_Mapper_Sequence_Info::GetSequenceLength(), CScope_Impl::GetSequenceLength(), CDataLoader::GetSequenceLength(), CDataSource::GetSequenceLength(), CAsnCache_DataLoader::GetSequenceLength(), CBlastDbDataLoader::GetSequenceLength(), CSRADataLoader::GetSequenceLength(), CTestMapperSeqInfo::GetSequenceLength(), CScope_Mapper_Sequence_Info::GetSequenceLength(), CHugeAsnDataLoader::GetSequenceLength(), CGBDataLoader_Native::GetSequenceLength(), CSraRun::GetSequenceLength(), CPSGDataLoader_Impl::GetSequenceLengthOnce(), CCSRADataLoader_Impl::GetSequenceLengthOnce(), CWGSDataLoader_Impl::GetSequenceLengthOnce(), CDataLoader::GetSequenceLengths(), CScope_Impl::GetSequenceLengths(), CPSGDataLoader_Impl::GetSequenceLengthsOnce(), CPacked_seqint::GetStart(), CPacked_seqpnt::GetStart(), CSeq_loc::GetStart(), CSeq_loc_mix::GetStart(), CPacked_seqint::GetStop(), CPacked_seqpnt::GetStop(), CSeq_loc::GetStop(), CSeq_loc_mix::GetStop(), CPhrap_Seq::GetUnpaddedPos(), CGapItem::HasEstimatedLength(), IfOnlyStopCodon(), InitSplicedsegFromPairwiseAln(), CSpliced_seg::IsConsistentBiologicalOrder(), CLoadLockLength::IsFound(), CValidError_annot::IsLocationUnindexed(), variation::IsPureFuzzPoint(), CUser_object::CRefGeneTrackingAccession::IsSetFrom(), CUser_object::CRefGeneTrackingAccession::IsSetTo(), CCSRAFileInfo::IsValidReadId(), CBamRefSeqInfo::LoadAlignChunk(), CReader::LoadLengths(), CBamRefSeqInfo::LoadSeqChunk(), CReader::LoadSequenceLength(), LoadSequencesToScope(), CUser_object::CRefGeneTrackingAccession::MakeAccessionField(), CUser_object::CRefGeneTrackingAccession::MakeAccessionFromUserField(), CBamIndex::MakeEstimatedCoverageAnnot(), CFeatureTableReader::MakeGap(), CBlobSplitterImpl::MakeID2Chunk(), CMappingRange::Map_Range(), SSNP_Info::NoMore(), CFastaReader::OpenMask(), CAnnotObject_Less::operator()(), CAnnotObject_LessReverse::operator()(), CRepeatToFeat::operator()(), OutOfRange(), CGeneFinder::CGeneSearchPlugin::postProcessDiffAmount(), PreserveTerminalCodons(), CRepeatLibrary::Read(), CPhrap_Seq::ReadData(), CFastaReader::ReadOneSeq(), CStd_seg::RemapToLoc(), CSNPDbPageIterator::Reset(), CSNPDbGraphIterator::Reset(), CDemoApp::Run(), s_GetTopology(), s_LocationsOverlap(), s_PrematureStopCodon(), CFeatureGenerator::s_ProjectRNA(), s_SeqLocToTotalRangesInfoMapByStrand(), s_ShouldRemoveRef(), s_TestForOverlapEx(), CWGSDb_Impl::SAmbiguityInfo::SAmbiguityInfo(), CCacheWriter::SaveSequenceLength(), CSNPDbGraphIterator::Select(), CSNPDbPageIterator::Select(), CCSraAlignIterator::Select(), SBamIndexRefIndex::SetLengthFromHeader(), CSeqMap::SetRegionInChunk(), CGeneFinder::CGeneSearchPlugin::setUpFeatureIterator(), TestForOverlapEx(), TestStrongKozakUorfs(), CFastaOstream::Write(), CFastaOstreamComp::Write(), variation::CHgvsParser::x_abs_pos(), CSeqMap::x_Add(), CPhrap_Contig::x_AddAlignRanges(), CPhrap_Contig::x_AddBaseSegFeats(), CSeq_loc_Mapper_Base::x_AddConversion(), CSeqMap::x_AddEnd(), CGapAnalysis::x_AddGapsFromBases(), CPhrap_Read::x_AddQualityFeat(), CSeq_loc_Mapper_Base::x_AdjustSeqTypesToProt(), CSeq_loc_Mapper_Base::x_CheckSeqTypes(), CFastaReader::x_CloseMask(), CSeq_align_Mapper_Base::x_ConvertSegment(), CSeq_align_Mapper::x_ConvertSegmentCvt(), CAlnMixMerger::x_CreateDenseg(), CNaSeqlocHelper::x_CreateSeqloc(), CSeqMap::x_FindSegment(), variation_ref::CHgvsParser::x_fuzzy_pos(), variation::CHgvsParser::x_fuzzy_pos(), CFlatGatherer::x_GatherCDSReferences(), CSeqMap::x_GetChunkToLoad(), CSeq_align_Mapper_Base::x_GetDstDendiag(), CSeq_align_Mapper_Base::x_GetDstDenseg(), CSeq_align_Mapper_Base::x_GetDstPacked(), CSeq_align_Mapper_Base::x_GetDstStd(), CAnnotObject_Less::x_GetExtremes(), CSeq_loc_Mapper_Base::x_GetMappedSeq_loc(), CSeq_align_Mapper_Base::x_GetPartialDenseg(), CWGSSeqIterator::x_GetQualityAnnot(), CSeqMap::x_GetSegmentLength(), CPsiBlastInputData::x_GetSubjectSequence(), CSeq_align_Mapper_Base::x_Init(), CBamRefSeqInfo::x_InitAlignIterator(), CSeq_loc_Mapper::x_InitGCSequence(), CSeq_loc_Mapper_Base::x_InitializeLocs(), CSeq_align_Mapper_Base::x_IsEmpty(), CSeqMap::x_LoadObject(), CBamRefSeqInfo::x_LoadRangesCov(), CBamRefSeqInfo::x_LoadRangesEstimated(), CBamRefSeqInfo::x_LoadRangesStat(), variation_ref::CHgvsParser::x_location(), variation::CHgvsParser::x_location(), CSeq_loc_Mapper_Base::x_MapInterval(), CSeq_loc_Mapper_Base::x_MapNextRange(), CSeq_loc_Mapper_Base::x_MapSeq_loc(), CBioseqGaps_CI::x_Next(), CSNPDbPageIterator::x_Next(), CSNPDbGraphIterator::x_Next(), CSeq_loc_Mapper_Base::x_NextMappingRange(), CFastaReader::x_OpenMask(), CSeq_loc_Mapper_Base::x_PreserveDestinationLocs(), CId2ReaderBase::x_ProcessGetSeqIdSeqId(), CSeqMap::x_ResolveSegmentLength(), CSeqMap::x_ResolveSegmentPosition(), CSeqMap_CI::x_Select(), CSeqMap::x_SetChanged(), CFeatureGenerator::SImplementation::x_SetComment(), CIntronOffsetHelper::x_SetDeltaItemOffset(), and CSingleFeatValidator::x_ValidateRptUnitRangeVal().
|
private |
Definition at line 1545 of file ncbimisc.hpp.
Referenced by CNcbiActionGuard::AddAction(), and CNcbiActionGuard::ExecuteActions().
|
private |
Definition at line 122 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationGuard::CNcbiApplicationGuard(), CNcbiApplicationGuard::Get(), CNcbiApplicationGuard::operator bool(), and CNcbiApplicationGuard::operator!().
|
private |
Definition at line 723 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), and CNcbiApplicationAPI::SetAppFlags().
|
private |
Definition at line 123 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationGuard::CNcbiApplicationGuard().
|
private |
Cmd.-line arg descriptions.
Definition at line 702 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::GetArgDescriptions(), CNcbiApplicationAPI::SetupArgDescriptions(), CNcbiApplicationAPI::x_AddDefaultArgs(), CNcbiApplicationAPI::x_TryInit(), and CNcbiApplicationAPI::x_TryMain().
|
private |
Parsed cmd.-line args.
Definition at line 703 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::GetArgs(), and CNcbiApplicationAPI::SetupArgDescriptions().
|
private |
Command-line arguments.
Definition at line 701 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::AppStart(), CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::GetArguments(), and CNcbiApplicationAPI::LoadConfig().
|
private |
Definition at line 1291 of file ncbimisc.hpp.
Referenced by CFastBuffer< KEmbeddedSize, TType >::begin(), CFastBuffer< KEmbeddedSize, TType >::end(), CFastBuffer< KEmbeddedSize, TType >::operator*(), CFastBuffer< KEmbeddedSize, TType >::operator+(), CFastBuffer< KEmbeddedSize, TType >::operator[](), and CFastBuffer< KEmbeddedSize, TType >::~CFastBuffer().
|
private |
Cin buffer if changed.
Definition at line 707 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::x_SetupStdio(), and CNcbiApplicationAPI::~CNcbiApplicationAPI().
|
private |
Guaranteed to be non-NULL.
Definition at line 699 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::GetConfig(), CNcbiApplicationAPI::GetRWConfig(), CNcbiApplicationAPI::LoadConfig(), CNcbiApplicationAPI::x_HonorStandardSettings(), and CNcbiApplicationAPI::x_TryInit().
|
private |
Finished loading config.
Definition at line 717 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::FinishedLoadingConfig(), CNcbiApplicationAPI::LoadConfig(), and CNcbiApplicationAPI::x_TryInit().
|
private |
Path to .ini file used.
Definition at line 712 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::GetConfigPath(), CNcbiApplicationAPI::HasLoadedConfig(), and CNcbiApplicationAPI::LoadConfig().
|
private |
State info.
Definition at line 555 of file ncbimisc.hpp.
Referenced by AutoPtr< CNcbistrstream_Base >::IsOwned(), AutoPtr< CNcbistrstream_Base >::operator=(), AutoPtr< CNcbistrstream_Base >::release(), AutoPtr< CNcbistrstream_Base >::reset(), and AutoPtr< CNcbistrstream_Base >::Swap().
|
mutableprivate |
State info.
Definition at line 723 of file ncbimisc.hpp.
Referenced by AutoArray< CS_INT >::IsOwned(), AutoArray< CS_INT >::operator=(), AutoArray< CS_INT >::release(), AutoArray< CS_INT >::reset(), and AutoArray< CS_INT >::Swap().
|
private |
conf parameter to AppMain
Definition at line 716 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::LoadConfig(), and CNcbiApplicationAPI::SetupArgDescriptions().
|
private |
Opt., aux., see eDS_ToMemory.
Definition at line 700 of file ncbiapp_api.hpp.
|
private |
Arg desc. disabled.
Definition at line 704 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::DisableArgDescriptions(), CNcbiApplicationAPI::SetupArgDescriptions(), CNcbiApplicationAPI::x_AddDefaultArgs(), and CNcbiApplicationAPI::x_TryInit().
|
private |
Dry run.
Definition at line 715 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::IsDryRun(), and CNcbiApplicationAPI::x_TryMain().
|
private |
Definition at line 1292 of file ncbimisc.hpp.
Referenced by CFastBuffer< KEmbeddedSize, TType >::~CFastBuffer().
|
private |
Cached application env.
Definition at line 698 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::GetEnvironment(), and CNcbiApplicationAPI::SetEnvironment().
|
private |
Program executable path.
Definition at line 709 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), and CNcbiApplicationAPI::GetProgramExecutablePath().
|
private |
Exit code to force.
Definition at line 713 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), and CNcbiApplicationAPI::SetExitCode().
|
private |
When to force it (if ever)
Definition at line 714 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::CNcbiApplicationAPI(), and CNcbiApplicationAPI::SetExitCode().
|
private |
Definition at line 1438 of file ncbimisc.hpp.
Referenced by CSafeFlags< Enum >::get(), CSafeFlags< Enum >::operator&=(), CSafeFlags< Enum >::operator^=(), and CSafeFlags< Enum >::operator|=().
|
private |
Definition at line 1541 of file ncbimisc.hpp.
Referenced by CNcbiActionGuard::CAction< TFunc >::Execute().
|
private |
Std cmd.-line flags to hide.
Definition at line 705 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::HideStdArgs(), and CNcbiApplicationAPI::x_AddDefaultArgs().
Definition at line 1040 of file ncbimisc.hpp.
Referenced by CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::Get(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator!=(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator+(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator++(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator-(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator--(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator<(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator<=(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator=(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator==(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator>(), CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::operator>=(), and CStrictId< SStrictId_Gi, SStrictId_Gi::TId >::Set().
|
staticprivate |
Current app. instance.
Definition at line 696 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::Instance(), CNcbiApplicationAPI::InstanceGuard(), and CNcbiApplicationAPI::~CNcbiApplicationAPI().
|
protected |
Enable/disable telemetry status.
Definition at line 104 of file phone_home_policy.hpp.
Referenced by IPhoneHomePolicy::IsEnabled(), and IPhoneHomePolicy::SetEnabled().
|
private |
Definition at line 835 of file ncbimisc.hpp.
Referenced by CNullable< Int8 >::GetValue(), CNullable< Int8 >::IsNull(), CNullable< unsigned short, SGetHttpDefaultRetries >::operator unsigned short(), CNullable< Int8 >::operator=(), and CNullable< Int8 >::SetValue().
|
private |
Logfile if set in the command line.
Definition at line 718 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::SetupDiag(), CNcbiApplicationAPI::SetupDiag_AppSpecific(), and CNcbiApplicationAPI::x_TryInit().
|
mutableprivate |
Log file name.
Definition at line 711 of file ncbiapp_api.hpp.
|
private |
logging of env, reg, args, path
Definition at line 719 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::x_LogOptions(), and CNcbiApplicationAPI::x_ReadLogOptions().
|
private |
Definition at line 307 of file ncbimisc.hpp.
Referenced by pair_base_member< TKeyGetter, CTreeNode * >::second().
|
private |
Definition at line 141 of file ncbi_toolkit.hpp.
Referenced by ncbi::CNcbiToolkit_LogMessage::ErrCode(), ncbi::CNcbiToolkit_LogMessage::ErrSubCode(), ncbi::CNcbiToolkit_LogMessage::File(), ncbi::CNcbiToolkit_LogMessage::GetNativeToolkitMessage(), ncbi::CNcbiToolkit_LogMessage::Line(), ncbi::CNcbiToolkit_LogMessage::Message(), and ncbi::CNcbiToolkit_LogMessage::Severity().
|
private |
Actions executed on app destruction.
Definition at line 720 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AddOnExitAction(), and CNcbiApplicationAPI::ExecuteOnExitActions().
|
private |
Pointer to active Phone Home Policy, if any.
Definition at line 721 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::GetPhoneHomePolicy(), and CNcbiApplicationAPI::SetPhoneHomePolicy().
|
private |
Phone Home Policy ownersheep.
Definition at line 722 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), and CNcbiApplicationAPI::SetPhoneHomePolicy().
|
private |
Display name of app.
Definition at line 708 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), CNcbiApplicationAPI::GetProgramDisplayName(), and CNcbiApplicationAPI::SetProgramDisplayName().
|
private |
Internal pointer representation.
Definition at line 554 of file ncbimisc.hpp.
Referenced by AutoPtr< CNcbistrstream_Base >::AutoPtr(), AutoPtr< CNcbistrstream_Base >::get(), AutoPtr< CNcbistrstream_Base >::IsOwned(), AutoPtr< CNcbistrstream_Base >::operator*(), AutoPtr< CNcbistrstream_Base >::operator->(), AutoPtr< CNcbistrstream_Base >::release(), AutoPtr< CNcbistrstream_Base >::reset(), and AutoPtr< CNcbistrstream_Base >::Swap().
|
private |
Definition at line 722 of file ncbimisc.hpp.
Referenced by AutoArray< CS_INT >::AutoArray(), AutoArray< CS_INT >::get(), AutoArray< CS_INT >::IsOwned(), AutoArray< CS_INT >::operator[](), AutoArray< CS_INT >::release(), AutoArray< CS_INT >::reset(), and AutoArray< CS_INT >::Swap().
|
private |
Symlink-free executable path.
Definition at line 710 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::AppMain(), and CNcbiApplicationAPI::GetProgramExecutablePath().
|
private |
Definition at line 1290 of file ncbimisc.hpp.
Referenced by CFastBuffer< KEmbeddedSize, TType >::end(), and CFastBuffer< KEmbeddedSize, TType >::size().
|
private |
Std C++ I/O adjustments.
Definition at line 706 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::SetStdioFlags(), and CNcbiApplicationAPI::x_SetupStdio().
Definition at line 331 of file ncbimisc.hpp.
Referenced by CBoolEnum< TEnum >::operator bool(), and CBoolEnum< TEnum >::operator TEnum().
|
private |
Definition at line 836 of file ncbimisc.hpp.
Referenced by CNullable< Int8 >::GetValue(), CNullable< unsigned short, SGetHttpDefaultRetries >::operator unsigned short(), CNullable< Int8 >::operator=(), and CNullable< Int8 >::SetValue().
|
private |
Program version.
Definition at line 697 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::CNcbiApplicationAPI(), CNcbiApplicationAPI::GetFullVersion(), CNcbiApplicationAPI::GetVersion(), CNcbiApplicationAPI::SetFullVersion(), CNcbiApplicationAPI::SetVersion(), and CNcbiApplicationAPI::SetVersionByBuild().
|
friend |
Definition at line 119 of file ncbiapp_api.hpp.
|
friend |
Definition at line 407 of file ncbiapp_api.hpp.
Referenced by CNcbiApplicationAPI::InstanceGuard().
|
friend |
Definition at line 498 of file ncbimisc.hpp.
|
friend |
Definition at line 661 of file ncbimisc.hpp.
|
friend |
Definition at line 1382 of file ncbimisc.hpp.