sipxmedialib  Version 3.3
MprToneDetectConstructor.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2015 SIPez LLC. All rights reserved.
3 //
4 // $$
6 
7 // Author: Dan Petrie <dpetrie AT SIPez DOT com>
8 
9 #ifndef _MprToneDetectConstructor_h_
10 #define _MprToneDetectConstructor_h_
11 
12 // SYSTEM INCLUDES
13 // APPLICATION INCLUDES
15 #include <mp/MprToneDetect.h>
16 
17 // DEFINES
18 // MACROS
19 // EXTERNAL FUNCTIONS
20 // EXTERNAL VARIABLES
21 // CONSTANTS
22 // STRUCTS
23 // TYPEDEFS
24 // FORWARD DECLARATIONS
25 
31 {
32 /* //////////////////////////// PUBLIC //////////////////////////////////// */
33 public:
34 
35 /* ============================ CREATORS ================================== */
36 
41  0, 1, //minInputs, maxInputs,
42  1, 1) //minOutputs, maxOutputs
43  {
44  };
45 
49 
50 /* ============================ MANIPULATORS ============================== */
51 
53  virtual OsStatus newResource(const UtlString& resourceName,
54  int maxResourcesToCreate,
55  int& numResourcesCreated,
56  MpResource* resourceArray[])
57  {
58  assert(maxResourcesToCreate >= 1);
59  numResourcesCreated = 1;
60  resourceArray[0] = new MprToneDetect(resourceName);
61  resourceArray[0]->disable();
62  return(OS_SUCCESS);
63  }
64 
65 /* ============================ ACCESSORS ================================= */
66 
67 /* ============================ INQUIRY =================================== */
68 
69 /* //////////////////////////// PROTECTED ///////////////////////////////// */
70 protected:
71 
72 /* //////////////////////////// PRIVATE /////////////////////////////////// */
73 private:
76  MprToneDetectConstructor(const MprToneDetectConstructor& rMprToneDetectConstructor);
77 
78 
82 
83 };
84 
85 /* ============================ INLINE METHODS ============================ */
86 
87 #endif // _MprToneDetectConstructor_h_
MprToneDetectConstructor & operator=(const MprToneDetectConstructor &rhs)
#define DEFAULT_TONE_DETECT_RESOURCE_TYPE
Definition: MpResourceFactory.h:41
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprToneDetectConstructor.h:53
virtual ~MprToneDetectConstructor()
Definition: MprToneDetectConstructor.h:48
virtual UtlBoolean disable()
Disable this resource.
Definition: MpResource.cpp:121
The "Tone Detector" media processing resource.
Definition: MprToneDetect.h:30
MprToneDetectConstructor is used to construct a ToneDetect resource.
Definition: MprToneDetectConstructor.h:30
MprToneDetectConstructor()
Definition: MprToneDetectConstructor.h:39
Abstract base class for all media processing objects.
Definition: MpResource.h:56
MpAudioResourceConstructor is used to construct a specific audio resource type.
Definition: MpAudioResourceConstructor.h:36